-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
121 lines (107 loc) · 2.2 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
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
[tool.poetry]
name = "usautobuild"
version = "0.1.0"
description = ""
authors = ["Andrés Riquelme <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.11"
requests = "^2.25.0"
gitpython = "^3.1.29"
humanize = "^4.5.0"
[tool.poetry.group.lint.dependencies]
pre-commit = "3.*"
ruff = "0.3.*"
[tool.poetry.group.typecheck.dependencies]
mypy = "1.*"
types-requests = "^2.28.11.5"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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__.:",
"\\.\\.\\.",
]