Skip to content

XIOS implementation of writeDiagnosticTime #858

XIOS implementation of writeDiagnosticTime

XIOS implementation of writeDiagnosticTime #858

Workflow file for this run

name: Check formatting
on:
push:
branches: [ main, develop ]
pull_request:
paths:
- '.github/workflows/linting.yml'
- '**.cpp'
- '**.hpp'
- '**.py'
- '**CMakeLists.txt'
pull_request_review:
branches: [ main, develop ]
jobs:
linting:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: clang-format
run: |
sudo apt update
sudo apt install clang-format
for component in core dynamics physics
do
cd $component/src
clang-format --dry-run -Werror *cpp include/*hpp
cd -
done
- name: ruff
if: always()
run: |
cd ${{ github.workspace }}
pip install ruff
ruff check --diff ./
- name: cmake-lint
run: |
pip install cmakelang
cmake-lint $(find . -name CMakeLists.txt) -c .cmake-lint-config.py
# NOTE: We ignore C0103, which would enforce that variables are all-caps
# NOTE: We ignore C0113, which would enforce that comments are used
# NOTE: We set the tab size to 4
# NOTE: We set the maximum line length to 100