-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
pyproject.toml
108 lines (96 loc) · 2.98 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
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
102
103
104
105
106
107
108
[build-system]
requires = [
"setuptools >= 61.0", # PEP-621
"setuptools_scm[toml] >= 7.0.0",
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
dynamic = ["version"]
name = "python-vagrant"
description = "Python bindings for interacting with Vagrant virtual machines."
readme = "README.md"
authors = [{ "name" = "Todd Francis DeLuca", "email" = "[email protected]" }]
maintainers = [
{ "name" = "Sorin Sbarnea", "email" = "[email protected]" }
]
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Utilities",
]
keywords = ["box", "vagrant", "vagrantfile", "virtual-machine", "virtualbox"]
[project.urls]
homepage = "https://github.com/pycontribs/python-vagrant"
repository = "https://github.com/pycontribs/python-vagrant"
changelog = "https://github.com/pycontribs/python-vagrant/releases"
[project.optional-dependencies]
test = [
"coverage[toml]>=7.0.3",
"pytest>=7.2.0",
"pytest-plus>=0.4.0",
"pytest-github-actions-annotate-failures>=0.1.8",
]
[tool.coverage.run]
source = ["src"]
parallel = true
concurrency = ["multiprocessing", "thread"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
[tool.isort]
profile = "black"
[tool.mypy]
python_version = 3.9
color_output = true
error_summary = true
check_untyped_defs = true
disallow_untyped_calls = true
# disallow_untyped_defs = True
# disallow_any_generics = True
# disallow_any_unimported = True
# warn_redundant_casts = True
# warn_return_any = True
# warn_unused_configs = True
# site-packages is here to help vscode mypy integration getting confused
exclude = "(build|test/local-content|site-packages)"
[tool.pylint.IMPORTS]
preferred-modules = ["py:pathlib", "unittest:pytest"]
[tool.pylint.MASTER]
# pylint defaults + f,fh,v,id
good-names = "i,j,k,_,f,fh,v,id,T"
[tool.pylint."MESSAGES CONTROL"]
disable = [
# On purpose disabled as we rely on black
"line-too-long",
# TODO(ssbarnea): remove temporary skips adding during initial adoption:
"consider-using-f-string",
"duplicate-code",
"invalid-name",
"missing-function-docstring",
"no-else-return",
"preferred-module",
"protected-access",
"too-many-arguments",
"too-many-branches",
"too-many-lines",
"too-many-public-methods",
"too-many-statements",
"unused-variable",
]
[tool.pytest.ini_options]
# ensure we treat warnings as error
filterwarnings = ["error"]
addopts = ["-p", "no:pytest_cov"]
# https://code.visualstudio.com/docs/python/testing
# coverage is re-enabled in `tox.ini`. That approach is safer than
# `--no-cov` which prevents activation from tox.ini and which also fails
# when plugin is effectively missing.
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/vagrant/_version.py"