Commit
•
9915c6f
1
Parent(s):
cee1d41
Add pyproject.toml configuration file for Ruff
Browse files- pyproject.toml +59 -0
pyproject.toml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.ruff]
|
2 |
+
# Exclude a variety of commonly ignored directories.
|
3 |
+
exclude = [
|
4 |
+
".bzr",
|
5 |
+
".direnv",
|
6 |
+
".eggs",
|
7 |
+
".git",
|
8 |
+
".git-rewrite",
|
9 |
+
".hg",
|
10 |
+
".ipynb_checkpoints",
|
11 |
+
".mypy_cache",
|
12 |
+
".nox",
|
13 |
+
".pants.d",
|
14 |
+
".pyenv",
|
15 |
+
".pytest_cache",
|
16 |
+
".pytype",
|
17 |
+
".ruff_cache",
|
18 |
+
".svn",
|
19 |
+
".tox",
|
20 |
+
".venv",
|
21 |
+
".vscode",
|
22 |
+
"__pypackages__",
|
23 |
+
"_build",
|
24 |
+
"buck-out",
|
25 |
+
"build",
|
26 |
+
"dist",
|
27 |
+
"node_modules",
|
28 |
+
"site-packages",
|
29 |
+
"venv",
|
30 |
+
]
|
31 |
+
|
32 |
+
# Same as Black.
|
33 |
+
line-length = 88
|
34 |
+
indent-width = 4
|
35 |
+
|
36 |
+
# Assume Python 3.8
|
37 |
+
target-version = "py311"
|
38 |
+
|
39 |
+
[tool.ruff.lint]
|
40 |
+
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
41 |
+
select = ["E4", "E7", "E9", "F", "I001"]
|
42 |
+
ignore = []
|
43 |
+
|
44 |
+
# Allow fix for all enabled rules (when `--fix`) is provided.
|
45 |
+
fixable = ["ALL"]
|
46 |
+
unfixable = []
|
47 |
+
|
48 |
+
[tool.ruff.format]
|
49 |
+
# Like Black, use double quotes for strings.
|
50 |
+
quote-style = "double"
|
51 |
+
|
52 |
+
# Like Black, indent with spaces, rather than tabs.
|
53 |
+
indent-style = "space"
|
54 |
+
|
55 |
+
# Like Black, respect magic trailing commas.
|
56 |
+
skip-magic-trailing-comma = false
|
57 |
+
|
58 |
+
# Like Black, automatically detect the appropriate line ending.
|
59 |
+
line-ending = "auto"
|