Skip to content

Commit c7aa171

Browse files
committed
Exclude .cache from checks and fix exception
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent a6dada4 commit c7aa171

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ valid: isort black
3333
check:
3434
@echo "-> Run pycodestyle (PEP8) validation"
3535
@${ACTIVATE} pycodestyle --max-line-length=110 \
36-
--exclude=.eggs,etc/scripts,src/_packagedcode,venv,lib,thirdparty,docs .
36+
--exclude=.eggs,etc/scripts,src/_packagedcode,venv/,lib/,thirdparty/,docs/,.cache/ .
3737
@echo "-> Run isort imports ordering validation"
3838
@${ACTIVATE} isort --sl --check-only -l 100 setup.py src tests --skip-glob "*/_packagedcode/*"
3939
@echo "-> Run black validation"

src/python_inspector/utils_pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def get_python_dot_version(version):
180180
CACHE_THIRDPARTY_DIR = ".cache/python_inspector"
181181
try:
182182
os.makedirs(CACHE_THIRDPARTY_DIR, exist_ok=True)
183-
except:
183+
except Exception:
184184
home = pathlib.Path.home()
185185
CACHE_THIRDPARTY_DIR = str(home / ".cache/python_inspector")
186186
os.makedirs(CACHE_THIRDPARTY_DIR, exist_ok=True)

0 commit comments

Comments
 (0)