| [project] | |
| name = "asfquart" | |
| version = "0.2.0.dev0+dev" | |
| requires-python = ">=3.11,<4" | |
| authors = [{ name = "ASF Infrastructure", email = "users@infra.apache.org" }] | |
| license = "Apache-2.0" | |
| license-files = ["LICENSE"] | |
| readme = "README.md" | |
| classifiers = [ | |
| "Programming Language :: Python :: 3", | |
| "Programming Language :: Python :: 3.11", | |
| "Programming Language :: Python :: 3.12", | |
| "Programming Language :: Python :: 3.13", | |
| "Programming Language :: Python :: 3.14", | |
| "Environment :: Web Environment", | |
| "Intended Audience :: Developers", | |
| "Operating System :: OS Independent", | |
| "Topic :: Internet :: WWW/HTTP :: Dynamic Content", | |
| "Topic :: Software Development :: Libraries :: Python Modules", | |
| ] | |
| description = "ASF Quart Framework" | |
| dependencies = [ | |
| "aiohttp>=3.9.2,<4", | |
| "PyYAML>=6.0.1,<7", | |
| "quart>=0.20.0,<1", | |
| "ezt>=1.1,<2", | |
| "asfpy>=0.56,<1", | |
| "easydict>=1.13,<2", | |
| "watchfiles>=1.0.0,<2", | |
| ] | |
| [project.optional-dependencies] | |
| aioldap = ["bonsai"] | |
| [dependency-groups] | |
| test = [ | |
| "pytest>=9.0,<10", | |
| "pytest-cov>=4.0.0,<5", | |
| "pytest-asyncio>=1.3,<2", | |
| "pytest-mock>=3.10.0,<4", | |
| ] | |
| lint = [ | |
| "pyright>=1.1.414,<2", | |
| "ruff>=0.17,<1", | |
| ] | |
| [project.urls] | |
| Repository = "https://github.com/apache/infrastructure-asfquart" | |
| [build-system] | |
| requires = ["uv_build>=0.13.5,<0.14"] | |
| build-backend = "uv_build" | |
| [tool.ruff] | |
| line-length = 120 | |
| # The same rule set as tooling-trusted-releases | |
| [tool.ruff.lint] | |
| select = [ | |
| "A005", # stdlib-module-shadowing | |
| "ANN", # flake8-annotations | |
| "ASYNC", # flake8-async | |
| "C90", # cyclomatic-complexity | |
| "E", # pycodestyle | |
| "F", # pyflakes | |
| "I", # isort | |
| "N", # pep8-naming | |
| "RUF", # ruff-checks | |
| "S", # flake8-bandit | |
| "TC", # flake8-type-checking | |
| "TID", # flake8-tidy-imports | |
| "UP", # pyupgrade | |
| "W", | |
| ] | |
| ignore = [ | |
| "ANN401", # Any is used where the type is the app's own, e.g. a session from a store | |
| ] | |
| [tool.ruff.lint.per-file-ignores] | |
| "src/asfquart/__init__.py" = ["F401"] # imported so that the submodules are loaded | |
| "tests/**" = [ | |
| "ANN", # only src/asfquart is annotated | |
| "S101", # assert is how pytest tests are written | |
| "S105", # the tests are full of made-up secrets | |
| ] | |
| "examples/**" = ["ANN"] | |
| "scripts/*" = ["S603", "S607"] | |
| "tests/ldap.py" = ["RUF001"] # look-alike characters are the test data | |
| "tests/uid_rule.py" = ["RUF001"] | |
| # Tests and examples are not type-checked | |
| [tool.pyright] | |
| include = ["src/asfquart"] | |
| pythonVersion = "3.11" | |
| typeCheckingMode = "standard" | |
| [tool.pytest.ini_options] | |
| minversion = "7.2" | |
| testpaths = ["tests"] | |
| pythonpath = ["src"] | |
| python_files = "*.py" | |
| markers = [ | |
| "config: Configuration parsing tests", | |
| "session: Client session management tests", | |
| "auth: Authentication/Authorization tests", | |
| "generics: Generic endpoint tests", | |
| "utils: Helper tests", | |
| ] | |
| asyncio_mode = "auto" |