--ignore-paths
and escaping of regex special characters
#7094
Labels
Duplicate 🐫
Duplicate of an already existing issue
Bug description
It's impossible to escape special regex characters in option
--ignore-paths
for unix paths.The basic example is how to escape the dot (
.
).Thereby, assumption
regex pattern => PureWindowsPath => regex pattern
is wrong and who knows where it will shoot.Configuration
No response
Command used
Pylint output
Expected behavior
According to documentation:
Actually used regex should conform to the passed one and content of
.tox
should be ignored.Note: it works if the escaping is dropped:
python -m pylint --recursive=y --ignore-paths='^.tox/.*' .
Pylint version
OS / Environment
ALTLinux
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: