forked from llnl/benchpark
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 903 Bytes
/
style.yml
File metadata and controls
25 lines (25 loc) · 903 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
name: Linting & Style Checks
on:
workflow_call:
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Python 3.11
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: '3.11'
cache: pip
cache-dependency-path: .github/workflows/requirements/style.txt
- name: Install Python dependencies
run: |
pip install -r .github/workflows/requirements/style.txt
- name: Lint and Format Check
run: |-
black --diff --check .
codespell --ignore-words=.codespellignore
isort --check-only .
flake8 .
yamlfix --check --verbose .
docstrfmt -p .github/workflows/requirements/docstrfmt.toml --check --verbose --exclude docs/ics.rst --ignore-cache docs/