Skip to content

Merge pull request #1 from BNL-ATF/add-baseline #31

Merge pull request #1 from BNL-ATF/add-baseline

Merge pull request #1 from BNL-ATF/add-baseline #31

Workflow file for this run

name: pre-commit
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
name: Check code style
runs-on: ubuntu-latest
strategy:
fail-fast: false
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Install dev dependencies
run: |
set -vxeuo pipefail
python3 -m pip install pre-commit black isort
python3 -m pip list
- name: Run pre-commit
run: pre-commit run --all-files