-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (131 loc) · 4.13 KB
/
pyproject.toml
File metadata and controls
138 lines (131 loc) · 4.13 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[project]
authors = [{name="Xavier Dupré", email="xavier.dupre@gmail.com"}]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = ["numpy>=2", "scikit-learn>=1.5", "scipy"]
description = "Points de détails liés au machine learning"
keywords = ["cython", "scikit-learn", "machine-learning"]
license = {file = "LICENSE.txt"}
name = "mlstatpy"
readme = "README.rst"
requires-python = ">=3.10"
version = "0.5.0"
[project.urls]
homepage = "https://sdpython.github.io/doc/mlstatpy/dev/"
documentation = "https://sdpython.github.io/doc/mlstatpy/dev/"
repository = "https://github.com/sdpython/mlstatpy/"
changelog = "https://sdpython.github.io/doc/mlstatpy/dev/CHANGELOGS.html"
[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",
"SIM905", "SIM108", "SIM910", "SIM110", "SIM102", "SIM114", "SIM103",
"UP015", "UP027", "UP031", "UP034", "UP032", "RUF051", "UP006", "UP035", "UP045", "UP007", "UP030", "UP038"
]
"_unittests/**" = ["SIM113", "RUF005", "E402"]
"**/plot*.py" = ["B018"]
"_doc/conf.py" = ["E501"]
"_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"]