lint: simplify hooks already covered by Ruff (#1204)

* lint: simplify hooks already covered by Ruff

* prune dev dependency

* setting E, W, F

* poetry?

* autopep8

* quote-style = "single"

* double-quote-string-fixer

* --all-files

* apply

* Q

* drop double-quote-string-fixer

* --all-files

* apply pre-commit

* python3.11 -m poetry lock --no-update

---------

Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
Jirka Borovec
2024-04-27 13:32:14 +02:00
committed by GitHub
parent 7d5856e36b
commit e32d95cb1a
36 changed files with 130 additions and 193 deletions

View File

@@ -7,19 +7,6 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--select=Q000'] # Q000 is the error code for single quote enforcement
additional_dependencies:
- flake8-quotes
- repo: https://github.com/hhatto/autopep8
rev: v2.1.0
hooks:
- id: autopep8
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:

View File

@@ -1,3 +1,20 @@
exclude = [
"agenthub/monologue_agent/regression/",
]
]
[lint]
select = [
"E",
"W",
"F",
"Q",
]
ignore = [
"E501",
]
flake8-quotes = {inline-quotes = "single"}
[format]
quote-style = "single"