-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (50 loc) · 1.37 KB
/
pyproject.toml
File metadata and controls
54 lines (50 loc) · 1.37 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
"build",
"dist",
"onnxscript",
]
line-length = 93
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
#"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"G", # flake8-logging-format
#"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
#"N", # pep8-naming
#"NPY", # modern numpy
#"PERF", # Perflint
"PIE", # flake8-pie
"PYI", # flake8-pyi
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLOT", # flake8-slot
"T10", # flake8-debugger
#"TID", # Disallow relative imports
#"TRY", # flake8-try-except-raise
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
[tool.ruff.lint.extend-per-file-ignores]
"**" = [
"C401", "C408", "C413",
"PIE790",
"PYI041",
"RUF012", "RUF100", "RUF010",
"SIM108", "SIM102", "SIM114", "SIM103", "SIM910",
"UP006", "UP015", "UP027", "UP031", "UP034", "UP035", "UP032"
]
"_doc/examples/plot_*.py" = ["E402", "B018", "PIE808", "SIM105", "SIM117"]
"_doc/notebooks/plot_*.py" = ["E402", "B018", "PIE808", "SIM105", "SIM117"]
"_doc/examples/plot_first_example.py" = ["F811"]
"_unittests/*/data/*.ipynb" = ["UP030"]
"sphinx_runpython/runpython/sphinx_runpython_extension.py" = ["F401"]