forked from pymc-devs/pymc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (89 loc) · 2.06 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
[build-system]
requires = ["setuptools", "versioneer[toml]==0.29"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests"]
minversion = "6.0"
xfail_strict = true
addopts = ["--color=yes"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "pymc/_version.py"
versionfile_build = "pymc/_version.py"
tag_prefix = "v"
[tool.mypy]
python_version = "3.10"
no_implicit_optional = false
strict_optional = true
warn_redundant_casts = false
check_untyped_defs = false
disallow_untyped_calls = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
disallow_untyped_decorators = false
ignore_missing_imports = true
warn_unused_ignores = false
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["_version.py"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["D", "E", "F", "I", "UP", "W", "RUF"]
ignore = [
"E501",
"F841", # Local variable name is assigned to but never used
"RUF001", # String contains ambiguous character (such as Greek letters)
"RUF002", # Docstring contains ambiguous character (such as Greek letters)
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D200",
"D202",
"D203",
"D204",
"D205",
"D209",
"D212",
"D213",
"D301",
"D400",
"D401",
"D403",
"D413",
"D415",
"D417",
]
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = [
"F401", # Module imported but unused
"F403", # 'from module import *' used; unable to detect undefined names
]
"docs/source/*" = ["D"]
"pymc/__init__.py" = [
"E402", # Module level import not at top of file
]
"pymc/stats/__init__.py" = [
"E402", # Module level import not at top of file
]
"pymc/logprob/__init__.py" = [
"I001", # Import block is un-sorted or un-formatted
]
"tests/*" = ["D"]
[tool.coverage.report]
exclude_lines = [
"pragma: nocover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.coverage.run]
omit = ["*examples*"]