-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (114 loc) · 2.24 KB
/
pyproject.toml
File metadata and controls
125 lines (114 loc) · 2.24 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
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["hatchling>=1.21.0"]
build-backend = "hatchling.build"
[project]
name = "usautobuild"
version = "0.1.0"
description = ""
requires-python = ">=3.11,<4.0"
authors = [
{ name = "Andrés Riquelme", email = "andresfranco.rs@gmail.com" },
]
dependencies = [
"requests>=2.25.0,<3.0.0",
"gitpython>=3.1.29,<4.0.0",
"humanize>=4.5.0,<5.0.0",
]
[dependency-groups]
lint = [
"pre-commit>=3.0.0",
"ruff>=0.3.0,<0.4.0",
]
typecheck = [
"mypy>=1.0.0,<2.0.0",
"types-requests>=2.28.11.5,<3.0.0",
]
test = [
"pytest>=7.2.0,<8.0.0",
"pytest-cov>=4.0.0,<5.0.0",
]
[tool.ruff]
line-length = 121
[tool.ruff.lint]
ignore = [
# doesn't like Optional
# https://github.com/charliermarsh/ruff/issues/4858
"UP007",
# explicit raise from might be a bit too verbose, disable for now
"B904",
# asserts are useful in both tests and type checker persuasion
"S101",
# treats a link with the word "password" in it as a hardcoded password
"S105",
# enforced by formatter
"E501",
]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# isort
"I",
# flake8-bugbear
"B",
# flake8-naming
"N",
# pyupgrade
"UP",
# flake8-bandit
"S",
# flake8-comprehensions
"C4",
# flake8-logging-format
"G",
# flake8-simplify
"SIM",
# flake8-use-pathlib
"PTH",
# ruff
"RUF",
]
fixable = [
"I",
]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-between-types = 1
[tool.mypy]
show_column_numbers = true
show_error_codes = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
check_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
warn_unused_ignores = true
warn_return_any = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"git.*",
]
implicit_reexport = true
[[tool.mypy.overrides]]
module = [
"tests.*",
]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.coverage.report]
omit = [
"tests/*",
]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"\\.\\.\\.",
]