-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (66 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
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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aoc"
version = "0.1"
dependencies = [
"click",
"numpy>=1.15.4",
"importlib_resources",
"packaging",
]
[project.optional-dependencies]
# these self-dependencies are available since pip 21.2
all = [
"aoc[docs, test, linting]"
]
docs = [
"sphinx>=6.0.0,<7.0.0",
"sphinx-autosummary-accessors>=0.1.2",
"sphinx_immaterial",
"recommonmark>=0.6",
]
test = [
"pytest>=5.4.1",
"pytest-cov>=0.6",
"pytest-xdist",
"pytest-randomly",
]
linting = [
"black>=24,<25",
"flake8",
"mypy",
"isort",
]
[project.scripts]
aoc = "aoc.aoc_cli:cli"
[tool.black]
# Exclude templates
line-length = 88
force-exclude = 'templates/*'
[tool.mypy]
packages = "aoc"
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
exclude = [
"docs/*",
"aoc/templates/*",
"aoc/aoc_2022/*",
"aoc/aoc_2023/python/ex_03.py",
"aoc/aoc_2023/python/ex_04.py",
"aoc/aoc_2023/python/ex_05.py",
]
[[tool.mypy.overrides]]
module = [
"*.tests.*",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"numpy.*",
]
ignore_missing_imports = true
[tool.isort]
profile = "black"