Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 1 addition & 32 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,15 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

# Sort imports
- repo: https://github.com/pycqa/isort
rev: 9.0.0b1
hooks:
- id: isort
name: isort
args:
- --line-length=79
- --profile=black

# Remove unused imports, variables, statements
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.3
hooks:
- id: autoflake

# Auto-update syntax
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args:
- --py311-plus

# Linter and formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
- id: ruff
args:
# ignore: E501 Line too long
- --ignore=E501
- --fix
- id: ruff-format

# Linter and formatter
- repo: https://github.com/Instagram/Fixit
rev: v2.2.1
hooks:
- id: fixit-fix

# Type linter
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ include = [
]

[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
# RUF012: too noisy for Flask config and SafeYAML classes (https://github.com/astral-sh/ruff/issues/5243)
ignore = ["RUF012"]
ignore = ["E501", "RUF012"]
Loading