-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (42 loc) · 1.32 KB
/
Copy pathcode_style.yml
File metadata and controls
43 lines (42 loc) · 1.32 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
name: Code Style
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
Code_Style_Adherence:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python_version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install isort
pip install black
- name: Lint
run: |
flake8 --append-config ./RodTracker/setup.cfg ./RodTracker
flake8 --append-config ./ParticleDetection/setup.cfg ./ParticleDetection
- name: Import Sorting
run: |
isort --settings-file ./RodTracker/pyproject.toml --check ./RodTracker
isort --settings-file ./ParticleDetection/pyproject.toml --check ./ParticleDetection
- name: Style Adherence
run: |
black --config ./RodTracker/pyproject.toml --check ./RodTracker
black --config ./ParticleDetection/pyproject.toml --check ./ParticleDetection