mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +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)
|
||||
|
||||
if not args:
|
||||
args = ["."]
|
||||
self.parent = self.tail = os.path.abspath(os.path.commonprefix(args))
|
||||
self.parent = self.tail = os.getcwd()
|
||||
|
||||
# caches to avoid double-reading config files
|
||||
self._local_configs = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue