-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
182 lines (155 loc) · 4.53 KB
/
pyproject.toml
File metadata and controls
182 lines (155 loc) · 4.53 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[project]
name = "ci-buildbot"
version = "0.11.3"
description = "Slack client for reporting on CodePipeline runs"
readme = "README.md"
authors = [
{name = "Caltech IMSS ADS", email = "imss-ads-staff@caltech.edu"},
]
maintainers = [
{name = "Christopher Malek", email = "cmalek@caltech.edu"},
{name = "Glenn Bach", email = "glenn@caltech.edu"},
]
keywords = ["aws", "ecs", "docker", "devops"]
dependencies = [
"slackclient >= 2.9.4",
"docker >= 7.1.0",
"gitpython >= 3.1.43",
"giturlparse >= 0.11.3",
"click >= 8.0",
"jinja2 >= 2.11.1",
"pydantic >= 2.9.1",
"pydantic-settings >= 2.5.2",
"pytz == 2024.1",
"sh == 1.13.1",
"toml == 0.10.2",
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Build Tools",
]
[project.urls]
Repository = "https://github.com/caltechads/ci-buildbot"
Issues = "https://github.com/caltechads/ci-buildbot/issues"
[project.scripts]
buildbot = "ci_buildbot.cli:main"
[build-system]
requires = [
"setuptools >= 48",
"wheel >= 0.29.0",
]
build-backend = "setuptools.build_meta"
[tool]
[tool.setuptools.packages.find]
where = ["."]
include = ["ci_buildbot*"]
namespaces = false
[tool.pylint]
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint."MESSAGES CONTROL"]
disable = ["missing-docstring,", "protected-access,", "unused-argument,", "invalid-name,", "too-few-public-methods,", "attribute-defined-outside-init,", "too-many-lines,", "no-member,", "unnecessary-pass,", "unnecessary-ellipsis"]
[tool.mypy]
python_executable = "~/.pyenv/shims/python"
exclude = "(?x)(^build)"
[[tool.mypy.overrides]]
module = "sphinx_rtd_theme.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "docker.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "git.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "giturlparse.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jinja2.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "click.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "slack.*"
ignore_missing_imports = true
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
#### modules
"ANN", # flake8-annotations
"COM", # flake8-commas
"C90", # mccabe complexity
"DJ", # django
"EXE", # flake8-executable
"T10", # debugger
"TID", # flake8-tidy-imports
#### specific rules
"D100", # ignore missing docs
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D205",
"D212",
"D400",
"D401",
"D415",
"E402", # false positives for local imports
"S603", # ignore subprocess calls that do not check return code
"S607", # ignore subprocess programs that are not absolute paths
"TRY003", # external messages in exceptions are too verbose
"T201", # ignore print statements
"TD002",
"TD003",
"FIX002", # too verbose descriptions of todos
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"