Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
86 lines (76 loc) · 1.6 KB
/
Copy pathtox.ini
File metadata and controls
86 lines (76 loc) · 1.6 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
[tox]
envlist = py310, py311, py312, py313, py314, lint
skipsdist = True
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest -v tests/
[testenv:lint]
deps =
flake8
pylint
black
isort
commands =
flake8 --max-line-length=120 ./opensampl
pylint --max-line-length=120 ./opensampl
black --check --line-length=120 ./opensampl
isort --check-only --line-length=120 ./opensampl
[testenv:format]
deps =
black
isort
autoflake
allowlist_externals =
autoflake
black
isort
commands =
autoflake --in-place --remove-all-unused-imports --remove-unused-variables --recursive ./opensampl
black --line-length=120 ./opensampl
isort --line-length=120 ./opensampl
[flake8]
max-line-length = 120
exclude =
.tox,
.git,
__pycache__,
build,
dist
# Temorarily ignore these while getting CI and package built
ignore =
# E501: line too long
E501,
# W605: invalid escape sequence
W605,
# F541: f-string missing placeholders
F541,
# E203: whitespace before :
E203,
# W503: line break before binary operator
W503,
[isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
[black]
line-length = 120
[pylint]
max-line-length = 120
disable =
# Linting errors encountered during CI pipeline and package development
# Should be addressed based on priority
C0301,
W1505,
F-string-without-interpolation,
bad-whitespaces,
protected-access,
unused-argument,
missing-class-docstring,
too few public methods,
missing function or method docstring