diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66fe3bd46939..37e362f077eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,10 +20,11 @@ repos: rev: 22.3.0 hooks: - id: black - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 + - repo: https://github.com/PyCQA/flake8 + rev: 5.0.4 hooks: - id: flake8 + files: ^(great_expectations/core) - repo: https://github.com/asottile/pyupgrade rev: v2.7.2 hooks: diff --git a/azure-pipelines-contrib.yml b/azure-pipelines-contrib.yml index 77871705cd4f..df5e3bce39f4 100644 --- a/azure-pipelines-contrib.yml +++ b/azure-pipelines-contrib.yml @@ -38,7 +38,7 @@ stages: displayName: 'Use Python $(python.version)' - script: | - pip install isort[requirements]==5.10.1 flake8==3.9.2 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 + pip install isort[requirements]==5.10.1 flake8==5.0.4 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 EXIT_STATUS=0 invoke fmt --check || EXIT_STATUS=$? invoke lint || EXIT_STATUS=$? diff --git a/azure-pipelines-dependency-graph-testing.yml b/azure-pipelines-dependency-graph-testing.yml index 3b0be4df8030..a4ec6257df4f 100644 --- a/azure-pipelines-dependency-graph-testing.yml +++ b/azure-pipelines-dependency-graph-testing.yml @@ -97,7 +97,7 @@ stages: displayName: 'Use Python 3.7' - script: | - pip install isort[requirements]==5.10.1 flake8==3.9.2 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 + pip install isort[requirements]==5.10.1 flake8==5.0.4 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 EXIT_STATUS=0 invoke fmt --check || EXIT_STATUS=$? invoke lint || EXIT_STATUS=$? diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bb79af50b6bb..b5d9af2fbd8b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -73,7 +73,7 @@ stages: displayName: 'Use Python 3.7' - script: | - pip install isort[requirements]==5.10.1 flake8==3.9.2 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 + pip install isort[requirements]==5.10.1 flake8==5.0.4 black==22.3.0 pyupgrade==2.7.2 invoke==1.7.1 EXIT_STATUS=0 invoke fmt --check || EXIT_STATUS=$? invoke lint || EXIT_STATUS=$? diff --git a/requirements-dev-contrib.txt b/requirements-dev-contrib.txt index 1a1ba25669e4..8def2679e51f 100644 --- a/requirements-dev-contrib.txt +++ b/requirements-dev-contrib.txt @@ -1,5 +1,5 @@ black==22.3.0 -flake8==3.9.2 +flake8==5.0.4 invoke>=1.7.1 isort==5.10.1 mypy>=0.971