mirror of
https://github.com/getsolus/packages.git
synced 2025-04-25 12:20:28 +03:00
ci: Add Python linting
This commit is contained in:
parent
e28a9505df
commit
28d54a2a2e
2 changed files with 26 additions and 0 deletions
2
.flake8
Normal file
2
.flake8
Normal file
|
@ -0,0 +1,2 @@
|
|||
[flake8]
|
||||
max-line-length = 120
|
24
.github/workflows/script_lint.yml
vendored
Normal file
24
.github/workflows/script_lint.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
name: Script Lint
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'common/**'
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
Python:
|
||||
name: Python Linting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out source repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python environment
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: flake8 Lint
|
||||
uses: py-actions/flake8@v2
|
||||
with:
|
||||
path: "common/CI"
|
Loading…
Add table
Add a link
Reference in a new issue