chore(lint): remove flake8 in favor to ruff (#103)

* chore(lint): apply suggested for flake8-black compat.

This applies the changes suggested by the Black documentation.

* from flake8 to ruff
This commit is contained in:
Jérome Eertmans
2023-01-12 17:42:10 +01:00
committed by GitHub
parent cd7a054cf1
commit 2b224530ab
4 changed files with 1675 additions and 1572 deletions

View File

@ -1,5 +0,0 @@
[flake8]
min_python_version = 3.7
extend-ignore =
# E501: line too long
E501,

View File

@ -14,15 +14,10 @@ repos:
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.219
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-tidy-imports
- flake8-typing-imports
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
hooks:

3221
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ furo = "^2022.9.29"
black = "^22.10.0"
mypy = "^0.991"
isort = "^5.10.1"
flake8 = "^6.0.0"
ruff = "^0.0.219"
[tool.poetry.group.test.dependencies]
manim = "^0.17.0"
@ -99,6 +99,14 @@ strict-equality = true
# Config file
warn-unused-configs = true
[tool.ruff]
target-version = "py38"
ignore = [
"E501",
]
[tool.poetry.plugins]
[tool.poetry.plugins."console_scripts"]
manim-slides = "manim_slides.__main__:cli"