File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ indent-width = 2
2
+
3
+ [format ]
4
+ # Exclude commonly ignored directories.
5
+ exclude = [
6
+ " .bzr" ,
7
+ " .direnv" ,
8
+ " .eggs" ,
9
+ " .git" ,
10
+ " .git-rewrite" ,
11
+ " .hg" ,
12
+ " .ipynb_checkpoints" ,
13
+ " .mypy_cache" ,
14
+ " .nox" ,
15
+ " .pants.d" ,
16
+ " .pyenv" ,
17
+ " .pytest_cache" ,
18
+ " .pytype" ,
19
+ " .ruff_cache" ,
20
+ " .svn" ,
21
+ " .tox" ,
22
+ " .venv" ,
23
+ " .vscode" ,
24
+ " __pypackages__" ,
25
+ " _build" ,
26
+ " buck-out" ,
27
+ " build" ,
28
+ " dist" ,
29
+ " node_modules" ,
30
+ " site-packages" ,
31
+ " venv" ,
32
+ ]
33
+
34
+ indent-style = " space"
35
+ line-ending = " lf"
36
+ quote-style = " single"
37
+ docstring-code-format = true
38
+
39
+
40
+ [lint ]
41
+ # Avoid enforcing line-length violations (`E501`)
42
+ ignore = [" E501" ]
43
+
44
+ # Allow unused variables when underscore-prefixed.
45
+ dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
46
+
47
+
48
+ # Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
49
+ [lint .per-file-ignores ]
50
+ "__init__.py" = [" E402" , " F401" ]
51
+ "**/__init__.py" = [" E402" , " F401" ]
52
+ "**/{tests,docs,tools}/*" = [" E402" ]
You can’t perform that action at this time.
0 commit comments