Skip to content

Commit

Permalink
ci: update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Feb 19, 2024
1 parent 409e952 commit 3006389
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.2
hooks:
- id: ruff
args: [--fix]
Expand Down
14 changes: 8 additions & 6 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Docs: https://github.com/charliermarsh/ruff
# Tip: run python -m ruff --explain RUF100

line-length = 88
target-version = 'py38'

[lint]
ignore = [
'ANN002', # Missing type annotation for `*args`
'ANN003', # Missing type annotation for `**kwargs`
Expand Down Expand Up @@ -31,21 +35,19 @@ ignore = [
'TID252', # Relative imports from parent modules are banned
'TRY003', # Avoid specifying long messages outside the exception class
]
line-length = 88
preview = true
select = ['ALL']
target-version = 'py38'
unfixable = [
'ERA001', # Commented out code
]

[flake8-quotes]
[lint.flake8-quotes]
inline-quotes = 'double'

[isort]
[lint.isort]
known-first-party = ['mdformat_mkdocs']

[per-file-ignores]
[lint.per-file-ignores]
'__init__.py' = [
'D104', # Missing docstring in public package
'F401', # imported but unused; consider adding to __all__ or using a redundant alias
Expand All @@ -63,5 +65,5 @@ known-first-party = ['mdformat_mkdocs']
'T201', # `print` found'
]

[pylint]
[lint.pylint]
max-args = 6

0 comments on commit 3006389

Please sign in to comment.