Skip to content

Commit fae6405

Browse files
chore: migrate ruff config to [lint] and enforce top-level imports (#140)
1 parent 8c95b76 commit fae6405

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.ruff.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
line-length = 100
22
target-version = "py39"
3+
4+
[lint]
35
select = [
46
"E", # pycodestyle errors
57
"W", # pycodestyle warnings
@@ -9,8 +11,9 @@ select = [
911
"C4", # flake8-comprehensions
1012
"UP", # pyupgrade
1113
"S", # bandit (security)
14+
"PLC0415", # import outside top level
1215
]
1316
ignore = ["E501", "B904"] # Line too long (handled by black), Exception handling without from
1417

15-
[per-file-ignores]
18+
[lint.per-file-ignores]
1619
"tests/*" = ["S101", "S105", "S106"] # Allow assert and ignore hardcoded password warnings in test files

0 commit comments

Comments
 (0)