-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (96 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
102 lines (96 loc) · 1.65 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
[project]
name = "pyautoenv"
version = "0.7.1"
description = "Print a command to activate or deactivate a Python venv based on a directory."
authors = [
{name = "Harry Saunders", email = "33317174+hsaunders1904@users.noreply.github.com"}
]
license = "GPL-3.0-or-later"
requires-python = ">=3.9"
[dependency-groups]
dev = [
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"ruff>=0.11.4",
"yamlfmt>=1.1.1",
]
test = [
"pyfakefs>=5.8.0",
"pytest-benchmark>=5.1.0",
"pytest-cov>=6.1.1",
"pytest>=8.3.5",
"toml>=0.10.2",
]
[tool.ruff]
target-version = "py39"
line-length = 79
[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:"]
omit = ["tests/*", "benches/*"]
[tool.mypy]
ignore_missing_imports = true
[tool.ruff.lint]
select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"C4",
"C90",
"COM",
"D",
"DTZ",
"E",
"ERA",
"EXE",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PGH",
"PIE",
"PL",
"PLE",
"PLR",
"PLW",
"PT",
"RET",
"RSE",
"S",
"SIM",
"T10",
"T20",
"TCH",
"TID",
"TRY",
"W",
"YTT",
]
ignore = [
# ignore require docstring for '__init__' methods
"D107",
# ignore multiline comments should start on first line
"D212",
# ignore one-blank line before class
"D203",
# ignore implicit return None
"RET502",
# allow declaring error messages inside a raise call
"TRY003",
# allow expecting raise of ValueError in tests
"PT011",
# ruff format mandates trailing commas already
"COM812",
]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = [
# do not require documentation for tests
"D",
# do not require type annotations in tests
"ANN",
# allow use of assert
"S101",
]