Skip to content

Commit f2ce11f

Browse files
author
Hicham
committed
update precommit
1 parent 15e7f23 commit f2ce11f

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/workflow.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ jobs:
116116
runs-on: ubuntu-latest
117117
steps:
118118
- uses: actions/checkout@v3
119+
- uses: actions/setup-python@v3
120+
with:
121+
python-version: '3.6.x'
119122
- name: install dependencies
120123
run: |
121124
sudo apt update && sudo apt install -y protobuf-compiler clang-format git 2to3
122125
pip install -r requirements_pre-commit.txt --upgrade
123-
- uses: actions/setup-python@v3
124-
with:
125-
python-version: '3.6.x'
126126
- name: get submodule
127127
run: |
128128
sed -i 's,git\@github.com:\([^/]*\)/\(.*\).git,https://github.com/\1/\2,' .gitmodules

.pre-commit-config.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ repos:
44
hooks:
55
- id: black
66
language_version: python3.6
7+
- repo: https://github.com/pycqa/flake8
8+
rev: 3.9.2
9+
hooks:
10+
- id: flake8
11+
language_version: python2.7
712
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v1.4.0 # Use the ref you want to point at
13+
rev: v4.1.0 # Use the ref you want to point at
914
hooks:
1015
- id: trailing-whitespace
1116
exclude: ^source/tests/chaos/chaos_loading.sql # Otherwise, Sql commands get corrupted
1217
- id: check-ast
1318
- id: check-merge-conflict
1419
- id: check-yaml
1520
args: [--allow-multiple-documents]
16-
- id: flake8
17-
language_version: python2.7
1821
- repo: https://github.com/hove-io/navitia-pre-commit
1922
rev: master
2023
hooks:

requirements_pre-commit.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
black==22.3.0; python_version >= '3.6'
2-
mypy==0.800; python_version >= '3.5'
3-
mypy-extensions==0.4.3; python_version >= '3.5'
4-
flake8==3.5.0
51
pre-commit==2.9.2; python_version > '2.7'
6-
pre-commit==1.18.3; python_version <= '2.7'

0 commit comments

Comments
 (0)