Skip to content

Commit a8b7e68

Browse files
committed
chore(pyproject): pyproject: reorganize configuration
- Reorganize pyproject.toml by moving and reordering metadata fields without changing their values - Move FastAPI, Flask, and Django optional dependencies under the dev extras section - Reorder tool configuration entries for formatting, typing, and testing with no functional changes Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 75627a6 commit a8b7e68

1 file changed

Lines changed: 42 additions & 42 deletions

File tree

pyproject.toml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
[build-system]
2-
requires = ["hatchling"]
32
build-backend = "hatchling.build"
3+
requires = ["hatchling"]
44

55
[project]
6-
name = "go-authgate"
7-
dynamic = ["version"]
8-
description = "Python SDK for AuthGate — OAuth 2.0 authentication and token management"
9-
readme = "README.md"
10-
license = "MIT"
11-
requires-python = ">=3.10"
12-
authors = [{ name = "AuthGate Contributors" }]
6+
authors = [{name = "AuthGate Contributors"}]
137
classifiers = [
14-
"Development Status :: 4 - Beta",
15-
"Intended Audience :: Developers",
16-
"License :: OSI Approved :: MIT License",
17-
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.10",
19-
"Programming Language :: Python :: 3.11",
20-
"Programming Language :: Python :: 3.12",
21-
"Programming Language :: Python :: 3.13",
22-
"Typing :: Typed",
8+
"Development Status :: 4 - Beta",
9+
"Intended Audience :: Developers",
10+
"License :: OSI Approved :: MIT License",
11+
"Programming Language :: Python :: 3",
12+
"Programming Language :: Python :: 3.10",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
16+
"Typing :: Typed",
2317
]
2418
dependencies = ["httpx>=0.27,<1", "keyring>=25,<27"]
19+
description = "Python SDK for AuthGate — OAuth 2.0 authentication and token management"
20+
dynamic = ["version"]
21+
license = "MIT"
22+
name = "go-authgate"
23+
readme = "README.md"
24+
requires-python = ">=3.10"
2525

2626
[project.optional-dependencies]
27-
fastapi = ["fastapi>=0.100"]
28-
flask = ["flask>=2.3"]
29-
django = ["django>=4.2"]
3027
dev = [
31-
"pytest>=8",
32-
"pytest-asyncio>=0.23",
33-
"pytest-httpx>=0.30",
34-
"coverage>=7",
35-
"mypy>=1.10",
36-
"ruff>=0.5",
28+
"pytest>=8",
29+
"pytest-asyncio>=0.23",
30+
"pytest-httpx>=0.30",
31+
"coverage>=7",
32+
"mypy>=1.10",
33+
"ruff>=0.5",
3734
]
35+
django = ["django>=4.2"]
36+
fastapi = ["fastapi>=0.100"]
37+
flask = ["flask>=2.3"]
3838

3939
[tool.hatch.version]
4040
path = "src/authgate/_version.py"
@@ -43,21 +43,21 @@ path = "src/authgate/_version.py"
4343
packages = ["src/authgate"]
4444

4545
[tool.ruff]
46-
target-version = "py310"
4746
line-length = 100
47+
target-version = "py310"
4848

4949
[tool.ruff.lint]
5050
select = [
51-
"E",
52-
"F",
53-
"W",
54-
"I",
55-
"N",
56-
"UP",
57-
"B",
58-
"A",
59-
"SIM",
60-
"RUF",
51+
"E",
52+
"F",
53+
"W",
54+
"I",
55+
"N",
56+
"UP",
57+
"B",
58+
"A",
59+
"SIM",
60+
"RUF",
6161
]
6262

6363
[tool.ruff.lint.isort]
@@ -70,21 +70,21 @@ warn_return_any = true
7070
warn_unused_configs = true
7171

7272
[[tool.mypy.overrides]]
73-
module = ["keyring", "keyring.errors"]
7473
ignore_missing_imports = true
74+
module = ["keyring", "keyring.errors"]
7575

7676
[[tool.mypy.overrides]]
77-
module = ["fastapi", "fastapi.*"]
7877
ignore_missing_imports = true
78+
module = ["fastapi", "fastapi.*"]
7979

8080
[[tool.mypy.overrides]]
81-
module = ["flask", "flask.*"]
8281
ignore_missing_imports = true
82+
module = ["flask", "flask.*"]
8383

8484
[[tool.mypy.overrides]]
85-
module = ["django", "django.*"]
8685
ignore_missing_imports = true
86+
module = ["django", "django.*"]
8787

8888
[tool.pytest.ini_options]
89-
testpaths = ["tests"]
9089
asyncio_mode = "auto"
90+
testpaths = ["tests"]

0 commit comments

Comments
 (0)