• Ian Stapleton Cordasco's avatar
    Skip filename pattern check for provided files · 78e8165b
    Ian Stapleton Cordasco authored
    By default, when discovering files for users, we use the filename
    patterns to determine whether or not we should check that file. However,
    when a user provides the path to a file, we should instead skip checking
    the name against the filename patterns provided.
    
    For example, in Flake8 2.6 this worked:
    
        $ flake8 bin/script.py
        $ flake8 bin/script
    
    But prior to this commit only
    
        $ flake8 bin/script.py
    
    works. This commit will skip the filename pattern check if the user
    provides the path explicitly which allows
    
        $ flake8 bin/script
    
    to work again as expected.
    
    Closes #266
    78e8165b
Name
Last commit
Last update
docs Loading commit data...
example-plugin Loading commit data...
src/flake8 Loading commit data...
tests Loading commit data...
.appveyor.yml Loading commit data...
.bandit.yml Loading commit data...
.coveragerc Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.pylintrc Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.rst Loading commit data...
CONTRIBUTORS.txt Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
codecov.yml Loading commit data...
dev-requirements.txt Loading commit data...
pytest.ini Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...