Merge pull request #523 from tobac-project/main #1180
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Python File Formatting with Black | |
on: [push, pull_request] | |
jobs: | |
formatting_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up conda | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-ci.yml | |
generate-run-shell: true | |
cache-environment: true | |
cache-downloads: true | |
- name: Check formatting | |
shell: micromamba-shell {0} | |
run: | |
black --version && | |
black tobac --check --diff |