Skip to content

Commit

Permalink
docs: 'exclude' is a little different
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 27, 2023
1 parent 74b3758 commit 9446c7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
additional_dependencies: [black==23.*]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.2"
rev: "v0.1.3"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
3 changes: 2 additions & 1 deletion docs/pages/guides/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ look like Black, but run 30x faster. Here is the snippet to add Black to your

```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.0"
rev: "v0.1.3"
hooks:
# id: ruff would go here if using both
- id: ruff-format
```

Expand Down
3 changes: 3 additions & 0 deletions src/sp_repo_review/checks/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def iter_check(ruff: dict[str, Any]) -> Generator[str, None, None]:
"unfixable",
}

# exclude isn't the same - outer exclude avoids loading config files, so it
# might be desired.


class RF202(RF2xx):
"Use (new) lint config section"
Expand Down

0 comments on commit 9446c7b

Please sign in to comment.