-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpyproject.toml
48 lines (42 loc) · 1.12 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
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
ignore_missing_imports = true
check_untyped_defs = false
disable_error_code = [
"has-type",
"misc",
"var-annotated"
]
[[tool.mypy.overrides]]
module = "timemachine._vendored.fire"
follow_imports = "silent"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"NPY", # numpy-specific rules
"UP", # pyupgrade
"RUF", # ruff-specific
"W", # warning
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E731", # Do not assign a lambda expression, use a def
"E741", # Do not use variables named 'I', 'O', or 'l'
"NPY002", # Replace legacy `np.random.choice` call with `np.random.Generator`
"RUF002", # Docstring contains ambiguous `–` (EN DASH). Did you mean `-` (HYPHEN-MINUS)?
]
[build-system]
requires = [
# Need cmake/mypy if building the C++, only supported on linux
"cmake==3.24.3; sys_platform == 'linux'",
"mypy==1.14.1; sys_platform == 'linux'",
"setuptools >= 64.0.0",
"wheel",
]
build-backend = "setuptools.build_meta"