Skip to content

Commit

Permalink
cq: Update ruff to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetox committed Feb 10, 2024
1 parent 435adb4 commit 9ddeecb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: chartboost/ruff-action@v1
with:
src: "."
version: 0.0.286
version: 0.2.1
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.286
rev: v0.2.1
hooks:
- id: ruff
19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,19 @@ skip_gitignore = true

[tool.ruff]
line-length = 88
exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
]

target-version = "py37"

[tool.ruff.lint]
select = [
"PYI", # flake8-pyi
]

ignore = [
"PYI001", # Name of private `TypeVar` must start with `_`
"PYI011", # Only simple default values allowed for typed arguments
Expand All @@ -76,12 +84,3 @@ ignore = [
"PYI052", # Need type annotation
"PYI054", # Numeric literals with a string representation longer than ten characters are not permitted
]

exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
]

target-version = "py37"

0 comments on commit 9ddeecb

Please sign in to comment.