Skip to content

Commit

Permalink
add CI lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kharitonov-ivan committed Nov 7, 2023
1 parent a2573f6 commit 841d248
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Python Code Linting and Formatting

on: [push, pull_request]

jobs:
lint-format:
runs-on: ubuntu-latest
container:
image: python:3.10-slim

steps:
- uses: actions/checkout@v2
- name: Install Ruff, Black, and isort
run: pip install ruff "black[jupyter]" isort
- name: Check imports order with isort
run: isort . --check-only
- name: Check Python code formatting with Black
run: black --check .
- name: Run Ruff linter
run: ruff .
24 changes: 0 additions & 24 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit 841d248

Please sign in to comment.