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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ exclude: |
)
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -26,7 +26,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -35,7 +35,7 @@ repos:
- flake8-bugbear>=20.11.1
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.13.0
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
Expand Down
6 changes: 3 additions & 3 deletions lib/ruyaml/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,9 @@ def __init__(self, *args, **kw):
except TypeError:
raise

__delitem__ = (
__setitem__
) = clear = pop = popitem = setdefault = update = raise_immutable
__delitem__ = __setitem__ = clear = pop = popitem = setdefault = update = (
raise_immutable
)

# need to implement __getitem__, __iter__ and __len__
def __getitem__(self, index):
Expand Down
6 changes: 3 additions & 3 deletions lib/ruyaml/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,9 +1234,9 @@ def analyze_scalar(self, scalar):
# Spaces followed by breaks, as well as special character are only
# allowed for double quoted scalars.
if special_characters:
allow_flow_plain = (
allow_block_plain
) = allow_single_quoted = allow_block = False
allow_flow_plain = allow_block_plain = allow_single_quoted = allow_block = (
False
)
elif space_break:
allow_flow_plain = allow_block_plain = allow_single_quoted = False
if not self.allow_space_break:
Expand Down
Loading