Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop flake8 to only use ruff #268

Merged
merged 5 commits into from
Jan 9, 2023
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
17 changes: 4 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,17 @@ repos:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/psf/black
rev: "22.12.0"
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.213"
rev: "v0.0.215"
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
args: ["--force-exclude"]

- repo: https://github.com/PyCQA/flake8
rev: "6.0.0"
- repo: https://github.com/psf/black
rev: "22.12.0"
hooks:
- id: flake8
additional_dependencies:
- "flake8-bugbear==22.12.6" # renovate: pep440-python-dependency
- "flake8-comprehensions==3.10.1" # renovate: pep440-python-dependency
- "flake8-simplify==0.19.3" # renovate: pep440-python-dependency
- id: black

- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.9.0"
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ select = [
"F",
# mccabe
"C90",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# isort
"I",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# ruff
"RUF",
]
Expand Down
20 changes: 0 additions & 20 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
[flake8]
per-file-ignores = __init__.py:F401
# PEP-8 The following are ignored:
# E731 do not assign a lambda expression, use a def
# E203 whitespace before ':'
# E501 line too long
# W503 line break before binary operator
# W605 invalid escape sequence
ignore = E731, E203, E501, W503, W605
extend-exclude =
docs/source/conf.py,
old/*,
build/*,
dist/*,
.venv/*,
tests/data/*,
venv/*
max-complexity = 10
max-line-length = 120

[tox]
skipsdist = true
envlist = py37, py38, py39, py310, py311
Expand Down