-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (114 loc) · 2.97 KB
/
pyproject.toml
File metadata and controls
128 lines (114 loc) · 2.97 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "aoc"
version = "0.1.0"
description = "Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other."
authors = [{ name = "mbrickerd", email = "mallorybrickerd@gmail.com" }]
requires-python = "<4.0,>=3.11"
readme = "README.md"
dependencies = [
"loguru<1.0.0,>=0.7.3",
"requests<3.0.0,>=2.32.3",
"bs4<1.0.0,>=0.0.2",
"rustworkx>=0.17.1",
"scipy>=1.16.3",
"scipy-stubs>=1.16.3.3",
]
[dependency-groups]
dev = [
"ruff==0.3.4",
"mypy>=1.13.0,<2",
"types-requests>=2.32.0,<3.0.0",
"types-beautifulsoup4>=4.12.0,<5.0.0",
"pytest>=8.3.4,<9",
"pre-commit>=4.5.0",
"loguru-mypy>=0.0.4",
]
[tool.hatch.build.targets.sdist]
include = ["aoc"]
[tool.hatch.build.targets.wheel]
include = ["aoc"]
[tool.ruff]
line-length = 100
target-version = "py311"
include = ["*.py", "*.pyi", "**/pyproject.toml"]
exclude = [
".venv",
".git",
"__pycache__",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"I", # isort
"N", # naming
"S", # bandit
"BLE", # blind-except
"FBT", # boolean-trap
"B", # bugbear
"A", # builtins
"C4", # comprehensions
"EM", # errmsg
"FA", # future-annotations
"ISC", # implicit-str-concat
"ICN", # import-conventions
"T20", # print
"PT", # pytest-style
"RET", # return
"SIM", # simplify
"PTH", # pathlib
"ERA", # eradicate
"PGH", # pygrep-hooks
"NPY", # numpy-style
"PERF", # performance
"RUF", # ruff-specific
]
fixable = ["ALL"]
unfixable = []
ignore = ["D400", "E203", "ISC001", "RUF002"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"]
"**/__init__.py" = ["D104"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
case-sensitive = true
lines-after-imports = 2
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true
[tool.pdm.build]
includes = ["aoc"]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
pythonpath = ["."]
addopts = "-v"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_optional = true
explicit_package_bases = true
mypy_path = "."
[[tool.mypy.overrides]]
module = [
"numpy.*",
"pandas.*"
]
ignore_missing_imports = true