Skip to content

Commit b701392

Browse files
committed
dbusmock: Drop most variables from __init__.py
Fixes most of "RUF067 `__init__` module should only contain docstrings and re-exports" with current upstream ruff. We really want `__version__`, so ignore that.
1 parent 460f7ba commit b701392

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

dbusmock/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@
66
# later version. See http://www.gnu.org/copyleft/lgpl.html for the full text
77
# of the license.
88

9-
__author__ = "Martin Pitt"
10-
__copyright__ = """
11-
(c) 2012 Canonical Ltd.
12-
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
13-
"""
14-
15-
169
from dbusmock.mockobject import MOCK_IFACE, OBJECT_MANAGER_IFACE, DBusMockObject, get_object, get_objects
1710
from dbusmock.testcase import BusType, DBusTestCase, PrivateDBus, SpawnedMock
1811

19-
try:
12+
try: # noqa: RUF067
2013
# created by setuptools_scm
2114
from dbusmock._version import __version__
2215
except ImportError:

0 commit comments

Comments
 (0)