-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
84 lines (77 loc) · 2.04 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
[project]
name = "er-outputs-secrets"
# keep in sync with Dockerfile
version = "0.2.1"
description = "Parse terraform outputs and create k8s secrets"
authors = [{ name = "AppSRE", email = "[email protected]" }]
license = { text = "MIT License" }
readme = "README.md"
requires-python = "~= 3.11.0"
dependencies = [
# allow updates for patch versions only
"anymarkup ~=0.8.1",
"external-resources-io ~=0.3.2",
"kubernetes ~=28.1.0",
"pydantic ~=2.8.0",
]
[project.urls]
homepage = "https://github.com/app-sre/er-outputs-secretse"
repository = "https://github.com/app-sre/er-outputs-secretse"
documentation = "https://github.com/app-sre/er-outputs-secretse"
[dependency-groups]
dev = [
# allow updates for minor versions
"ruff ~=0.7",
"mypy ~=1.13",
"pytest ~=8.3",
"pytest-cov ~=5.0",
]
# Ruff configuration
[tool.ruff]
line-length = 88
target-version = 'py311'
src = ["main"]
extend-exclude = [
".local", # used by poetry in local venv
".cache", # used by poetry in local venv
]
fix = true
[tool.ruff.lint]
preview = true
# defaults are ["E4", "E7", "E9", "F"]
extend-select = [
# flake8 default rules
"E1", # preview rule
"E2", # preview rule
"W",
# isort
"I",
# pylint
"PL",
# pyupgrade
"UP",
]
ignore = [
"PLR0904", # Too many public methods
"PLR0913", # Too many arguments
"PLR0917", # Too many positional arguments
]
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["main"]
# Mypy configuration
[tool.mypy]
files = ["main.py", "tests"]
enable_error_code = ["truthy-bool", "redundant-expr"]
no_implicit_optional = true
check_untyped_defs = true
warn_unused_ignores = true
show_error_codes = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
# Below are all of the packages that don't implement stub packages. Mypy will throw an error if we don't ignore the
# missing imports. See: https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
module = ["kubernetes.*"]
ignore_missing_imports = true