-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
51 lines (44 loc) · 1.76 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
[build-system]
requires = ["setuptools >= 64.0"]
build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.10"
name = "climate-cabinet-campaign-finance"
dynamic = ["version"]
[tool.setuptools.packages.find]
where = ["src"] # the package is in src/toto/ now
[tool.ruff.lint]
extend-select = [
# by default, ruff enables all F and a subset of E rules
# for a description of rulesets and examples, see:
# https://docs.astral.sh/ruff/rules/
"ANN", # flake8-annotations - type annotations, some ignored
"B", # bugbear - identifies likely bugs
"C4", # flake8-comprehensions - identifies redundant calls in comprehensions
"D", # pydocstyle - requires docstrings on all public modules/functions/classes
"I", # isort
"N801", # pep8-naming - enforce ClassNamesStyle
"N804", # pep8-naming - first arg of classmethod should be cls
"N805", # pep8-naming - first arg of method should be self
"PD", # pandas-vet
"PLR2004",# Pylint no magic values!
"PTH", # prefer pathlib over os.path as seems to be the consensus
"Q", # flake8-quotes - double quotes preferred (like black)
"S", # flake8-bandit - security checks
"UP", # pyupgrade - requires preferred syntax in newer python versions
"YTT", # flake8-2020 - corrects code that doesn't anticipate 2 digit python minor version
]
ignore = [
"D415", # allow first line of doctstrings to end without punctuation
"ANN002", # missing type on *args
"ANN003", # missing type on **kwargs
"ANN101", # deprecated rule
"ANN102", # deprecated rule
"B905" # won't work on python <3.10
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["S101", "D", "ANN"]
[tool.pytest.ini_options]
testpaths = "tests"