Skip to content

Commit

Permalink
ci: update pre-commits
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 22, 2024
1 parent d8866f7 commit 18da53a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -13,13 +13,8 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.262"
rev: "v0.7.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
15 changes: 4 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ changelog = "https://github.com/pytest-dev/pytest-github-actions-annotate-failur
pytest_github_actions_annotate_failures = "pytest_github_actions_annotate_failures.plugin"


[tool.ruff]
select = [
"E", "F", "W", # flake8
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
Expand All @@ -74,17 +73,11 @@ select = [
"YTT", # flake8-2020
"EXE", # flake8-executable
]
extend-ignore = [
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
]
target-version = "py37"
unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
isort.required-imports = ["from __future__ import annotations"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["T20"]

0 comments on commit 18da53a

Please sign in to comment.