diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 73b8ef8..f3e3705 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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: @@ -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.14.1 hooks: - id: mypy # empty args needed in order to match mypy cli behavior diff --git a/lib/ruyaml/comments.py b/lib/ruyaml/comments.py index 0e30c08..1fa2811 100644 --- a/lib/ruyaml/comments.py +++ b/lib/ruyaml/comments.py @@ -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): diff --git a/lib/ruyaml/emitter.py b/lib/ruyaml/emitter.py index d5fe1a1..cb08be6 100644 --- a/lib/ruyaml/emitter.py +++ b/lib/ruyaml/emitter.py @@ -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: