Skip to content

Merge pull request #49 from echemdb/gh-miniforge #57

Merge pull request #49 from echemdb/gh-miniforge

Merge pull request #49 from echemdb/gh-miniforge #57

Workflow file for this run

name: Lint
on:
push: { branches: [ "main" ] }
pull_request: { branches: [ "main" ] }
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
python-linter:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with: { submodules: recursive }
- name: setup conda environment
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "${{ matrix.python }}"
- name: install dependencies
shell: bash -l {0}
run: |
conda env update --quiet -n test -f environment-dev.yml
conda list
- name: ruff lint
shell: bash -l {0}
run: |
ruff check .
- name: ruff format
shell: bash -l {0}
run: |
ruff format .
- name: ruff isort
shell: bash -l {0}
run: |
ruff check --select I .