forked from jborean93/pypsrp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (84 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
101 lines (84 loc) · 1.91 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
[build-system]
requires = ["setuptools>=42.0.0"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
[tool.mypy]
exclude = "build/"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
show_error_codes = true
show_column_numbers = true
disallow_any_unimported = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "psrp.*"
disallow_untyped_decorators = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "psrp._compat"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "psrp._connection.named_pipe"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "psrp._connection._win32"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "asyncssh.*"
implicit_reexport = true # asyncssh does not explicitly export these symbols
[[tool.mypy.overrides]]
module = "requests.packages.urllib3.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "requests_credssp"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "xmldiff"
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = "tests"
junit_family = "xunit2"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = lint,py36,py37,py38,py39,py310
skip_missing_interpreters = true
isolated_build = True
[testenv]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
python -m pytest tests/tests_psrp -v --cov psrp --cov-report term-missing
passenv =
PYPSRP_*
[testenv:lint]
commands =
python -m black . --check
python -m isort . --check-only
python -m mypy .
"""