-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
41 lines (36 loc) · 1.5 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
[build-system]
requires = ["setuptools >= 64.0"]
build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.10"
name = "coding-challenges"
dynamic = ["version"]
[tool.setuptools.packages.find]
where = ["challenges"]
[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/
"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
"B905", # won't work on python <3.10
"PD010" # pd.Series.unstack() is often more concise and clearer than pd.DataFrame.pivot_table()
]
[tool.ruff.lint.pydocstyle]
convention = "google"