Skip to content

Feature/SK-831 | Self-supervised Learning Example (#603) #1244

Feature/SK-831 | Self-supervised Learning Example (#603)

Feature/SK-831 | Self-supervised Learning Example (#603) #1244

Workflow file for this run

name: "code checks"
on: push
jobs:
code-checks:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: init venv
run: .devcontainer/bin/init_venv.sh
- name: Ruff Linting
uses: chartboost/ruff-action@v1
- name: check for floating imports
run: >
! grep -E -R
--exclude-dir='.venv'
--exclude-dir='.mnist-pytorch'
--exclude-dir='.mnist-keras'
--exclude-dir='docs'
--exclude-dir='flower-client'
--exclude='tests.py'
--exclude='README.rst'
'^[ \t]+(import|from) ' -I .
# TODO: add linting/formatting for all file types