Skip to content

Commit

Permalink
update precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Apr 20, 2022
1 parent 15e7f23 commit f2ce11f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.6.x'
- name: install dependencies
run: |
sudo apt update && sudo apt install -y protobuf-compiler clang-format git 2to3
pip install -r requirements_pre-commit.txt --upgrade
- uses: actions/setup-python@v3
with:
python-version: '3.6.x'
- name: get submodule
run: |
sed -i 's,git\@github.com:\([^/]*\)/\(.*\).git,https://github.com/\1/\2,' .gitmodules
Expand Down
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ repos:
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
language_version: python2.7
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0 # Use the ref you want to point at
rev: v4.1.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
exclude: ^source/tests/chaos/chaos_loading.sql # Otherwise, Sql commands get corrupted
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
args: [--allow-multiple-documents]
- id: flake8
language_version: python2.7
- repo: https://github.com/hove-io/navitia-pre-commit
rev: master
hooks:
Expand Down
5 changes: 0 additions & 5 deletions requirements_pre-commit.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
black==22.3.0; python_version >= '3.6'
mypy==0.800; python_version >= '3.5'
mypy-extensions==0.4.3; python_version >= '3.5'
flake8==3.5.0
pre-commit==2.9.2; python_version > '2.7'
pre-commit==1.18.3; python_version <= '2.7'

0 comments on commit f2ce11f

Please sign in to comment.