Skip to content

Changed ruff to not error so much. #139

Changed ruff to not error so much.

Changed ruff to not error so much. #139

name: Python Package using Conda
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment_torch.yml
- shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
- name: Lint with ruff
shell: bash -l {0}
run: |
micromamba install ruff
# stop the build if there are Python syntax errors or undefined names
ruff check --select=E9,F63,F7,F82
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
ruff check --output-format concise --exit-zero
# Checking documentation errors
ruff check --select=D --exit-zero --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
export KERAS_BACKEND="torch"
pytest