Skip to content

Commit 63c7fb0

Browse files
authored
Use environment marker to restrict flake8 install (#9510)
1 parent 0b90344 commit 63c7fb0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
cache: pip
4444
cache-dependency-path: requirements-tests.txt
4545
- name: Install dependencies
46-
run: pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
46+
run: pip install $(grep mypy== requirements-tests.txt)
4747
- name: Run stubtest
4848
run: python tests/stubtest_stdlib.py
4949

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
python-version: ${{ matrix.python-version }}
9595
cache: pip
9696
cache-dependency-path: requirements-tests.txt
97-
- run: pip install $(grep mypy== requirements-tests.txt) packaging pathspec termcolor tomli typing-extensions
97+
- run: pip install -r requirements-tests.txt
9898
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
9999

100100
regression-tests:

requirements-tests.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
aiohttp==3.8.3
2-
black==22.12.0 # must match .pre-commit-config.yaml
3-
flake8==6.0.0 # must match .pre-commit-config.yaml
4-
flake8-bugbear==22.12.6 # must match .pre-commit-config.yaml
5-
flake8-noqa==1.3.0 # must match .pre-commit-config.yaml
6-
flake8-pyi==22.11.0 # must match .pre-commit-config.yaml
7-
isort==5.11.4 # must match .pre-commit-config.yaml
2+
black==22.12.0 # must match .pre-commit-config.yaml
3+
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
4+
flake8-bugbear==22.12.6; python_version >= "3.8" # must match .pre-commit-config.yaml
5+
flake8-noqa==1.3.0; python_version >= "3.8" # must match .pre-commit-config.yaml
6+
flake8-pyi==22.11.0; python_version >= "3.8" # must match .pre-commit-config.yaml
7+
isort==5.11.4 # must match .pre-commit-config.yaml
88
mypy==0.991
99
packaging==22.0
1010
pathspec
11-
pycln==2.1.2 # must match .pre-commit-config.yaml
11+
pycln==2.1.2 # must match .pre-commit-config.yaml
1212
pyyaml==6.0
1313
pytype==2023.1.10; platform_system != "Windows" and python_version < "3.11"
1414
termcolor>=2

0 commit comments

Comments
 (0)