mirror of
https://github.com/django-polymorphic/django-polymorphic.git
synced 2026-02-14 02:30:23 +03:00
Update pre-commit tools, fix ruff configuration so it doesn't warn
This commit is contained in:
parent
8c3029cde1
commit
cf8ae6e2ed
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -15,5 +15,5 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.13"
|
||||
- uses: pre-commit/action@v3.0.1
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.12.0
|
||||
rev: v0.12.9
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ requires = [
|
|||
[tool.ruff]
|
||||
line-length = 99
|
||||
|
||||
|
||||
[tool.ruff.lint]
|
||||
extend-ignore = [
|
||||
"E501",
|
||||
]
|
||||
|
|
@ -18,7 +20,7 @@ select = [
|
|||
"W",
|
||||
]
|
||||
|
||||
[tool.ruff.per-file-ignores]
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"example/**" = [
|
||||
"F401",
|
||||
"F403",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user