[CHANGE] Project file linter

We don't use setup.cfg anymore, so we should lint the pyproject.toml file now.
This commit is contained in:
Peter Pfeufer 2024-03-28 20:33:16 +01:00
parent fc303b1b0a
commit 7c7c1abf7c
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
2 changed files with 45 additions and 37 deletions

View File

@ -78,8 +78,13 @@ repos:
- id: django-upgrade
args: [--target-version=4.2]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
hooks:
- id: setup-cfg-fmt
args: [ --include-version-classifiers ]
- id: pyproject-fmt
name: pyproject.toml formatter
description: "Format the pyproject.toml file."
args:
- --indent=4
additional_dependencies:
- tox==4.14.2 # https://github.com/tox-dev/tox/releases/latest

View File

@ -1,20 +1,21 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
requires = [
"flit_core<4,>=3.2",
]
[project]
name = "allianceauth"
dynamic = ["version", "description"]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Alliance Auth", email = "adarnof@gmail.com" },
]
keywords = [
"allianceauth",
"eveonline",
]
license = {file = "LICENSE"}
authors = [
{ name = "Alliance Auth", email = "adarnof@gmail.com" },
]
requires-python = ">=3.8"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
@ -23,6 +24,7 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
@ -31,56 +33,57 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dynamic = [
"description",
"version",
]
dependencies = [
"bcrypt",
"beautifulsoup4",
"celery<6,>=5.2",
"celery-once>=3.0.1",
"celery>=5.2.0,<6",
'django-bootstrap5>=23.3',
"django<5,>=4.2",
"django-bootstrap-form",
"django-celery-beat>=2.3.0",
"django-esi>=5.0.0",
"django-redis>=5.2.0",
"django-registration>=3.3,<3.4",
"django-bootstrap5>=23.3",
"django-celery-beat>=2.3",
"django-esi>=5",
"django-redis>=5.2",
"django-registration<3.4,>=3.3",
"django-sortedm2m",
"django>=4.2,<5",
"dnspython",
"mysqlclient>=2.1.0",
"mysqlclient>=2.1",
"openfire-restapi",
"packaging>=21.0",
"packaging>=21",
"passlib",
"pydiscourse",
"python-slugify>=1.2",
"redis>=4.0.0",
"requests-oauthlib",
"redis>=4",
"requests>=2.9.1",
"requests-oauthlib",
"semantic-version",
"slixmpp",
]
[project.optional-dependencies]
docs = [
"myst-parser",
"sphinx",
"sphinx-copybutton",
"sphinx-tabs",
"sphinx_rtd_theme<3.0.0,>=2",
"sphinxcontrib-django",
]
test = [
"coverage>=4.3.1",
"django-webtest",
"requests-mock>=1.2.0"
"requests-mock>=1.2",
]
docs = [
"sphinx",
"sphinx_rtd_theme>=2.0.0,<3.0.0",
"myst-parser",
"sphinxcontrib-django",
"sphinx-copybutton",
"sphinx-tabs",
]
[project.scripts]
allianceauth = "allianceauth.bin.allianceauth:main"
[project.urls]
Homepage = "https://gitlab.com/allianceauth/allianceauth"
Documentation = "https://allianceauth.readthedocs.io/"
Homepage = "https://gitlab.com/allianceauth/allianceauth"
Source = "https://gitlab.com/allianceauth/allianceauth"
Tracker = "https://gitlab.com/allianceauth/allianceauth/-/issues"
[project.scripts]
allianceauth = "allianceauth.bin.allianceauth:main"
[tool.flit.module]
name = "allianceauth"