-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
132 lines (119 loc) · 3.24 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
name = "XSConsole"
dynamic = ["version"]
description = "Xenserver Status Report"
requires-python = "2.7"
license = "GPL-2.0-or-later"
keywords = ["xenserver", "xen-project"]
authors = [
{name = "Andy Southgate"},
]
maintainers = [
{name = "Ashwin H"},
{name = "Bernhard Kaindl"},
{name = "Ross Lagerwall"},
{name = "Qin Zhang (张琴)"},
]
readme = "README.md"
classifiers = [
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2) or later",
"Operating System :: POSIX :: Linux :: XenServer/XCP-ng Dom0",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
]
dependencies = [
"pam",
"XenAPI",
]
[project.optional-dependencies]
test = [
"pytest<7",
]
[project.urls]
homepage = "https://github.com/xapi-project/xsconsole"
repository = "https://github.com/xapi-project/xsconsole.git"
[build-system]
requires = ["setuptools>=42", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# This section is needed (can be empty) for setuptools_scm to be used by
# "pip2 install ." in order to get the version number from the git repo.
[tool.black]
line-length = 120
[tool.isort]
line_length = 120
py_version = 27
profile = "black"
combine_as_imports = true
ensure_newline_before_comments = false
# extra standard libraries of Py2:
extra_standard_library = "commands"
[tool.mypy]
pretty = true
error_summary = true
strict_equality = true
show_error_codes = true
show_error_context = true
# Check the contents of untyped functions in all modules by default:
check_untyped_defs = true
# scripts_are_modules = true
python_version = "3.11"
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_redundant_casts = true
disallow_any_explicit = false
disallow_any_generics = true
disallow_any_unimported = true
disallow_subclassing_any = false
# Globally disabled checks which fail now. They may get fixed by later changes:
disable_error_code = [
"assignment",
"attr-defined",
"has-type",
"import-not-found",
"import-untyped", # XenAPI and pam are missing typing information for their users
"name-defined",
"operator",
"union-attr",
"unreachable",
"var-annotated",
]
[[tool.mypy.overrides]]
module = ["XSConsoleRemoteTest"]
disable_error_code = [
"no-any-unimported",
]
[[tool.mypy.overrides]]
module = ["XSConsoleDataUtils"]
disable_error_code = [
"arg-type",
"call-overload",
"type-var",
]
[[tool.mypy.overrides]]
module = ["XSConsoleCurses"]
disable_error_code = [
"arg-type",
]
[[tool.mypy.overrides]]
module = ["XSConsoleImporter"]
disable_error_code = [
"arg-type",
]
[[tool.mypy.overrides]]
module = ["XSFeatureDRRestore"]
disable_error_code = [
"arg-type",
]