mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
drop Ruff, i thought it was cool, kinda unnecessary
This commit is contained in:
parent
49a271a99f
commit
523aac6a08
@ -24,20 +24,14 @@ exclude: |
|
|||||||
)
|
)
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
# Code Upgrades
|
||||||
rev: v0.11.4
|
|
||||||
hooks:
|
|
||||||
# Run the linter, and only the linter
|
|
||||||
- id: ruff
|
|
||||||
|
|
||||||
- repo: https://github.com/adamchainz/django-upgrade
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
rev: 1.24.0
|
rev: 1.25.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: django-upgrade
|
- id: django-upgrade
|
||||||
args: [--target-version=5.1]
|
args: [--target-version=5.2]
|
||||||
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
- repo: https://github.com/asottile/pyupgrade # Ruff doesnt get everything.
|
rev: v3.20.0
|
||||||
rev: v3.19.1
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py310-plus]
|
args: [--py310-plus]
|
||||||
@ -59,7 +53,7 @@ repos:
|
|||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
# Python checks
|
# Python checks
|
||||||
#
|
# - id: check-docstring-first
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
# - id: requirements-txt-fixer
|
# - id: requirements-txt-fixer
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
@ -77,21 +71,22 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: editorconfig-checker
|
- id: editorconfig-checker
|
||||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
rev: v0.44.0
|
rev: v0.45.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint
|
- id: markdownlint
|
||||||
language: node
|
language: node
|
||||||
args:
|
args:
|
||||||
- --disable=MD013
|
- --disable=MD013
|
||||||
|
|
||||||
# Infrastructure
|
# Infrastructure
|
||||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
rev: v2.5.1
|
rev: v2.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
args:
|
args:
|
||||||
- --indent=4
|
- --indent=4
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- tox==4.24.1 # https://github.com/tox-dev/tox/releases/latest
|
- tox==4.26.0 # https://github.com/tox-dev/tox/releases/latest
|
||||||
- repo: https://github.com/tox-dev/tox-ini-fmt
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
||||||
rev: 1.5.0
|
rev: 1.5.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -87,50 +87,6 @@ scripts.allianceauth = "allianceauth.bin.allianceauth:main"
|
|||||||
[tool.flit.module]
|
[tool.flit.module]
|
||||||
name = "allianceauth"
|
name = "allianceauth"
|
||||||
|
|
||||||
[tool.ruff]
|
|
||||||
line-length = 119
|
|
||||||
format.line-ending = "lf"
|
|
||||||
lint.select = [
|
|
||||||
"B", # flake8-bugbear
|
|
||||||
"C", # pylint convention
|
|
||||||
# "D", # pydocstyle, Want to turn these on, but our docstrings are lightly used
|
|
||||||
"D300", # use triple double-quotes in docstrings PEP 257
|
|
||||||
"DJ", # flake8-django
|
|
||||||
"DOC", # pylintdoc
|
|
||||||
"E", # pycodestyle error
|
|
||||||
"F", # pyflakes (flake8 base)
|
|
||||||
"G010", # logging-warn, Warn on using logging.warn
|
|
||||||
"I", # isort
|
|
||||||
"PGH005", # pygrep-hooks, python-check-mock-method
|
|
||||||
"RUF100", # basically yesqa
|
|
||||||
"UP", # pyupgrade, will target requires-python
|
|
||||||
"W", # pycodestyle Warning
|
|
||||||
]
|
|
||||||
lint.ignore = [
|
|
||||||
"E501", # Line too long, WIP across repo.
|
|
||||||
]
|
|
||||||
|
|
||||||
lint.per-file-ignores = { "*local.py" = [ "F405", "F403" ] }
|
|
||||||
|
|
||||||
lint.isort.combine-as-imports = true # profile=django
|
|
||||||
lint.isort.section-order = [
|
|
||||||
"future",
|
|
||||||
"standard-library",
|
|
||||||
"third-party",
|
|
||||||
"DJANGO",
|
|
||||||
"ESI",
|
|
||||||
"first-party",
|
|
||||||
"local-folder",
|
|
||||||
]
|
|
||||||
lint.isort.sections."DJANGO" = [
|
|
||||||
"django",
|
|
||||||
"django_redis",
|
|
||||||
"django_registration",
|
|
||||||
]
|
|
||||||
lint.isort.sections."ESI" = [
|
|
||||||
"esi",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "django"
|
profile = "django"
|
||||||
sections = [
|
sections = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user