Skip to content

Commit

Permalink
chore: configure Ruff with F821 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pg56714 committed Dec 3, 2024
1 parent ddc6d02 commit 49d6b73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
10 changes: 0 additions & 10 deletions .pre-commit-config.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ exclude = [
# Only enable the rule for missing imports.
ignore = []
select = [
"F401", # missing imports
"F821",
]

# Optionally enable fixable support, if you'd like to auto-fix missing imports.
fixable = ["F401"]
# Optionally enable fixable support.
# fixable = ["F821"]

[tool.ruff.format]
# Retain formatting configurations similar to Black.
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ sphinx_rtd_theme
pypandoc
twine
# black>=24.10.0
pre-commit
ruff

0 comments on commit 49d6b73

Please sign in to comment.