Skip to content

Commit fda71cf

Browse files
Avasamclin1234
authored andcommitted
Don't re-export imports outside of __init__.py (#2226)
1 parent ee8ca75 commit fda71cf

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

ruff.toml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,13 @@ target-version = "py37" # Target the oldest supported version
22

33
[lint]
44
select = [
5-
"C4", # flake8-comprehensions
6-
"F811", # redefined-while-unused
7-
"I", # isort
5+
"I", # isort
86
"PLC", # Pylint Convention
9-
"PLE", # Pylint Error
10-
"RSE", # flake8-raise
11-
"W", # pycodestyle Warning
12-
"YTT", # flake8-2020
13-
14-
# String formatting, concatenating, interpolation, ...
15-
"FLY", # static-join-to-f-string
16-
"G", # flake8-logging-format
17-
# Note, we still want to allow multiline ISC
18-
"ISC001", # single-line-implicit-string-concatenation
19-
"UP025", # Remove unicode literals from strings
20-
"UP030", # Use implicit references for positional format fields
21-
# TODO: Still lots of manual fixes needed
22-
# "UP031", # Use format specifiers instead of percent format
23-
# "UP032", # Use f-string instead of format call
24-
25-
# Ensure modern type annotation syntax and best practices
26-
# Not including those covered by type-checkers
27-
"FA", # flake8-future-annotations
28-
"F404", # late-future-import
29-
"PYI", # flake8-pyi
30-
"UP006", # non-pep585-annotation
31-
"UP007", # non-pep604-annotation
32-
"UP010", # unnecessary-future-import
33-
"UP037", # quoted-annotation
347
]
358

369
[lint.per-file-ignores]
3710
# Explicit re-exports is fine in __init__.py, still a code smell elsewhere.
3811
"__init__.py" = ["PLC0414"]
39-
# TODO: Make adodbapi changes in their own PRs
40-
"adodbapi/*" = ["C4", "YTT301", "UP031", "UP032", "ISC002"]
4112

4213
[lint.isort]
4314
combine-as-imports = true

0 commit comments

Comments
 (0)