]> git.proxmox.com Git - mirror_qemu.git/blob - python/setup.cfg
scripts/qom-fuse: add static type hints
[mirror_qemu.git] / python / setup.cfg
1 [metadata]
2 name = qemu
3 version = file:VERSION
4 maintainer = QEMU Developer Team
5 maintainer_email = qemu-devel@nongnu.org
6 url = https://www.qemu.org/
7 download_url = https://www.qemu.org/download/
8 description = QEMU Python Build, Debug and SDK tooling.
9 long_description = file:PACKAGE.rst
10 long_description_content_type = text/x-rst
11 classifiers =
12 Development Status :: 3 - Alpha
13 License :: OSI Approved :: GNU General Public License v2 (GPLv2)
14 Natural Language :: English
15 Operating System :: OS Independent
16 Programming Language :: Python :: 3 :: Only
17 Programming Language :: Python :: 3.6
18 Programming Language :: Python :: 3.7
19 Programming Language :: Python :: 3.8
20 Programming Language :: Python :: 3.9
21 Programming Language :: Python :: 3.10
22
23 [options]
24 python_requires = >= 3.6
25 packages =
26 qemu.qmp
27 qemu.machine
28 qemu.utils
29
30 [options.extras_require]
31 # Run `pipenv lock --dev` when changing these requirements.
32 devel =
33 avocado-framework >= 87.0
34 flake8 >= 3.6.0
35 isort >= 5.1.2
36 mypy >= 0.770
37 pylint >= 2.8.0
38 tox >= 3.18.0
39
40 [options.entry_points]
41 console_scripts =
42 qom = qemu.qmp.qom:main
43 qom-set = qemu.qmp.qom:QOMSet.entry_point
44 qom-get = qemu.qmp.qom:QOMGet.entry_point
45 qom-list = qemu.qmp.qom:QOMList.entry_point
46 qom-tree = qemu.qmp.qom:QOMTree.entry_point
47
48 [flake8]
49 extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
50 exclude = __pycache__,
51 .venv,
52 .tox,
53
54 [mypy]
55 strict = True
56 python_version = 3.6
57 warn_unused_configs = True
58 namespace_packages = True
59
60 [mypy-qemu.qmp.qom_fuse]
61 # fusepy has no type stubs:
62 allow_subclassing_any = True
63
64 [mypy-fuse]
65 # fusepy has no type stubs:
66 ignore_missing_imports = True
67
68 [pylint.messages control]
69 # Disable the message, report, category or checker with the given id(s). You
70 # can either give multiple identifiers separated by comma (,) or put this
71 # option multiple times (only on the command line, not in the configuration
72 # file where it should appear only once). You can also use "--disable=all" to
73 # disable everything first and then reenable specific checks. For example, if
74 # you want to run only the similarities checker, you can use "--disable=all
75 # --enable=similarities". If you want to run only the classes checker, but have
76 # no Warning level messages displayed, use "--disable=all --enable=classes
77 # --disable=W".
78 disable=too-many-arguments,
79 too-many-instance-attributes,
80 too-many-public-methods,
81
82 [pylint.basic]
83 # Good variable names which should always be accepted, separated by a comma.
84 good-names=i,
85 j,
86 k,
87 ex,
88 Run,
89 _, # By convention: Unused variable
90 fh, # fh = open(...)
91 fd, # fd = os.open(...)
92 c, # for c in string: ...
93
94 [pylint.similarities]
95 # Ignore imports when computing similarities.
96 ignore-imports=yes
97
98 [isort]
99 force_grid_wrap=4
100 force_sort_within_sections=True
101 include_trailing_comma=True
102 line_length=72
103 lines_after_imports=2
104 multi_line_output=3
105
106 # tox (https://tox.readthedocs.io/) is a tool for running tests in
107 # multiple virtualenvs. This configuration file will run the test suite
108 # on all supported python versions. To use it, "pip install tox" and
109 # then run "tox" from this directory. You will need all of these versions
110 # of python available on your system to run this test.
111
112 [tox:tox]
113 envlist = py36, py37, py38, py39, py310
114
115 [testenv]
116 allowlist_externals = make
117 deps = .[devel]
118 commands =
119 make check