-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
49 lines (42 loc) · 1.18 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
[tool.poetry]
name = "advent-of-code-2023"
version = "0.1.0"
description = ""
authors = ["thijsfranck <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.dev-dependencies]
pre-commit = "^3.4"
pytest = "^7.4"
[tool.pyright]
pythonVersion = "3.11"
reportUnnecessaryTypeIgnoreComment = "error"
typeCheckingMode = "basic"
venv = ".venv"
venvPath = "."
[tool.ruff]
select = ["ALL"]
ignore = [
# Self and cls do not require annotations.
"ANN101",
"ANN102",
# Pyright error codes are obnoxiously long. Ignore lint telling you to use them.
"PGH003",
# No point in documenting magic methods.
"D105",
# Makes more sense to use `Parameters` in the main class instead of in the `__init__` .
"D107",
]
line-length = 100
target-version = "py311"
[tool.ruff.per-file-ignores]
# Ignore unused imports in init, caused by star imports.
# More convenient to provide `__all__` in files instead of duplicating in package __init__.
"__init__.py" = ["F401", "F403", "F405"]
"test__*.py" = ["PLR2004", "S101"]
[tool.ruff.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"