Skip to content

[pre-commit.ci] pre-commit autoupdate #129

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

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: reformat-pyproject

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -62,15 +62,15 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.19.1
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.5
hooks:
- id: remove-crlf
- id: forbid-crlf
Expand Down
3 changes: 1 addition & 2 deletions domdf_python_tools/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"""

if os.name == "nt": # pragma: no cover (!Windows)
os.system("cls") # nosec: B607,B605

Check notice on line 95 in domdf_python_tools/terminal.py

View check run for this annotation

codefactor.io / CodeFactor

domdf_python_tools/terminal.py#L95

Starting a process with a partial executable path (B607)
else: # pragma: no cover (!Linux)
print("\u001bc", end='')

Expand Down Expand Up @@ -186,8 +186,7 @@

new_locals = {
k: v
for k,
v in self.parent_frame.f_locals.items() # type: ignore
for k, v in self.parent_frame.f_locals.items() # type: ignore
if k not in self.locals_on_entry
}

Expand Down
Loading