-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (84 loc) · 2 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
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
[project]
name = "adventofcode"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"attrs ==24.3.0",
"typer ==0.15.1",
"joblib ==1.4.2",
]
[project.scripts]
adventofcode = "adventofcode.main:app"
[tool.poe.tasks]
"sync:uv" = "uv sync"
"sync:yarn" = "yarn"
sync = ["sync:uv", "sync:yarn"]
"check:github-actions" = "yarn run check:github-actions"
"check:mypy" = "mypy ."
"check:yarn:dedupe" = "yarn run check:yarn:dedupe"
"check:prettier" = "yarn run check:prettier"
"check:pyright" = "yarn run check:pyright"
"check:renovateconfig" = "yarn run check:renovateconfig"
"check:ruff" = "ruff check"
"check:ruff:format" = "ruff format --check"
"check:pytest" = "pytest"
check = [
"check:ruff",
"check:ruff:format",
"check:prettier",
"check:pyright",
"check:mypy",
"check:pytest",
"check:github-actions",
"check:yarn:dedupe",
"check:renovateconfig"
]
"fix:format:prettier" = "yarn run fix:prettier"
"fix:format:ruff" = "ruff format"
"fix:ruff" = "ruff check --fix-only"
"fix:format" = ["fix:format:prettier", "fix:format:ruff"]
fix = ["fix:format", "fix:ruff"]
all = ["sync", "check", "runall"]
[tool.poe.tasks.runall]
cmd = "adventofcode all"
env = { PYTHONWARNINGS = "always,error" }
[dependency-groups]
dev = [
"ruff ==0.9.2",
"joblib-stubs ==1.4.2.5.20240918",
"mypy ==1.14.1",
"pytest ==8.3.4",
"snakeviz ==2.2.2",
"tuna ==0.5.11",
"pyinstrument ==5.0.0",
"poethepoet ==0.32.1",
]
[tool.pyright]
typeCheckingMode = "strict"
[tool.mypy]
strict_optional = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812",
"D10",
"FIX",
"ISC001",
"PLR2004",
"RUF009", # Needed due to https://github.com/astral-sh/ruff/issues/6447
"S101",
"TD002",
"TD003"
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = ["INP001"]
"adventofcode/main.py" = ["T201"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pytest.ini_options]
filterwarnings = ["error"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"