Synchronize files from linux-system-roles/template

This commit is contained in:
systemroller 2020-02-19 02:19:58 +01:00 committed by Till Maas
parent 83703b0184
commit 5a5ae4b662
2 changed files with 6 additions and 5 deletions

View file

@ -29,7 +29,8 @@ Usage: python custom_pylint.py ARGUMENTS
Run pylint with ARGUMENTS followed by the list of python files contained in the
working directory and its subdirectories. As a python file is recognized a
file that match INCPAT. Files and directories that match EXPAT are skipped.
Symbolic links are also skipped.
Symbolic links are also skipped. It is assumed that files to be pylinted are
specified only with INCPAT and EXPAT.
There are several cases when argument from ARGUMENTS is not passed to pylint
but it is handled by run_pylint.py instead:
@ -139,8 +140,6 @@ def show_files(files):
Print `files` to the standard output, one item per line, in a blue color.
"""
if not files:
return
print_line(blue("%s: files to be checked:" % sys.argv[0]))
for f in files:
print_line(blue(" %s" % f))
@ -160,6 +159,8 @@ def main():
files = probe_dir(
os.getcwd(), re.compile(include_pattern), re.compile(exclude_pattern)
)
if not files:
return 0
show_files(files)
args.extend(files)
sys.argv[0] = "pylint"

View file

@ -10,10 +10,10 @@ lint:
config-file: molecule/default/yamllint.yml
platforms:
- name: centos-6
image: linuxsystemroles/centos-6
image: docker.io/linuxsystemroles/centos-6
privileged: true
- name: centos-7
image: linuxsystemroles/centos-7
image: docker.io/linuxsystemroles/centos-7
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true