-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (107 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (107 loc) · 2.68 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["poetry-core=2.1.3"]
build-backend = "poetry.core.masonry.api"
[project]
authors = [{ name = "Jack H. Culbert", email = "jack.culbert@gesis.org" }]
name = "py-project-template"
license = { text = "GPL-3.0-or-later" }
version = "1.0.0"
maintainers = [{ name = "Jack H. Culbert", email = "jack.culbert@gesis.org" }]
description = "A template for Python development"
readme = "README.md"
[tool.poetry]
packages = [{ include = "py_project_template", from = "src" }]
[tool.poetry.dependencies]
python = "^3.13"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
bandit = "^1.8.3"
check-manifest = "^0.50"
pytest-cov = "^6.1.1"
pytest-mock = "^3.14.0"
pytest = "^8.3.5"
shellcheck-py = "^0.10.0.1"
coverage = { extras = ["toml"], version = "^7.8.0" }
ruff = "^0.11.10"
[tool.poetry.group.spark]
optional = true
[tool.poetry.group.spark.dependencies]
pyspark = "^3.5.5"
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py313"
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "W", "C901", "Q"]
ignore = []
fixable = ["ALL"]
unfixable = ["B"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.bandit]
exclude_dirs = ["build", "dist", "tests", "scripts"]
number = 4
recursive = true
targets = "src"
[tool.coverage.run]
branch = true
disable_warnings = ['no-data-collected']
[tool.coverage.report]
fail_under = 100
[tool.pyright]
include = ["src"]
exclude = ["**/node_modules", "**/__pycache__"]
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.13"
pythonPlatform = "Linux"
executionEnvironments = [{ root = "src" }]
[tool.pytest.ini_options]
addopts = "--cov-report xml:coverage.xml --cov-report term --cov src --cov-fail-under 0 --cov-append -m 'not integration'"
pythonpath = ["src"]
testpaths = "tests"
junit_family = "xunit2"
markers = [
"integration: marks as integration test",
"notebooks: marks as notebook test",
"gpu: marks as gpu test",
"spark: marks tests which need Spark",
"slow: marks tests as slow",
"unit: fast offline tests",
]