[project] name = "neo-neo-todo" version = "0.1.0" description = "A todo API" authors = [ {name = "minhtrannhat", email = "minh@minhtrannhat.com"}, ] dependencies = [ "fastapi>=0.103.1", "uvicorn[standard]>=0.23.2", "httpx>=0.26.0", "pydantic[email]>=2.5.3", "bcrypt>=4.1.2", # hashing passwords "zxcvbn>=4.4.28", # rate password strength "itsdangerous>=2.1.2", # signing user tokens "slowapi>=0.1.8", "redis>=5.0.1", ] requires-python = ">=3.11" readme = "README.md" license = {text = "GPLv3"} [build-system] requires = ["pdm-backend"] build-backend = "pdm.backend" [tool.pdm.dev-dependencies] dev = [ "ruff>=0.0.291", "black>=23.9.1", "pytest>=7.4.2", "pytest-asyncio>=0.21.1", "freezegun>=1.4.0", ] [tool.ruff] line-length = 88 # pyflakes, pycodestyle, isort select = ["F", "E", "W", "I001"] [tool.black] target-version = ["py311"] [tool.pytest.ini_options] addopts = "--showlocals" asyncio_mode = "auto" pythonpath = ["src"] [tool.pdm.scripts] # python code formatting format-black = "black src/ tests/" # python code linting lint-ruff = "ruff check src/ tests/" format = {composite = ["format-black"]} lint = {composite = ["lint-ruff"]} test = {cmd = "pytest tests/", env_file = "testing.env" } # start = {cmd = "uvicorn --workers 2 neo_neo_todo.main:app", env_file = "development.env"} dev = {cmd = "uvicorn neo_neo_todo.main:app --reload", env_file = "development.env"}