-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
101 lines (96 loc) · 2.75 KB
/
pyproject.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
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.rstcheck]
report_level = "INFO"
ignore_directives = [
"autosignature",
"autoclass",
"autofunction",
"automodule",
"blogpost",
"blogpostagg",
"exref",
"exreflist",
"faqreflist",
"gdot",
"image-sg",
"inheritance-diagram",
"mathdef",
"mathdeflist",
"nbgallery",
"nbgallerylink",
"plot",
"runpython",
"tocdelay",
"todoext",
"todoextlist",
]
ignore_roles = ["epkg", "githublink", "issue"]
ignore_messages = [
".*Hyperlink target .* is not referenced.*",
".*Document or section may not begin with a transition.*",
".*Unknown target name: .*[0-9]{4}.*",
".*Duplicate explicit target name: .pdf..*",
".*Unexpected possible title overline or transition..*",
#
".*Duplicate implicit target name: .((complétion)|(analyse de survie)|(régression linéaire))..*",
".*Duplicate implicit target name: .((courbe roc)|(diagramme de voronoï)|(régression logistique))..*",
".*kppv.rst:11[560].*",
".*rn_biblio.rst:7.*",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
"build",
"dist",
]
line-length = 88
[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.per-file-ignores]
"**" = [
"B905",
"C401", "C408", "C413",
"RUF012", "RUF100", "RUF010",
"SIM108", "SIM910", "SIM110", "SIM102", "SIM114", "SIM103",
"UP015", "UP027", "UP031", "UP034", "UP032", "UP006", "UP035", "UP007", "UP030", "UP038"
]
"_unittests/**" = ["SIM113", "RUF005", "E402"]
"**/plot*.py" = ["B018"]
"_doc/sphinxdoc/source/conf.py" = ["F821"]
"_doc/notebooks/dsgarden/**" = ["B007", "E402"]
"_doc/notebooks/metric/**" = ["C400", "RUF005", "B007", "C417"]
"_doc/notebooks/ml/**" = ["E402", "B007", "RUF005"]
"_doc/notebooks/nlp/**" = ["RUF005", "E501", "F811", "E401", "E402"]
"mlstatpy/__init__.py" = ["E501"]
"mlstatpy/graph/__init__.py" = ["F401"]
"mlstatpy/graph/graph_distance.py" = ["E731"]
"mlstatpy/image/detection_segment/__init__.py" = ["F401"]
"mlstatpy/ml/__init__.py" = ["F401"]
"mlstatpy/ml/ml_grid_benchmark.py" = ["E731"]
"mlstatpy/nlp/__init__.py" = ["F401"]
"mlstatpy/optim/__init__.py" = ["F401"]