Skip to content

Commit f8e37a0

Browse files
committed
build: add I into ruff lint and add "ruff check --fix" to format script to enable import sorting
1 parent e9aa5d9 commit f8e37a0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,16 @@ addopts = "--strict-markers"
149149
line-length = 88
150150

151151
[tool.ruff.lint]
152-
select = ["E", "F", "UP"]
152+
select = [
153+
# pycodestyle
154+
"E",
155+
# Pyflakes
156+
"F",
157+
# pyupgrade
158+
"UP",
159+
# isort
160+
"I",
161+
]
153162
ignore = [
154163
"E501",
155164
"D1",

scripts/format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ export PREFIX="poetry run python -m "
55

66
set -x
77

8+
# This is needed for running import sorting
9+
${PREFIX}ruff check --fix commitizen tests
810
${PREFIX}ruff format commitizen tests
911
${PREFIX}black commitizen tests

0 commit comments

Comments
 (0)