Skip to content

Commit 7378360

Browse files
committed
Working on getting linting to work: add requirements file (based on what nvdaAddonWorkflows/.github/workflows/lint.yaml does).
Trying to force a more modern version of flake8
1 parent 260cf62 commit 7378360

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/lint.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ jobs:
1414
runs-on: windows-latest
1515

1616
steps:
17-
- name: Checkout reusable workflows
18-
uses: actions/checkout@v3
19-
with:
20-
repository: nvdaes/nvdaAddonWorkflows
2117
- name: Checkout code
2218
uses: actions/checkout@v3
2319
with:
@@ -26,7 +22,9 @@ jobs:
2622
uses: actions/setup-python@v4
2723
with:
2824
python-version: 3.11
25+
- name: Install flake8
26+
run: pip install flake8
2927
- name: Install dependencies
30-
run: pip install -r requirements.txt
28+
run: pip install -r .github/workflows/requirements.txt
3129
- name: Lint
3230
run: flake8 code/addon --max-line-length=130 --extend-exclude=addon/globalPlugins/MathCAT/yaml/*

.github/workflows/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
####### requirements.txt #######
2+
#
3+
###### Requirements for automated lint ######
4+
flake8 ~= 3.8
5+
flake8-tabs == 2.1.0

0 commit comments

Comments
 (0)