Merge pull request #476 from w-k-jones/release_v1.5.5 #1010
This file contains 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 |