summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/validate-syntax.yaml2
-rwxr-xr-xtools/githook/pre-commit2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/validate-syntax.yaml b/.github/workflows/validate-syntax.yaml
index e3d82381..2fe8ba07 100644
--- a/.github/workflows/validate-syntax.yaml
+++ b/.github/workflows/validate-syntax.yaml
@@ -19,7 +19,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- pip install pycodestyle==2.4.0
+ pip install pycodestyle==2.6.0
- name: Validate with pycodestyle
run: |
pycodestyle
diff --git a/tools/githook/pre-commit b/tools/githook/pre-commit
index 47cc50da..c1b36a0e 100755
--- a/tools/githook/pre-commit
+++ b/tools/githook/pre-commit
@@ -22,7 +22,7 @@ if [ "$FILES" != "" ]; then
continue
fi
- R=$(git show ":$F" | pep8 -)
+ R=$(git show ":$F" | pycodestyle -)
if [ "$?" != "0" ]; then
echo "Errors in $F"
echo "$R"