Merge pull request #466 from freemansw1/fix_linting_CI #1015
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 |