-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
54 lines (48 loc) · 1.21 KB
/
tox.ini
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
[base]
name = functionalizer
additional = src/sparkmanager
# PySpark somehow missed the distutils dependency, thus install setuptools
testdeps =
setuptools
mock
pytest
[testenv]
# Use develop by default. Otherwise, PySpark will not see the compiled
# module libraries.
passenv =
CMAKE_PREFIX_PATH
JAVA_HOME
SPARK_LOCAL_DIRS
SPARK_WORKER_DIR
deps = {[base]testdeps}
commands = pytest --run-slow tests/
[testenv:coverage]
deps =
{[base]testdeps}
pytest-cov
commands =
pytest --run-slow --cov-report term-missing --cov-report xml --cov={[base]name} tests/
[testenv:lint]
skip_install = true
deps = ruff
commands =
ruff check
ruff format --check
[testenv:docs]
changedir = docs
dep_file = docs/source/requirements.txt
# set warnings as errors using the -W sphinx option
commands = make html SPHINXOPTS=-W
allowlist_externals = make
# E722: do not use bare 'except'
# E731: do not assign a lambda expression, use a def
# W503: line break after binary operator
# W504: line break before binary operator
[pycodestyle]
ignore = E722,E731,W503,W504
max-line-length = 100
[pydocstyle]
# ignore the following
# - D413: no blank line afer last section
add-ignore = D413
convention = google