-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
147 lines (132 loc) · 2.9 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[tool.poetry]
name = "mergify_cli"
version = "0.0.0"
description = "Mergify CLI is a tool that automates the creation and management of stacked pull requests on GitHub"
authors = ["Mehdi Abaakouk <[email protected]>"]
readme = "README.md"
license = "Apache License"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
dirty = true
pattern = "default-unprefixed"
[tool.poetry.dependencies]
python = ">=3.10"
httpx = ">=0.20.0"
rich = ">=10.11.0"
aiofiles = ">=23.2.1,<25.0.0"
click = "^8.1.7"
click-default-group = "^1.2.4"
[tool.poetry.group.dev.dependencies]
mypy = {version = ">=0.930"}
mypy-extensions = "^1.0.0"
ruff = ">=0.5.1,<0.8.5"
pytest = {version = ">=6.2.5"}
poethepoet = ">=0.21,<0.32"
pytest-asyncio = ">=0.23.2,<0.26.0"
respx = ">=0.20.2,<0.23.0"
types-aiofiles = ">=23.2.0.20240106,<25.0.0.0"
types-click = "^7.1.8"
types-click-default-group = "^1.2.0.0"
[tool.poetry.scripts]
mergify = 'mergify_cli.cli:main'
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.poe]
include = ["poe.toml"]
[tool.mypy]
strict = true
warn_unreachable = true
exclude = [".venv"]
files = ["mergify_cli"]
show_error_codes = true
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
preview = true
select = [
"F",
"E",
"W",
"I",
"N",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"FA",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
"TD",
"ERA",
"PGH",
"PL",
"TRY",
"FLY",
"NPY",
"PERF",
"FURB",
"LOG",
"RUF",
]
ignore = [
# NOTE(charly): line-length is up to the formatter
"E501",
# NOTE(charly): `subprocess` module is possibly insecure
"S404",
# NOTE(jd): likely a false positive https://github.com/PyCQA/bandit/issues/333
"S603",
# NOTE(charly): Starting a process with a partial executable path
"S607",
# NOTE(charly): Boolean-typed positional argument in function definition.
# Interesting, but require some work.
"FBT001",
# NOTE(charly): Boolean default positional argument in function definition.
# Interesting, but require some work.
"FBT002",
# NOTE(charly): Missing issue link on the line following this TODO
"TD003",
# NOTE(charly): Magic value used in comparison
"PLR2004",
]
[tool.ruff.lint.per-file-ignores]
"mergify_cli/tests/**/*.py" = ["S101"]
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
lines-after-imports = 2
known-first-party = ["mergify_cli"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"