Skip to content

Commit ac8c307

Browse files
committed
Use pyright as well as pylint when linting
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 5586cf0 commit ac8c307

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ jobs:
2727
python3-requests
2828
python3-semantic_version
2929
python3-specfile
30-
task: lint
30+
task: PATH=${PATH}:/github/home/.local/bin make -f Makefile lint
3131
- dependencies: >
3232
black
3333
python3-isort
3434
shfmt
35-
task: fmt-travis
35+
task: make -f Makefile fmt-travis
3636
- dependencies: >
3737
yamllint
38-
task: yamllint
38+
task: make -f Makefile yamllint
3939
- dependencies: >
4040
findutils
4141
ShellCheck
42-
task: shellcheck
42+
task: make -f Makefile shellcheck
4343
runs-on: ubuntu-latest
4444
container: fedora:41 # CURRENT DEVELOPMENT ENVIRONMENT
4545
steps:
@@ -48,6 +48,9 @@ jobs:
4848
run: >
4949
dnf install -y
5050
make
51+
pip
5152
${{ matrix.dependencies }}
53+
- name: Install pyright
54+
run: pip install --user pyright
5255
- name: Run test
53-
run: make -f Makefile ${{ matrix.task }}
56+
run: ${{ matrix.task }}

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ lint:
44
pylint ./dependency_management/* --disable=R0801
55
pylint ./misc_scripts/*.py --disable=R0801
66
pylint ./release_management/*.py --disable=R0801
7+
pyright
78

89
.PHONY: fmt
910
fmt:

0 commit comments

Comments
 (0)