-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
227 lines (207 loc) · 5.2 KB
/
pyproject.toml
File metadata and controls
227 lines (207 loc) · 5.2 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
urls = { homepage = "https://douglasrizzo.com.br/catsim" }
authors = [
{ name = "Douglas De Rizzo Meneghetti", email = "douglasrizzo@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Education :: Testing",
]
name = "catsim"
version = "0.21.0"
description = "Computerized Adaptive Testing Simulator"
dependencies = [
"scipy",
"numexpr",
"matplotlib",
"tqdm",
"numpy",
]
requires-python = ">=3.11"
readme = "README.md"
license = "BSD-3-Clause"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.ruff]
line-length = 120
indent-width = 2
preview = true
target-version = "py311"
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"I",
"N",
"D",
"U",
"ANN",
"B",
"A",
"BLE",
"C4",
"EM",
"EXE",
"G",
"PIE",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TCH",
"ARG",
"PTH",
"TD",
"PD",
"PLE",
"PLW",
"PLC",
"PLR01",
"PLR02",
"PLR04",
"PLR1",
"PLR2",
"PLR5",
"PLR6",
"TRY201",
"TRY400",
"FLY",
"NPY",
"PERF",
"FURB",
"S",
"RUF",
]
ignore = ["ANN401", "D100", "E111", "E114", "S101"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ANN", # Test fixture wiring and local helpers do not need exhaustive annotations
"ARG005", # Mocked call signatures often intentionally ignore parameters
"D", # Test names already communicate intent; per-test docstring churn is low value
"PLC0415", # Local imports in tests are acceptable when improving isolation
"PLR6301", # Test methods don't need to use self
"PLR2004", # Magic values are fine in tests - they're explicit test expectations
"RUF069", # Exact float expectations are acceptable in tests
"S", # Security rules are too noisy for intentionally non-production test code
"SLF001", # Tests may access private members to set up or inspect internal state
"TC001", # Test-only type imports do not justify TYPE_CHECKING indirection
"TC003", # Test-only type imports do not justify TYPE_CHECKING indirection
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[dependency-groups]
dev = [
"black>=26.3.1",
"hypothesis>=6.127.0",
"ipykernel>=7.1.0",
"mutmut>=3.5.0",
"nbmake>=1.5.5",
"pre-commit>=4.5.1",
"pylint>=4.0.5",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ruff>=0.15.9",
"scikit-learn>=1.7.2",
"ty>=0.0.28",
]
docs = [
"bibtex-pygments-lexer>=0.0.1",
"matplotlib>=3.10.6",
"myst-parser>=4.0.1",
"numpydoc>=1.9.0",
"sphinx>=8.1.3",
"sphinx-autodoc-annotation>=1.0.post1",
"sphinxcontrib-bibtex>=2.6.3",
"pydata-sphinx-theme>=0.16.0",
]
[tool.mutmut]
paths_to_mutate = [
"src/catsim/engine.py",
"src/catsim/state.py",
"src/catsim/simulation.py",
]
tests_dir = ["tests/"]
also_copy = ["src/catsim"]
do_not_mutate = [
"*/__init__.py",
"src/catsim/plot.py",
]
max_stack_depth = 8
[tool.ty.src]
include = ["src/catsim"]
[tool.ty.rules]
all = "ignore"
division-by-zero = "error"
possibly-missing-import = "error"
redundant-cast = "error"
unused-ignore-comment = "error"
unused-type-ignore-comment = "error"
# ---------------------------------------------------------------------------
# Pylint
# ---------------------------------------------------------------------------
[tool.pylint.messages-control]
enable = [
"duplicate-code",
"too-many-ancestors",
"too-many-instance-attributes",
"arguments-differ",
"signature-differs",
"arguments-renamed",
"invalid-overridden-method",
"overridden-final-method",
"subclassed-final-class",
"attribute-defined-outside-init",
"super-init-not-called",
"non-parent-init-called",
"useless-parent-delegation",
"unused-private-member",
"redefined-slots-in-subclass",
"bad-classmethod-argument",
"bad-mcs-method-argument",
"no-classmethod-decorator",
"no-staticmethod-decorator",
"bad-except-order",
"duplicate-except",
"return-in-finally",
"lost-exception",
"cyclic-import",
"pointless-statement",
"duplicate-key",
"missing-parentheses-for-call-in-test",
"redefined-outer-name",
]
disable = ["all"]
[tool.pylint.design]
max-parents = 7
max-attributes = 12
[tool.pylint.similarities]
min-similarity-lines = 10
ignore-imports = true
ignore-docstrings = true
ignore-comments = true