Skip to content

Commit

Permalink
Enable ruff (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr authored Nov 8, 2023
1 parent fdc7892 commit 53ef99e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
43 changes: 6 additions & 37 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/mxr/sync-pre-commit-deps
rev: v0.0.1
hooks:
- id: sync-pre-commit-deps
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:
Expand All @@ -23,44 +19,17 @@ repos:
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/hakancelikdev/unimport
rev: 1.0.0
hooks:
- id: unimport
- repo: https://github.com/mxr/unkey
rev: v0.0.1
hooks:
- id: unkey
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.9.16
- flake8-builtins==2.1.0
- flake8-comprehensions==3.14.0
- flake8-typing-imports==1.15.0
- flake8_simplify==0.21.0
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: yesqa
additional_dependencies:
- flake8==6.1.0
- flake8-bugbear==23.9.16
- flake8-builtins==2.1.0
- flake8-comprehensions==3.14.0
- flake8-typing-imports==1.15.0
- flake8_simplify==0.21.0
- id: ruff
args: ['--fix', '--target-version=py38']
- id: ruff-format
args: ['--target-version=py38']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ universal = True
[coverage:run]
plugins = covdefaults

[flake8]
max-line-length = 88
extend-ignore = E203

[mypy]
check_untyped_defs = true
disallow_any_generics = true
Expand Down

0 comments on commit 53ef99e

Please sign in to comment.