• Petr Lautrbach's avatar
    run-flake8: Filter out ./.git/ directory · d7b0207c
    Petr Lautrbach authored
    When a branch has '.py' suffix git creates a file with the same suffix and this
    file is found by the `find . -name '*.py'` command. Such files from './git' need
    to be filtered out.
        $ PATH="$VIRTUAL_ENV/bin:$PATH" ./scripts/run-flake8
        Analyzing 189 Python scripts
        ./.git/logs/refs/heads/semanage-test.py:1:42: E999 SyntaxError: invalid syntax
        ./.git/refs/heads/semanage-test.py:1:4: E999 SyntaxError: invalid syntax
        The command "PATH="$VIRTUAL_ENV/bin:$PATH" ./scripts/run-flake8" exited with 1.
    Signed-off-by: default avatarPetr Lautrbach <plautrba@redhat.com>
    Acked-by: default avatarNicolas Iooss <nicolas.iooss@m4x.org>