Skip to content

Commit ac24b4a

Browse files
authored
GitHub Workflows:
* Create linting.yml
1 parent 178d479 commit ac24b4a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/linting.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Code Linting
2+
3+
name: Code Linting
4+
5+
on:
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
cache: 'pip'
20+
21+
- name: Install Linting Dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install ruff --no-deps
25+
26+
- name: Show Files To Be Linted
27+
run: ruff check --show-files
28+
29+
- name: Ruff Statistics
30+
run: ruff check --statistics
31+
continue-on-error: true
32+
33+
- name: Ruff Check Grouped Format
34+
run: ruff check --output-format=grouped

0 commit comments

Comments
 (0)