Skip to content

Commit

Permalink
CI-based linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lorawoodford committed Jan 8, 2025
1 parent a7be266 commit fdfbf2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint with ruff
on:
pull_request:
branches:
- main
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install ruff
- run: ruff check .
5 changes: 5 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[lint]
select = ["I"]

[lint.isort]
combine-as-imports = true

0 comments on commit fdfbf2a

Please sign in to comment.