Skip to content

Commit

Permalink
.github/workflows: Added format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Mar 19, 2024
1 parent 12556cc commit b02a0e9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: github-FORMAT

on:
push
#pull_request:
# paths-ignore:
# - '**/*.rst'
# - '**/*.md'
# - 'doc/**'
# types: [ opened, reopened, synchronize ]

permissions:
contents: none

# Cancels any in progress 'workflow' associated with this PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
format-check:
name: format-check
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: OpenCSP
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Black formatting check
run: |
pip install black
black . -S -C --check --diff

0 comments on commit b02a0e9

Please sign in to comment.