Import Debian version 0.21ubuntu4
distro-info (0.21ubuntu4) eoan; urgency=medium
* Override uninteresting flake8 warnings about imports and doc strings.
* Don't run tests over the distro_info_test directory, which is pointless
and recursive.
Steve Langasek authored 4 years ago
Stefano Rivera committed 3 years ago
12 | 12 |
supported-esm to ubuntu-distro-info along with the python and perl
|
13 | 13 |
modules. (LP: #1808038)
|
14 | 14 |
* Only include LTS releases when filtering by supported-esm.
|
|
15 |
|
|
16 |
[ Steve Langasek ]
|
|
17 |
* Override uninteresting flake8 warnings about imports and doc strings.
|
|
18 |
* Don't run tests over the distro_info_test directory, which is pointless
|
|
19 |
and recursive.
|
15 | 20 |
|
16 | 21 |
-- Stefano Rivera <stefanor@debian.org> Wed, 27 Jan 2021 19:46:16 -0700
|
17 | 22 |
|
23 | 23 |
def get_source_files():
|
24 | 24 |
"""Return a list of sources files/directories (to check with flake8/pylint)"""
|
25 | 25 |
scripts = ["debian-distro-info", "ubuntu-distro-info"]
|
26 | |
modules = ["distro_info_test"]
|
|
26 |
modules = []
|
27 | 27 |
py_files = ["distro_info.py", "setup.py"]
|
28 | 28 |
|
29 | 29 |
files = []
|
30 | 30 |
|
31 | 31 |
def test_flake8(self):
|
32 | 32 |
"""Test: Run flake8 on Python source code"""
|
33 | |
cmd = [sys.executable, "-m", "flake8", "--max-line-length=99"] + get_source_files()
|
|
33 |
cmd = [
|
|
34 |
sys.executable,
|
|
35 |
"-m",
|
|
36 |
"flake8",
|
|
37 |
"--ignore",
|
|
38 |
"H301,H403,H405,W504",
|
|
39 |
"--max-line-length=99",
|
|
40 |
] + get_source_files()
|
34 | 41 |
if unittest_verbosity() >= 2:
|
35 | 42 |
sys.stderr.write("Running following command:\n{}\n".format(" ".join(cmd)))
|
36 | 43 |
process = subprocess.Popen(
|