-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (54 loc) · 1.48 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
[project]
name = "obs-common"
description = "code shared between obs-team repositories"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"click",
"google-cloud-pubsub",
"google-cloud-storage",
"requests",
"sentry-sdk",
]
dynamic = ["version"]
[project.scripts]
license-check = "obs_common.license_check:main"
service-status = "obs_common.service_status:main"
gcs-cli = "obs_common.gcs_cli:gcs_group"
pubsub-cli = "obs_common.pubsub_cli:pubsub_group"
sentry-wrap = "obs_common.sentry_wrap:cli_main"
waitfor = "obs_common.waitfor:main"
[build-system]
requires = ["setuptools", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.distutils.bdist_wheel]
universal = true
[tool.setuptools]
packages = ["obs_common"]
[tool.setuptools_scm]
# Empty is fine
[tool.ruff]
line-length = 88
src = ["src", "tests"]
target-version = "py38"
[tool.ruff.lint]
# Enable pycodestyle (E), pyflakes (F), bugbear (B), and bandit (S) rules
select = ["E", "F", "B", "S"]
ignore = ["E501"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"obs_common/license_check.py" = ["S603", "S607"]
"obs_common/release.py" = ["S603", "S607"]
"obs_common/sentry_wrap.py" = ["S603"]
"obs_common/waitfor.py" = ["S310"]
"tests/**/*.py" = ["S101", "S603"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
]