CI: add stubs for libcalamares bits, to help pylint
This commit is contained in:
parent
96aa5b4532
commit
f197acf8e0
9
ci/libcalamares/__init__.py
Normal file
9
ci/libcalamares/__init__.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# SPDX-FileCopyrightText: no
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
#
|
||||||
|
# Stubs for part of the Python API from libcalamares
|
||||||
|
# (although the **actual** API is presented through
|
||||||
|
# Boost::Python, not as a bare C-extension) so that
|
||||||
|
# pylint doesn't complain about libcalamares internals.
|
||||||
|
|
||||||
|
pass
|
9
ci/libcalamares/globalstorage.py
Normal file
9
ci/libcalamares/globalstorage.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# SPDX-FileCopyrightText: no
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
#
|
||||||
|
# Stubs for part of the Python API from libcalamares
|
||||||
|
# (although the **actual** API is presented through
|
||||||
|
# Boost::Python, not as a bare C-extension) so that
|
||||||
|
# pylint doesn't complain about libcalamares internals.
|
||||||
|
|
||||||
|
def value(_): return 1
|
15
ci/libcalamares/utils.py
Normal file
15
ci/libcalamares/utils.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# SPDX-FileCopyrightText: no
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
#
|
||||||
|
# Stubs for part of the Python API from libcalamares
|
||||||
|
# (although the **actual** API is presented through
|
||||||
|
# Boost::Python, not as a bare C-extension) so that
|
||||||
|
# pylint doesn't complain about libcalamares internals.
|
||||||
|
|
||||||
|
def debug(_): pass
|
||||||
|
|
||||||
|
def warning(_): pass
|
||||||
|
|
||||||
|
def gettext_path(): pass
|
||||||
|
|
||||||
|
def gettext_languages(): pass
|
Loading…
Reference in New Issue
Block a user