-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (56 loc) · 1.67 KB
/
pyproject.toml
File metadata and controls
63 lines (56 loc) · 1.67 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
[tool.black]
line-length = 100
target-version = ["py36", "py37", "py38", "py311"]
extend-exclude = "^/src/nitsm/_pinmapinterfaces.py"
[tool.ni-python-styleguide]
extend_exclude = "src/nitsm/_pinmapinterfaces.py"
# ignore codes not relevant to the Google docstring conventions (http://www.pydocstyle.org/en/stable/error_codes.html#default-conventions)
# also ignore D415 which requires docstrings to start with a one line summary
extend_ignore = "D203,D204,D205,D213,D215,D400,D401,D404,D406,D407,D408,D409,D413,D415" # must also be passed via the command line until https://github.com/ni/python-styleguide/issues/76 is resolved
[tool.pytest.ini_options]
testpaths = [
"tests"
]
markers = [
"pin_map",
"sequence_file",
"offline_mode"
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = clean, py3{6,7,8,11}-tests, py3{6,7,8,11}-systemtests, report
[testenv]
deps =
pytest
pytest-cov
nidcpower
nidmm
niscope
nidigital
niswitch
nidaqmx
nifgen
commands =
tests: pytest tests --junitxml={envname}-{posargs:any}-tsm-version-results.xml --cov --cov-report=term
systemtests: pytest systemtests --junitxml={envname}-{posargs:any}-tsm-version-results.xml --cov --cov-report=term
passenv =
systemtests: TestStandPublic64 ProgramFiles(x86)
setenv =
tests,systemtests: COVERAGE_FILE = .coverage.{envname}-{posargs:any}-tsm-version
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report -m
coverage xml
"""
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"