Skip to content

Commit cf2cc87

Browse files
committed
fix: cleanup lint issue and also upgrade pyproject
1 parent a5caf34 commit cf2cc87

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

djangocms_attributes_field/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from platform import python_version
2-
from django import get_version
3-
41
from distutils.version import LooseVersion
2+
from platform import python_version
53

4+
from django import get_version
65

76
DJANGO_VERSION = get_version()
87
PYTHON_VERSION = python_version()

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ ignore="H023,T003,H006,H031,D018,H021,H025"
1515
profile="django"
1616

1717
[tool.ruff]
18-
exclude = [
18+
lint.exclude = [
1919
".env",
2020
".venv",
2121
"**/migrations/**",
2222
]
23-
ignore = [
23+
lint.ignore = [
2424
"E501", # line too long
2525
"F403", # 'from module import *' used; unable to detect undefined names
2626
"E701", # multiple statements on one line (colon)
2727
"F401", # module imported but unused
2828
]
2929
line-length = 119
30-
select = [
30+
lint.select = [
3131
"I",
3232
"E",
3333
"F",

0 commit comments

Comments
 (0)