forked from xenserver/status-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
103 lines (95 loc) · 2.59 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
[project]
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
name = "xenserver-status-report"
dynamic = ["version"]
description = "Xenserver Status Report"
requires-python = "2.7"
license = "LGPL-2.1-only"
keywords = ["xenserver", "xen-project"]
authors = [
{name = "Ewan Mellor"},
{name = "Simon Rowe"},
]
maintainers = [
{name = "Ashwin H"},
{name = "Bernhard Kaindl"},
{name = "Pau Ruiz Safont"},
{name = "Ross Lagerwall"},
]
readme = "README.md"
classifiers = [
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
"Operating System :: POSIX :: Linux :: XenServer/XCP-ng Dom0",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
]
dependencies = [
"defusedxml",
"six",
]
[project.optional-dependencies]
test = [
"pytest<7",
]
[project.urls]
homepage = "https://github.com/xenserver/status-report/"
repository = "https://github.com/xenserver/status-report/"
[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 = 108
[tool.isort]
line_length = 108
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]
files = ["xen-bugtool", "tests"]
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 = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_subclassing_any = true
[[tool.mypy.overrides]]
module = ["xen-bugtool"]
# Disabled for now, may get fixed by later changes:
disable_error_code = [
"union-attr",
"arg-type",
"attr-defined",
"name-defined",
"import-not-found",
"import-untyped",
"operator",
"var-annotated",
"assignment",
"misc",
"no-any-unimported",
"no-untyped-call",
"no-untyped-def",
"str-format", # Will be easy to fix
"unreachable"
]