[build-system] requires = ["setuptools>=45", "wheel"] build-backend = "setuptools.build_meta" [project] name = "devops-toolkit-backend" version = "1.0.0" description = "DevOps Toolkit API for generating VPS setup scripts and nginx configurations" readme = "README.md" requires-python = ">=3.9" dependencies = [ "fastapi==0.104.1", "uvicorn==0.24.0", "jinja2==3.1.2", "pydantic==2.5.0", "slowapi==0.1.9", "loguru==0.7.3", ] [project.optional-dependencies] dev = [ "pytest>=7.0.0", "pytest-cov>=4.0.0", "flake8>=6.0.0", "mypy>=1.0.0", "black>=23.0.0", "isort>=5.12.0", "httpx>=0.24.0,<0.25.0", ] [tool.setuptools] packages = ["app"] [tool.setuptools.package-dir] "" = "." [tool.pytest.ini_options] minversion = "7.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = "test_*.py" python_classes = "Test*" python_functions = "test_*" [tool.coverage.run] source = ["app"] omit = [ "*/tests/*", "*/venv/*", "*/__pycache__/*", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError", ] [tool.mypy] python_version = "3.9" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = false disallow_incomplete_defs = false check_untyped_defs = false disallow_untyped_decorators = false no_implicit_optional = false warn_redundant_casts = true warn_unused_ignores = true warn_no_return = false warn_unreachable = true strict_equality = true [[tool.mypy.overrides]] module = [ "jinja2.*", "loguru.*", "slowapi.*", ] ignore_missing_imports = true [tool.flake8] max-line-length = 88 extend-ignore = ["E203", "W503"] exclude = [ ".git", "__pycache__", "build", "dist", "*.egg-info", ".venv", "venv", ] [tool.black] line-length = 88 target-version = ['py39', 'py310', 'py311'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | venv | _build | buck-out | build | dist )/ ''' [tool.isort] profile = "black" multi_line_output = 3 line_length = 88 known_first_party = ["app"] skip = ["venv", ".venv", "__pycache__"]