forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 877 Bytes
/
linting.yml
File metadata and controls
31 lines (24 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Static Analysis
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{format('{0}:{1}:{2}', github.repository, github.ref, github.workflow)}}
cancel-in-progress: true
jobs:
python-linting:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.8
- name: install Python packages
run: |
pip install --upgrade pip
pip install --upgrade flake8 flake8-comprehensions
- name: Run flake8 to verify PEP8-compliance of Python code
run: flake8
- name: Run flake8 to verify PEP8-compliance of Easyconfigs
run: flake8 --select F,W605,W291 --filename '*.eb'