Merge branch 'pre-commit-updates' into 'master'

[MISC] pre-commit config updates

See merge request allianceauth/allianceauth!1614
This commit is contained in:
Ariel Rin 2024-03-29 02:24:49 +00:00
commit 98f0d77f3f
2 changed files with 53 additions and 38 deletions

View File

@ -67,7 +67,7 @@ repos:
) )
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.15.1 rev: v3.15.2
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [ --py38-plus ] args: [ --py38-plus ]
@ -78,8 +78,20 @@ repos:
- id: django-upgrade - id: django-upgrade
args: [--target-version=4.2] args: [--target-version=4.2]
- repo: https://github.com/asottile/setup-cfg-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0 rev: 1.7.0
hooks: hooks:
- id: setup-cfg-fmt - id: pyproject-fmt
args: [ --include-version-classifiers ] 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
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
description: "Validate the pyproject.toml file."

View File

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