Can not use relative paths in exclude list
Versions
- Python 2.7.6
- Flake8 3.0.2 (pyflakes: 1.2.3, pycodestyle: 2.0.0, mccabe: 0.5.0) CPython 2.7.6 on Linux (by pip)
I know, the flake8
handles relative paths in exclude list, and this will matched from the current working directory. However when I set exclude
in a setup.cfg
I expect this will checks relative to config file and not to cwd.
Reproduction
-
Set
/foo/setup.cfg
:
[flake8] exclude = bar/bad-file
2. For good case, enter into `/foo` and run `flake8 -c /foo/setup.cfg /foo/bar` => The `bad-file` will not be checked
3. For bad case, enter into `/foo/bar` and run the previous command again => The `bad-file` will be checked :(