Fix Ruff pre-commit hook errors (#3706)

This commit is contained in:
Jonathan Plasse 2023-03-24 03:52:24 +01:00 committed by GitHub
parent 7da06b9741
commit 7f3b748401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ repos:
pass_filenames: false pass_filenames: false
- id: ruff - id: ruff
name: ruff name: ruff
entry: cargo run -p ruff_cli -- check --no-cache --force-exclude --fix --exit-non-zero-on-fix entry: cargo run -p ruff_cli -- check --no-cache --force-exclude --fix --exit-non-zero-on-fix --extend-ignore=E203
language: system language: system
types_or: [python, pyi] types_or: [python, pyi]
require_serial: true require_serial: true

View file

@ -178,7 +178,7 @@ async def main(*, ruff1: Path, ruff2: Path) -> None:
return_exceptions=True, return_exceptions=True,
) )
diffs = {name: result for name, result in zip(REPOSITORIES, results, strict=True)} diffs = dict(zip(REPOSITORIES, results, strict=True))
total_removed = total_added = 0 total_removed = total_added = 0
errors = 0 errors = 0