Skip to content

Commit a6cf797

Browse files
authored
Use ruff check to sort imports (#45)
1 parent 495b2d5 commit a6cf797

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ precommit: # Install pre-commit hooks
4141
pre-commit: precommit
4242

4343
lint:
44-
poetry run ruff format
4544
poetry run ruff check --fix
45+
poetry run ruff format
4646
poetry run pyright .
4747

4848
coverage:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[tool.ruff]
22
line-length = 120
33

4+
[tool.ruff.lint]
5+
select = ["E", "I"]
6+
47
[tool.coverage.run]
58
branch = true
69
source = ["project"]

0 commit comments

Comments
 (0)