diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0dd89281f..481c3a636 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - run: pip install $(grep flake8 requirements-tests.txt) + - run: pip install -r requirements-tests.txt - run: flake8 pytype: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 931fcbfbf..81bffa511 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,9 +19,8 @@ repos: hooks: - id: flake8 additional_dependencies: - # must match requirements-tests.txt - - 'flake8-bugbear==22.7.1' - - 'flake8-pyi==22.8.1' + - 'flake8-bugbear==22.7.1' # must match requirements-tests.txt + - 'flake8-pyi==22.8.1' # must match requirements-tests.txt ci: autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit.com hooks' diff --git a/requirements-tests.txt b/requirements-tests.txt index be6510d31..56ebbc672 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,19 +1,15 @@ aiohttp==3.8.1 +black==22.6.0 # must match .pre-commit-config.yaml +flake8==5.0.4 # must match .pre-commit-config.yaml +flake8-bugbear==22.7.1 # must match .pre-commit-config.yaml +flake8-pyi==22.8.1 # must match .pre-commit-config.yaml +isort==5.10.1 # must match .pre-commit-config.yaml mypy==0.971 +packaging==21.3 +pycln==2.1.1 # must match .pre-commit-config.yaml +pyyaml==6.0 pytype==2022.8.17; platform_system != "Windows" -# must match .pre-commit-config.yaml -black==22.6.0 -# must match .pre-commit-config.yaml -flake8==5.0.4 -flake8-bugbear==22.7.1 -flake8-pyi==22.8.1 -# must match .pre-commit-config.yaml -isort==5.10.1 +termcolor tomli==1.2.2 tomlkit==0.11.4 -# must match .pre-commit-config.yaml -pycln==2.1.1 -packaging==21.3 -pyyaml==6.0 -termcolor types-pyyaml