Skip to content

Commit d71c236

Browse files
committed
Update ruff.toml syntax and update list of excluded folders
1 parent 6de8176 commit d71c236

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ruff.toml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
2-
select = ["E", "F"]
3-
ignore = ["E501"]
2+
lint.select = ["E", "F"]
3+
lint.ignore = ["E501"]
44

55
# Allow autofix for all enabled rules (when `--fix`) is provided.
6-
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
7-
unfixable = []
6+
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
7+
lint.unfixable = []
88

99
# Exclude a variety of commonly ignored directories.
1010
exclude = [
@@ -29,16 +29,17 @@ exclude = [
2929
"dist",
3030
"node_modules",
3131
"venv",
32+
"aleph/migrate",
3233
]
3334

3435
# Same as Black.
3536
line-length = 88
3637

3738
# Allow unused variables when underscore-prefixed.
38-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
39+
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
3940

4041
target-version = "py38"
4142

42-
[mccabe]
43+
[lint.mccabe]
4344
# Unlike Flake8, default to a complexity level of 10.
4445
max-complexity = 10

0 commit comments

Comments
 (0)