-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (99 loc) · 2.19 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
106
107
108
109
110
111
[tool.poetry]
name = "kinesis-reader"
version = "1.0.0"
description = "Kinesis Reader"
authors = ["Hassan Shahbazi <[email protected]>"]
[tool.poetry.dependencies]
python = "~3.12"
PyYAML = "~6.0.2"
types-PyYAML = "~6.0.12"
boto3 = "~1.35.78"
protobuf = "~5.29.1"
types-protobuf = "~5.29.1"
pydantic = "~2.10.0"
redis = "~5.2.1"
[tool.poetry.group.testing.dependencies]
pytest = "~8.3"
pytest-cov = "~6.0.0"
[tool.poetry.group.dev.dependencies]
black = "~24.8"
ruff = "~0.7.0"
[tool.ruff]
line-length = 79 # https://peps.python.org/pep-0008/#maximum-line-length
target-version = "py312"
lint.select = [
"E", # pycodestyle
"W", # pycodestyle warnings
"F", # pyflakes
"UP", # pyupgrade
"C", # McCabe complexity
"I", # isort
"C90", # mccabe
"N", # pep8-naming
"D", # pydocstyle
"COM", # flake8-commas
"EXE", # flake8-executable
"ISC", # flake8-implicit-str-concat
"YTT", # flake8-2020
"S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"ARG", # flake8-unused-arguments
"TD", # flake8-todos
"ERA", # eradicate
"PL", # Pylint
"FLY", # flynt
"RUF", # Ruff-specific rules
]
lint.ignore = [
"FBT001",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203",
"D213",
"D401",
"RET503",
"TD002",
"TD003",
"PLR0913",
"I001",
"PLR2004",
"B008",
]
extend-exclude = [
"src/schemes/protobuf/**/*.py",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"src/tests/**/*.py" = [
"S101", # asserts allowed in tests
]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.black]
line-length = 79 # https://peps.python.org/pep-0008/#maximum-line-length
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = """\
--cov-branch \
--cov=src/parser/ \
--cov-report=html:reports/coverage
"""
pythonpath = ["src"]