-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (72 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (72 loc) · 1.76 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
[project]
name = "aoc-utils"
version = "0.0.1"
requires-python = ">=3.13"
dependencies = [
"pytest",
"requests",
]
description = ""
[project.scripts]
aoc-download = "aoc_utils:download_input"
aoc-submit = "aoc_utils:submit_solution"
[project.optional-dependencies]
dev = [
"pre-commit",
"mypy",
"ruff",
"types-requests",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
src = ["src"]
fix = true
# cba changing old stuff
exclude = [
"aoc_2021",
"aoc_2022",
]
force-exclude = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
'W191', # This conflicts with ruff format
'E111', # This conflicts with ruff format
'E114', # This conflicts with ruff format
'E117', # This conflicts with ruff format
'D206', # This conflicts with ruff format
'D300', # This conflicts with ruff format
'Q000', # This conflicts with ruff format
'Q001', # This conflicts with ruff format
'Q002', # This conflicts with ruff format
'Q003', # This conflicts with ruff format
'COM812', # This conflicts with ruff format
'COM819', # This conflicts with ruff format
'ISC001', # This conflicts with ruff format
"D", # I don't care about docs
"S101", # Use of assert if fine
"TD", # Currently use some todos while refactoring
"FIX002", # Currently use some todos while refactoring
"PD010", # Lots of false positives on non-pandas code
"PTH123", # open() is fine
"T201", # prints are fine here
]
fixable = ["ALL"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.mypy]
files = [
"src/",
"aoc_2024/",
]
ignore_missing_imports = true
strict = true
mypy_path = [
"src",
]
[tool.pytest.ini_options]
pythonpath = [
"src",
]