https://github.com/pymc-devs/pymc3
Tip revision: f5a674b91076b669d6fe3e87670e0d5a88a6ff88 authored by AlexAndorra on 05 April 2024, 21:33:07 UTC
Add Oriol's comments
Add Oriol's comments
Tip revision: f5a674b
pyproject.toml
[tool.pytest.ini_options]
testpaths = ["tests"]
minversion = "6.0"
xfail_strict = true
addopts = ["--color=yes"]
[tool.ruff]
line-length = 100
target-version = "py39"
exclude = ["versioneer.py"]
[tool.ruff.lint]
select = ["D", "E", "F", "I", "UP", "W", "RUF"]
ignore-init-module-imports = true
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*"]