Skip to content

Commit 9f4f950

Browse files
authored
Merge pull request #148 from NHSDigital/automatically-order-imports
Automatically order imports
2 parents dad2377 + 80de989 commit 9f4f950

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repos:
1212
rev: v0.11.12
1313
hooks:
1414
# Run the linter.
15-
- id: ruff
15+
- id: ruff-check
16+
args: [--fix]
1617
# Run the formatter.
1718
- id: ruff-format

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ markers = ["system: mark a test as a system test"]
4444

4545
[tool.ruff]
4646
exclude = ["*/migrations/*.py"]
47+
48+
# On top of the defaults (`E4`, E7`, `E9`, and `F`), enable isort (`I`)
49+
select = ["E4", "E7", "E9", "F", "I"]

0 commit comments

Comments
 (0)