mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 23:04:18 +00:00
config: Search for configuration relative to current working directory
This is the initial incision to only search for configuration relative to the current working directory where `flake8` is invoked. This brings configuration file detection closer to other CLI-like programs.
This commit is contained in:
parent
5fc1d3def0
commit
b3a31496b7
1 changed files with 1 additions and 3 deletions
|
|
@ -46,9 +46,7 @@ class ConfigFileFinder(object):
|
||||||
|
|
||||||
self.local_directory = os.path.abspath(os.curdir)
|
self.local_directory = os.path.abspath(os.curdir)
|
||||||
|
|
||||||
if not args:
|
self.parent = self.tail = os.getcwd()
|
||||||
args = ["."]
|
|
||||||
self.parent = self.tail = os.path.abspath(os.path.commonprefix(args))
|
|
||||||
|
|
||||||
# caches to avoid double-reading config files
|
# caches to avoid double-reading config files
|
||||||
self._local_configs = None
|
self._local_configs = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue