Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (103 loc) · 1.6 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (103 loc) · 1.6 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "colours"
version = "0.3.0"
description = "An Enum wrapper around Rich printing and logging."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"rich>=13.9.4",
]
[dependency-groups]
dev = [
"pre-commit==3.7.1",
"pylint >=3.1.0, <4.0.0",
"pytest==8.4.1",
"pytest-cov >=5.0.0, <6.0.0",
"ruff>=0.12.0",
]
[tool.uv]
default-groups = ["dev"]
required-version = ">=0.7.0"
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py", "test*.py"]
addopts = "--cov=colours --cov-report=term-missing"
[tool.ruff]
line-length = 128
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
preview = true
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"B",
"BLE",
"COM",
"C4",
"C90",
"D",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FAST",
"FIX",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INP",
"INT",
"LOG",
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PTH",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"RUF",
"S",
"SIM",
"SLF",
"T10",
"T20",
"TC",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
ignore = [
"ANN401",
"COM812",
"D107",
"D203",
"D213",
"S404",
"S311",
"S603",
]
[tool.ruff.lint.pylint]
max-locals = 20
max-args = 10
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SLF001", "INP001", "ANN201", "S101", "PLR6301", "PLR2004"]