mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-01 03:26:52 +00:00
Fix / improve recently merged patches + CI
This commit is contained in:
parent
f00d483ea5
commit
d4b0073167
7 changed files with 57 additions and 29 deletions
|
|
@ -81,7 +81,7 @@ class Manager(object):
|
|||
"tokens": 0,
|
||||
}
|
||||
self.exclude = tuple(
|
||||
itertools.chain(self.options.exclude, self.options.extend_exclude),
|
||||
itertools.chain(self.options.exclude, self.options.extend_exclude)
|
||||
)
|
||||
|
||||
def _process_statistics(self):
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ def register_default_options(option_manager):
|
|||
parse_from_config=True,
|
||||
comma_separated_list=True,
|
||||
help="Comma-separated list of files or directories to add to the list"
|
||||
" of excluded ones."
|
||||
" of excluded ones.",
|
||||
)
|
||||
|
||||
add_option(
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ def filenames_from(arg, predicate=None):
|
|||
|
||||
|
||||
def fnmatch(filename, patterns):
|
||||
# type: (str, List[str]) -> bool
|
||||
# type: (str, Sequence[str]) -> bool
|
||||
"""Wrap :func:`fnmatch.fnmatch` to add some functionality.
|
||||
|
||||
:param str filename:
|
||||
|
|
@ -453,7 +453,7 @@ def parameters_for(plugin):
|
|||
|
||||
|
||||
def matches_filename(path, patterns, log_message, logger):
|
||||
# type: (str, List[str], str, logging.Logger) -> bool
|
||||
# type: (str, Sequence[str], str, logging.Logger) -> bool
|
||||
"""Use fnmatch to discern if a path exists in patterns.
|
||||
|
||||
:param str path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue