generated from app-sre/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
105 lines (94 loc) · 2.61 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
[project]
name = "er-aws-elasticache"
version = "0.1.0"
description = "ERv2 module for managing AWS Elasticache clusters"
authors = [{ name = "AppSRE", email = "sd-app-sre@redhat.com" }]
license = { text = "Apache 2.0" }
readme = "README.md"
requires-python = "~= 3.11.0"
dependencies = [
"boto3 ~=1.35.47",
"cdktf ==0.20.10",
"external-resources-io ~=0.3.2",
"pydantic ~=2.10.3",
# the cdktf provider are generated by cdktf-provider-sync. See Makefile and Dockerfile
]
[project.urls]
homepage = "https://github.com/app-sre/er-aws-elasticache"
repository = "https://github.com/app-sre/er-aws-elasticache"
documentation = "https://github.com/app-sre/er-aws-elasticache"
[dependency-groups]
dev = [
"ruff ~=0.7",
"mypy ~=1.13",
"pytest ~=8.2",
"pytest-cov ~=6.0",
"boto3-stubs-lite[elasticache,ec2] ~=1.35.47",
]
[project.scripts]
er-aws-elasticache = 'er_aws_elasticache.__main__:main'
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["er_aws_elasticache"]
# Ruff configuration
[tool.ruff]
line-length = 88
target-version = 'py311'
src = ["er_aws_elasticache"]
extend-exclude = [".gen"]
fix = true
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"CPY", # Missing copyright header
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D211", # No blank lines allowed before class docstring
"D212", # multi-line-summary-first-line
"D213", # multi-line-summary-second-line
"D4", # Doc string style
"E501", # Line too long
"G004", # Logging statement uses string formatting
"S101", # Use of assert detected. Pytest uses assert
"EM101",
"EM102",
"TRY003",
# pydoclint
"DOC",
# May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q",
"COM812",
"COM819",
"ISC001",
]
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["er_aws_elasticache"]
# Mypy configuration
[tool.mypy]
files = ["er_aws_elasticache", "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
# Coverage configuration
[tool.coverage.run]
branch = true
omit = ["*/tests/*"]
[tool.coverage.report]
fail_under = 85