Skip to content

Commit

Permalink
CI #1006 rely on the .ruff.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 17, 2024
1 parent 7426687 commit 8535612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
uses: davidslusser/[email protected]
with:
python_version: "3.11"
options: "--ignore F401,F403 --exclude ideas/"
# see .ruff.toml file for options
# options: "--ignore F401,F403 --exclude ideas/"

install-catalogs:
name: Install & cache databroker catalogs
Expand Down
3 changes: 2 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exclude = [
"buck-out",
"build",
"dist",
"ideas,
"node_modules",
"site-packages",
"venv",
Expand All @@ -40,7 +41,7 @@ target-version = "py38"
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = ["E402", "E741", "F405"]
ignore = ["E402", "E741", "F401", "F403", "F405"]

# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
Expand Down

0 comments on commit 8535612

Please sign in to comment.