mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
utils: Change normalize_paths() contract
The `normalize_paths()` utility was doing too much — parsing unstructured configuration path data and dispatching the scrubbed paths to be normalized. Towards moving the parsing of unstructured configuration path data closer towards were configuration occurs, have the utility accept only structured input for normalizing paths.
This commit is contained in:
parent
a0cd55fd6d
commit
1ba56b9056
3 changed files with 9 additions and 12 deletions
|
|
@ -45,9 +45,9 @@ path if the string has a ``/`` in it. It also removes trailing ``/``\ s.
|
|||
|
||||
.. autofunction:: flake8.utils.normalize_paths
|
||||
|
||||
This function utilizes :func:`~flake8.utils.parse_comma_separated_list` and
|
||||
:func:`~flake8.utils.normalize_path` to normalize its input to a list of
|
||||
strings that should be paths.
|
||||
This function utilizes :func:`~flake8.utils.normalize_path` to normalize a
|
||||
sequence of paths. See :func:`~flake8.utils.normalize_path` for what defines a
|
||||
normalized path.
|
||||
|
||||
.. autofunction:: flake8.utils.stdin_get_value
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue