Skip to content

Commit 5d79981

Browse files
authored
Update pre-commit (#15)
1 parent 4e3ac13 commit 5d79981

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ repos:
1818
- id: trailing-whitespace
1919

2020
- repo: https://github.com/asottile/pyupgrade
21-
rev: v3.15.0
21+
rev: v3.15.2
2222
hooks:
2323
- id: pyupgrade
2424
args:
2525
- "--py38-plus"
2626

2727
- repo: https://github.com/adamchainz/django-upgrade
28-
rev: 1.15.0
28+
rev: 1.16.0
2929
hooks:
3030
- id: django-upgrade
3131
args: [--target-version, "3.2"]
3232

3333

3434
- repo: https://github.com/python-poetry/poetry
35-
rev: 1.6.1
35+
rev: 1.8.0
3636
hooks:
3737
- id: poetry-check
3838
additional_dependencies:
@@ -43,7 +43,7 @@ repos:
4343
- id: poetry-export
4444

4545
- repo: https://github.com/astral-sh/ruff-pre-commit
46-
rev: v0.1.9
46+
rev: v0.3.4
4747
hooks:
4848
- id: ruff-format
4949
- id: ruff

django_fsm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
State tracking functionality for django models
33
"""
4+
45
from __future__ import annotations
56

67
import inspect

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ target-version = "py38"
5555
fix = true
5656

5757
[tool.ruff.lint]
58+
5859
extend-select = [
5960
"F", # Pyflakes
6061
"E", # pycodestyle
@@ -65,7 +66,7 @@ extend-select = [
6566
fixable = ["I"]
6667

6768

68-
[tool.ruff.isort]
69+
[tool.ruff.lint.isort]
6970
force-single-line = true
7071
required-imports = ["from __future__ import annotations"]
7172

tests/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"django.contrib.contenttypes",
1212
"django.contrib.auth",
1313
"guardian",
14-
) + PROJECT_APPS
14+
*PROJECT_APPS,
15+
)
1516

1617
AUTHENTICATION_BACKENDS = (
1718
"django.contrib.auth.backends.ModelBackend", # this is default

0 commit comments

Comments
 (0)