forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
27 lines (19 loc) · 749 Bytes
/
.ruff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
src = ["src"]
# Use Ruff for sorting imports
lint.extend-select = ["I"]
# Do not enforce line length; black does this for code and we do not care about comments / docs
lint.ignore = ["E501"]
[lint.per-file-ignores]
# Do not enforce usage and import order rules in init files
"__init__.py" = ["E402", "F401", "I"]
"main.py" = ["E402", "F401", "I"]
# Do not fix import in compatibility module
"src/prefect/utilities/compat.py" = ["F401", "I"]
# Allow wild imports in conftest
"tests/conftest.py" = ["F405", "E402", "F403"]
# Allow fake items in __all__ for runtime
"src/prefect/runtime/*" = ["F822"]
# Do not enforce line length limits in migrations
"src/prefect/server/database/migrations/**/*" = ["E501"]
[lint.isort]
known-third-party = []