|
1 |
| -[tool.isort] |
2 |
| -profile = "black" |
3 |
| - |
4 | 1 | [tool.mypy]
|
5 | 2 | plugins = "sqlalchemy.ext.mypy.plugin"
|
6 | 3 |
|
7 | 4 | [tool.pytest.ini_options]
|
8 | 5 | asyncio_mode = "auto"
|
9 | 6 | addopts = "--ignore=test_build.py"
|
10 | 7 |
|
| 8 | +[tool.ruff] |
| 9 | +extend-select = ["I"] |
| 10 | + |
| 11 | +[tool.hatch] |
| 12 | + |
| 13 | +[tool.hatch.metadata] |
| 14 | +allow-direct-references = true |
| 15 | + |
| 16 | +[tool.hatch.version] |
| 17 | +source = "regex_commit" |
| 18 | +commit_extra_args = ["-e"] |
| 19 | +path = "fastapi_users_db_sqlalchemy/__init__.py" |
| 20 | + |
| 21 | +[tool.hatch.envs.default] |
| 22 | +dependencies = [ |
| 23 | + "aiosqlite", |
| 24 | + "asyncpg", |
| 25 | + "aiomysql", |
| 26 | + "pytest", |
| 27 | + "pytest-asyncio", |
| 28 | + "black", |
| 29 | + "mypy", |
| 30 | + "pytest-cov", |
| 31 | + "pytest-mock", |
| 32 | + "asynctest", |
| 33 | + "httpx", |
| 34 | + "asgi_lifespan", |
| 35 | + "ruff", |
| 36 | + "sqlalchemy[asyncio,mypy]", |
| 37 | +] |
| 38 | + |
| 39 | +[tool.hatch.envs.default.scripts] |
| 40 | +test = "pytest --cov=fastapi_users_db_sqlalchemy/ --cov-report=term-missing --cov-fail-under=100" |
| 41 | +test-cov-xml = "pytest --cov=fastapi_users_db_sqlalchemy/ --cov-report=xml --cov-fail-under=100" |
| 42 | +lint = [ |
| 43 | + "black . ", |
| 44 | + "ruff --fix .", |
| 45 | + "mypy fastapi_users_db_sqlalchemy/", |
| 46 | +] |
| 47 | +lint-check = [ |
| 48 | + "black --check .", |
| 49 | + "ruff .", |
| 50 | + "mypy fastapi_users_db_sqlalchemy/", |
| 51 | +] |
| 52 | + |
| 53 | +[tool.hatch.build.targets.sdist] |
| 54 | +support-legacy = true # Create setup.py |
| 55 | + |
11 | 56 | [build-system]
|
12 |
| -requires = ["flit_core >=2,<3"] |
13 |
| -build-backend = "flit_core.buildapi" |
14 |
| - |
15 |
| -[tool.flit.metadata] |
16 |
| -module = "fastapi_users_db_sqlalchemy" |
17 |
| -dist-name = "fastapi-users-db-sqlalchemy" |
18 |
| -author = "François Voron" |
19 |
| -author-email = "[email protected]" |
20 |
| -home-page = "https://github.com/fastapi-users/fastapi-users-db-sqlalchemy" |
| 57 | +requires = ["hatchling", "hatch-regex-commit"] |
| 58 | +build-backend = "hatchling.build" |
| 59 | + |
| 60 | +[project] |
| 61 | +name = "fastapi-users-db-sqlalchemy" |
| 62 | +authors = [ |
| 63 | + { name = "François Voron", email = "[email protected]" }, |
| 64 | +] |
| 65 | +description = "FastAPI Users database adapter for SQLAlchemy" |
| 66 | +readme = "README.md" |
| 67 | +dynamic = ["version"] |
21 | 68 | classifiers = [
|
22 | 69 | "License :: OSI Approved :: MIT License",
|
23 | 70 | "Development Status :: 5 - Production/Stable",
|
| 71 | + "Framework :: FastAPI", |
24 | 72 | "Framework :: AsyncIO",
|
25 | 73 | "Intended Audience :: Developers",
|
26 | 74 | "Programming Language :: Python :: 3.7",
|
27 | 75 | "Programming Language :: Python :: 3.8",
|
28 | 76 | "Programming Language :: Python :: 3.9",
|
| 77 | + "Programming Language :: Python :: 3.10", |
| 78 | + "Programming Language :: Python :: 3.11", |
29 | 79 | "Programming Language :: Python :: 3 :: Only",
|
30 | 80 | "Topic :: Internet :: WWW/HTTP :: Session",
|
31 | 81 | ]
|
32 |
| -description-file = "README.md" |
33 | 82 | requires-python = ">=3.7"
|
34 |
| -requires = [ |
| 83 | +dependencies = [ |
35 | 84 | "fastapi-users >= 10.0.0",
|
36 | 85 | "sqlalchemy[asyncio] >=1.4",
|
37 | 86 | ]
|
38 | 87 |
|
39 |
| -[tool.flit.metadata.urls] |
| 88 | +[project.urls] |
40 | 89 | Documentation = "https://fastapi-users.github.io/fastapi-users"
|
| 90 | +Source = "https://github.com/fastapi-users/fastapi-users-db-sqlalchemy" |
0 commit comments