-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (77 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
88 lines (77 loc) · 1.82 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
[project]
name = "envars"
version = "0.1.0"
description = "Application Config As Code"
authors = [
{ name = "Keith Harvey", email = "keith.harvey@timeout.com" }
]
dependencies = [
"boto3",
"google-cloud-kms",
"google-cloud-secret-manager",
"pyyaml",
"rich",
"typer",
"jinja2",
]
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
[project.scripts]
envars = "envars.cli:app"
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
pythonpath = [
"."
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"C4", # comprehensions
"TID",# tidy imports
"UP", # pyupgrade
"N", # pep8-naming
"D", # pydocstyle (optional, enable if you want docstring checks)
"S", # bandit (basic security checks)
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"S101", # Use of `assert` detected (for tests)
"S506", # Probable use of unsafe yaml.load
"E741", # Ambiguous variable name
]
[tool.ruff.lint.isort]
known-first-party = ["envars"]
[tool.ruff.lint.pydocstyle]
convention = "google" # Or "numpy", "pep257"
[dependency-groups]
dev = [
"pre-commit-uv>=4.2.0",
"pytest>=8.4.1",
"ruff>=0.12.2",
"ty>=0.0.1a13",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.29",
]