summaryrefslogtreecommitdiff
path: root/src/setuptools_scm/file_finder.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2019-11-25 22:04:43 +0100
committerJason R. Coombs <jaraco@jaraco.com>2019-11-25 16:04:43 -0500
commite9cbdb231a59f06a508d86f2b5b14719ee4bbc34 (patch)
tree0b1cdf06b85982a8b0276e33ab86e8148ef600b3 /src/setuptools_scm/file_finder.py
parent5a201f5da3c97856b53a16a954e4db9f89ad31f9 (diff)
downloadsetuptools-scm-e9cbdb231a59f06a508d86f2b5b14719ee4bbc34.tar.gz
update pre-commit setup to modern practices and ensure flake8 is in line as well (#369)
Diffstat (limited to 'src/setuptools_scm/file_finder.py')
-rw-r--r--src/setuptools_scm/file_finder.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/setuptools_scm/file_finder.py b/src/setuptools_scm/file_finder.py
index 18712bf..ce7cbad 100644
--- a/src/setuptools_scm/file_finder.py
+++ b/src/setuptools_scm/file_finder.py
@@ -31,10 +31,9 @@ def scm_find_files(path, scm_files, scm_dirs):
# directory not in scm, don't walk it's content
dirnames[:] = []
continue
- if (
- os.path.islink(dirpath)
- and not os.path.relpath(realdirpath, realpath).startswith(os.pardir)
- ):
+ if os.path.islink(dirpath) and not os.path.relpath(
+ realdirpath, realpath
+ ).startswith(os.pardir):
# a symlink to a directory not outside path:
# we keep it in the result and don't walk its content
res.append(os.path.join(path, os.path.relpath(dirpath, path)))