Codebase list distro-info / d1fc3b6
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
3 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1212 supported-esm to ubuntu-distro-info along with the python and perl
1313 modules. (LP: #1808038)
1414 * 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.
1520
1621 -- Stefano Rivera <stefanor@debian.org> Wed, 27 Jan 2021 19:46:16 -0700
1722
2323 def get_source_files():
2424 """Return a list of sources files/directories (to check with flake8/pylint)"""
2525 scripts = ["debian-distro-info", "ubuntu-distro-info"]
26 modules = ["distro_info_test"]
26 modules = []
2727 py_files = ["distro_info.py", "setup.py"]
2828
2929 files = []
3030
3131 def test_flake8(self):
3232 """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()
3441 if unittest_verbosity() >= 2:
3542 sys.stderr.write("Running following command:\n{}\n".format(" ".join(cmd)))
3643 process = subprocess.Popen(