-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.62 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.62 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
[project]
name = "cookie-py"
version = "3.0.0"
description = "Modern Python project template using Copier, uv, ruff, and pyright"
authors = [
{name = "Felipe 'Bidu' Rodrigues", email = "[email protected]"}
]
license = {text = "GPL-3.0"}
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"copier>=9.1.0",
"pytest>=8.0.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"pyright>=1.1.390",
"pyyaml>=6.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["tests", "tasks"]
[tool.pytest.ini_options]
addopts = """
-ra -vv
--cov=tests
--cov-report term-missing:skip-covered
-m "not slow"
"""
minversion = "8.0"
testpaths = ["tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"RUF", # ruff-specific
]
ignore = [
"E501", # line too long, handled by formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["S101"] # Allow assert statements in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pyright]
include = ["tests", "tasks"]
exclude = ["**/__pycache__", "template"]
reportMissingTypeStubs = false
pythonVersion = "3.12"
typeCheckingMode = "strict"