Skip to content

Commit 24ef883

Browse files
committed
Windows only linting
1 parent 4b6947b commit 24ef883

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/lint_win.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Python Lint Workflow
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
lint:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit']
11+
python-version: ['3.10']
12+
os: [windows-latest]
13+
fail-fast: false
14+
15+
steps:
16+
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code
17+
# upgrade pip, so that we can install flake8_sarif_formatter properly from the git repo
18+
- uses: actions/checkout@v4
19+
- name: Install pip dependencies
20+
run: |
21+
python3 -mpip install -q --upgrade pip
22+
python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit pyre-check
23+
python3 -mpip install -q flake8-sarif-formatter
24+
- name: Run Python Lint
25+
uses: advanced-security/python-lint-code-scanning-action@main
26+
with:
27+
linter: ${{ matrix.linter }}
28+
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)