Skip to content

Commit

Permalink
remove lint
Browse files Browse the repository at this point in the history
Revert "remove lint"

This reverts commit 9661b45.

Update lint.yml

Update lint.yml
  • Loading branch information
fkiraly committed Aug 25, 2024
1 parent 9d5c0f5 commit d5f3381
Showing 1 changed file with 12 additions and 57 deletions.
69 changes: 12 additions & 57 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,65 +7,20 @@ on:
branches: [master]

jobs:
linter-black:
name: Check code formatting with Black
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Black
run: pip install black[jupyter]
- name: Run Black
run: black --check .

imports-check-isort:
name: Check valid import formatting with isort
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install isort
run: pip install isort==5.6.4
- name: Run isort
run: isort --check-only --diff .

linter-flake8:
name: Check valid formatting with flake8
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: pip install flake8
- name: Run checks
run: flake8


pre-commit-hooks:
name: Check that pre-commit hooks pass
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: repository checkout step
uses: actions/checkout@v4
- name: python environment step
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: pip install pre-commit

- name: Run checks
run: pre-commit run --all-files
python-version: "3.11"
- name: install pre-commit
run: python3 -m pip install pre-commit
- id: changed-files
name: identify modified files
uses: tj-actions/changed-files@v44
- name: run pre-commit hooks on modified files
run: pre-commit run --color always --files ${{ steps.changed-files.outputs.all_changed_files }} --show-diff-on-failure

0 comments on commit d5f3381

Please # to comment.