-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpyproject.toml
71 lines (60 loc) · 1.23 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
[build-system]
requires = [
'setuptools>=44',
'wheel>=0.30.0',
'six',
]
build-backend = 'setuptools.build_meta'
# ignore the tox documentation, it IS NOT supported yet
# https://github.com/tox-dev/tox/issues/2148
#[tox]
#isolated_build = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310
isolated_build = true
#skipsdist = true
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
basepython = python3.10
passenv = *
deps =
bandit
flake8
mypy
types-six
coverage
pytest-cov
pytest
-rrequirements.txt
commands =
flake8 src/pam/
mypy
bandit -r src -c "pyproject.toml"
pytest --cov -r w --capture=sys -vvv --cov-report=html
"""
[tool.bandit]
exclude_dirs = ["./venv", "./test", ]
recursive = true
[tool.mypy]
files = ["src/pam/__init__.py", "src/pam/__internals.py"]
ignore_missing_imports = true
[tool.pytest]
python_files = "test_*.py"
norecursedirs = ".tox"
[tool.coverage.run]
branch = true
# awkward how I can include "pam" but I have to be incredibly specific when omitting
source = ["pam"]
omit = ["*/pam/pam.py", "*/pam/version.py",]
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.report]
skip_empty = true
fail_under = 100