Skip to content

Commit

Permalink
fix: cleanup lint issue and also upgrade pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitkumar committed Nov 22, 2024
1 parent a5caf34 commit cf2cc87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions djangocms_attributes_field/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from platform import python_version
from django import get_version

from distutils.version import LooseVersion
from platform import python_version

from django import get_version

DJANGO_VERSION = get_version()
PYTHON_VERSION = python_version()
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ ignore="H023,T003,H006,H031,D018,H021,H025"
profile="django"

[tool.ruff]
exclude = [
lint.exclude = [
".env",
".venv",
"**/migrations/**",
]
ignore = [
lint.ignore = [
"E501", # line too long
"F403", # 'from module import *' used; unable to detect undefined names
"E701", # multiple statements on one line (colon)
"F401", # module imported but unused
]
line-length = 119
select = [
lint.select = [
"I",
"E",
"F",
Expand Down

0 comments on commit cf2cc87

Please sign in to comment.