diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dbddba57ef21c..2ca5b5c9b896b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: absolufy-imports files: ^pandas/ - repo: https://github.com/jendrikseipp/vulture - rev: 'v2.4' + rev: 'v2.5' hooks: - id: vulture entry: python scripts/run_vulture.py @@ -46,20 +46,19 @@ repos: exclude: ^pandas/_libs/src/(klib|headers)/ args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir'] - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 5.0.4 hooks: - id: flake8 additional_dependencies: &flake8_dependencies - - flake8==4.0.1 - - flake8-comprehensions==3.7.0 - - flake8-bugbear==21.3.2 + - flake8==5.0.4 + - flake8-bugbear==22.7.1 - pandas-dev-flaker==0.5.0 - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.34.0 + rev: v2.37.3 hooks: - id: pyupgrade args: [--py38-plus] @@ -239,8 +238,8 @@ repos: types: [pyi] language: python additional_dependencies: - - flake8==4.0.1 - - flake8-pyi==22.7.0 + - flake8==5.0.4 + - flake8-pyi==22.8.1 - id: future-annotations name: import annotations from __future__ entry: 'from __future__ import annotations' diff --git a/environment.yml b/environment.yml index 8866b1b3b7df6..f1472f453b935 100644 --- a/environment.yml +++ b/environment.yml @@ -85,9 +85,8 @@ dependencies: # code checks - black=22.3.0 - cpplint - - flake8=4.0.1 - - flake8-bugbear=21.3.2 # used by flake8, find likely bugs - - flake8-comprehensions=3.7.0 # used by flake8, linting of unnecessary comprehensions + - flake8=5.0.4 + - flake8-bugbear=22.7.1 # used by flake8, find likely bugs - isort>=5.2.1 # check that imports are in the right order - mypy=0.971 - pre-commit>=2.15.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index a6e0f9e98b52a..60dd738e43ba3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -64,9 +64,8 @@ flask asv black==22.3.0 cpplint -flake8==4.0.1 -flake8-bugbear==21.3.2 -flake8-comprehensions==3.7.0 +flake8==5.0.4 +flake8-bugbear==22.7.1 isort>=5.2.1 mypy==0.971 pre-commit>=2.15.0