Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit e7b517c

Browse files
ci: update global python (#17)
1 parent c861719 commit e7b517c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[flake8]
22
filename =
3-
*.py
3+
*.py,
4+
*.pys
45
max-line-length = 120
56
extend-exclude =
67
venv/

.github/workflows/python-flake8.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
---
12
# This action is centrally managed in https://github.com/<organization>/.github/
23
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
34
# the above-mentioned repo.
45

6+
# Lint python files with flake8.
7+
58
name: flake8
69

710
on:
811
pull_request:
912
branches: [master, nightly]
1013
types: [opened, synchronize, reopened]
1114

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1219
jobs:
1320
flake8:
1421
runs-on: ubuntu-latest
@@ -23,7 +30,8 @@ jobs:
2330

2431
- name: Install dependencies
2532
run: |
26-
python -m pip install --upgrade pip setuptools flake8
33+
# pin flake8 before v6.0.0 due to removal of support for type comments (required for Python 2.7 type hints)
34+
python -m pip install --upgrade pip setuptools "flake8<6"
2735
2836
- name: Test with flake8
2937
run: |

0 commit comments

Comments
 (0)