Skip to content

Commit

Permalink
Update action with a script for linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Jul 30, 2024
1 parent 58be014 commit 209b881
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# TODO (andreyvelich): We need to replace this action with script to do
# linting and formatting for Training Operator SDK.
- name: Check Python code with Black
uses: psf/black@stable
with:
version: 24.2.0
options: --check --exclude '/*kubeflow_org_v1*|__init__.py|api_client.py|configuration.py|exceptions.py|rest.py'
src: sdk/

- name: Check Python code with Black and Flake8
run: |
pip install black Flake8
make fmt-python
- name: Install dependencies
run: |
pip install pytest python-dateutil urllib3 kubernetes
Expand Down

0 comments on commit 209b881

Please sign in to comment.