-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (99 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (99 loc) · 3.26 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
[project]
name = "er-aws-msk"
version = "0.8.0"
description = "ERv2 module for managing AWS msk clusters"
authors = [{ name = "AppSRE", email = "sd-app-sre@redhat.com" }]
license = { text = "Apache 2.0" }
readme = "README.md"
requires-python = "~= 3.14.0"
dependencies = [
"boto3==1.43.77",
"external-resources-io==0.7.0",
"pydantic==2.13.4",
]
[project.urls]
homepage = "https://github.com/app-sre/er-aws-msk"
repository = "https://github.com/app-sre/er-aws-msk"
documentation = "https://github.com/app-sre/er-aws-msk"
[dependency-groups]
dev = [
"boto3-stubs-lite[ec2,kafka]==1.43.76",
"external-resources-io[cli]==0.7.0",
"mypy==2.3.1",
"pytest==9.1.1",
"pytest-cov==7.1.0",
"pytest-mock==3.15.1",
"ruff==0.16.4",
]
[project.scripts]
generate-tf-config = 'er_aws_msk.__main__:main'
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["er_aws_msk"]
# Ruff configuration
[tool.ruff]
line-length = 88
src = ["er_aws_msk", "hooks", "hooks_lib"]
fix = true
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"CPY", # Missing copyright header
"undocumented-public-module", # Missing docstring in public module
"undocumented-public-package", # Missing docstring in public package
"undocumented-public-init", # Missing docstring in __init__
"incorrect-blank-line-before-class", # 1 blank line required before class docstring
"blank-line-before-class", # No blank lines allowed before class docstring
"multi-line-summary-first-line", # multi-line-summary-first-line
"multi-line-summary-second-line", # multi-line-summary-second-line
"D4", # Doc string style
"line-too-long", # Line too long
"logging-f-string", # Logging statement uses string formatting
"assert", # Use of assert detected. Pytest uses assert
"raw-string-in-exception",
"f-string-in-exception",
"raise-vanilla-args",
# pydoclint
"DOC",
# May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"tab-indentation",
"indentation-with-invalid-multiple",
"indentation-with-invalid-multiple-comment",
"over-indented",
"docstring-tab-indentation",
"triple-single-quotes",
"Q",
"missing-trailing-comma",
"prohibited-trailing-comma",
"single-line-implicit-string-concatenation",
]
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["er_aws_msk", "hooks", "hooks_lib"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
runtime-evaluated-decorators = [
"pydantic.validate_call",
"dataclasses.dataclass",
]
# Mypy configuration
[tool.mypy]
plugins = "pydantic.mypy"
files = ["er_aws_msk", "hooks", "hooks_lib", "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 = 26