-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
133 lines (117 loc) · 2.8 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "pulse-telemetry"
description = "Spark applications for transforming raw incoming data into a set of schemas for analysis."
readme = "README.md"
authors = [
{name = "Maxwell Dylla", email = "[email protected]"},
{name = "Erik Amundson", email = "[email protected]"}
]
dynamic = ["version"]
dependencies = [
"pyspark==3.5.1",
]
[project.optional-dependencies]
dev = [
"mypy==1.10.1",
"pandas==2.2.3",
"pytest==8.2.2",
"pytest-cov==5.0.0",
"ruff==0.5.2",
"setuptools==75.1.0",
]
[tool.setuptools.dynamic]
version = {attr = "pulse_telemetry.__version__"}
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"D",
"E",
"W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-commas
"COM",
# flake8-datetimez
"DTZ",
# flake8-quotes
"Q",
# pylint
"PLE", "PLR", "PLW",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# isort
"I",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# Upgrade syntax
"UP",
]
ignore = [
# line length, use formatter to get line length approx right
"E501",
# module level import not at top of file
"E402",
# too many branches
"PLR0912",
# too many arguments to function call
"PLR0913",
# too many statements in function
"PLR0915",
# magic value used in comparison,
"PLR2004",
# do not use mutable data structures for argument defaults
"B006",
# recommended by Ruff to disable to avoid issues with formatter
"COM812", "ISC001",
# extra rules on documentation strings
"D100", "D401", "D203", "D213",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
# requires docstring rules in sparklib
"src/pulse_telemetry/sparklib/__init__.py" = ["D"]
"!src/pulse_telemetry/sparklib/**/*.py" = ["D"]
[tool.ruff.lint.flake8-type-checking]
quote-annotations = true
[tool.mypy]
disable_error_code = "type-var"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Ignore type checking
"if TYPE_CHECKING:",
]
ignore_errors = true
[tool.coverage.run]
omit = []