-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
117 lines (101 loc) · 2.81 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
[project]
name = "edp-learning"
version = "0.1.0"
description = "EDP learning materials."
readme = "README.md"
requires-python = ">=3.12.3"
dependencies = [
"dlt[duckdb,parquet]>=1.8.1",
"faker>=37.0.0",
"ipykernel>=6.29.5",
]
[dependency-groups]
dev = ["pre-commit>=4.1.0", "ruff>=0.11.0"]
[tool.uv]
package = true
[tool.ruff]
extend-exclude = ["lessons"]
[tool.ruff.lint]
extend-select = [
"I", # isort
"D", # pydocstyle
"W", # pycodestyle (warnings)
"B", # flake8-bugbear
"S", # flake8-bandit
"ANN", # flake8-annotations
"A", # flake8-builtins
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"T20", # flake8-print
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"N", # pep8-naming
"UP", # pyupgrade
"C901", # mccabe
"FURB", # refurb
"TRY", # tryceratops
# "PD", # https://docs.astral.sh/ruff/rules/#pandas-vet-pd
"PL", # pylint
"RUF", # Ruff-specific rules
]
# Ignore rules known to be conflicting between the ruff linter and formatter.
# See https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
ignore = [
"W191",
"D206",
"D101", # Public class docstring - document the init instead.
"D300",
"ANN101", # `self` type hints.
"ANN102", # Type annotation for `cls`.
"ANN204", # `self` return type.
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.extend-per-file-ignores]
# S101: use of assert error
# ANN201, ANN202, ANN001: missing typing
# D103: missing function docstrings
# D100: missing module docstring
# N802, N803: caps lock argument and function names (disabled to allow naming fixtures in all caps)
"tests/**" = [
"S101",
"ANN201",
"ANN202",
"ANN001",
"D103",
"D100",
"N802",
"N803",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pylint]
# Max number of function arguments. Default is 5, which seems overly restrictive.
max-args = 7
[tool.ruff.lint.isort]
force-sort-within-sections = true
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 88
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# For checking whether the docstrings match function signature.
# https://peps.python.org/pep-0727/ should basically solve this in Python 3.13.
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-yield-types = false
allow-init-docstring = true
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/edp_learning"]