Skip to content

DaniSoi/python-fastapi-project-skeleton

Repository files navigation

python-fastapi-project-skeleton

Install

Pre-requisites:

  • python3.11 (it is recommended to use Pyenv to install and manage python versions)
  • Poetry (it is recommended to install Poetry using the official installer)

Install project's dependencies:

make install

Install pre-commit hooks to automatically format and lint code before each commit:

make hooks

Usage

Start the server:

make server

Development

Start the server in development mode with auto-reload:

make dev

Code formatting

Format code:

make format

  • NOTE: pre-commit hook will run formatting automatically before each commit

Linting

Lint code:

make lint

Lint code and fix issues:

make lint-fix

  • NOTE: pre-commit hook will run linting automatically before each commit

Testing

Run tests:

make test

Run tests and generate a coverage report:

make coverage

About

python fastapi project skeleton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published