-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (39 loc) · 1.25 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
[project]
authors = [{ name = "James O'Claire" }]
name = "cenus-wiki"
description = "Build Wikipedia Tables for USA Census data"
version = "0.0.1"
[project.optional-dependencies]
dev = ["pre-commit"]
dependencies = ["us", "census", "xlrd", "requests", "pandas"]
[build-system]
requires = ["setuptools", "wheel"]
[tool.ruff]
target-version = "py312"
# Rules, see: https://docs.astral.sh/ruff/rules/
# select = [
# "E", # errors
# "W", # pycodestyle Warnings
# "F", # PyFlake
# "B", # flake8-bugbear rules
# "I", # import sort
# "N", # PEP8 naming rules
# "UP", # pyupgrade, warnings for common mistakes for new versions
# #"D", # pydocstyle, all funcs have docstring
# ]
select = ["ALL"]
ignore = [
"E501", # line length
"PD901", # Pandas dataframes called 'df'
"ERA001", # no commented out code
"D211", # one-blank-line-before-class, conflict with D203
"D213", # multi-line-summary-second-line, conflict with D212
"G", # Pyflake logging recommends using extra= which is more cumbersome than f-strings
]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
fixable = ["I", "F", "COM"]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true