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

chore: pre-commit autoupdate #1801

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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ exclude: >
minimum_pre_commit_version: 4.0.0 # Related to https://github.com/ekalinin/nodeenv/issues/369
repos:
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.0
rev: v8.17.2
hooks:
- id: cspell
args:
- --config=cspell.config.yaml
# name: Spell check with cspell
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
pass_filenames: false # we want to use its own config
Expand All @@ -48,7 +48,7 @@ repos:
- -e
- SC1091
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.4
hooks:
- id: ruff
args:
Expand All @@ -58,7 +58,7 @@ repos:
- id: ruff-format # must be after ruff
types_or: [python, pyi]
- repo: https://github.com/psf/black # must be after ruff
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
- repo: local
Expand Down Expand Up @@ -189,7 +189,7 @@ repos:
docs/als/settings.md
)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint
exclude: >
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/plist2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def generate_xml(parent: ET.Element, data: pp.ParseResults, level=0, indent=4):
lines = string.split("\n")
reindented_lines = [lines[0]]
for line in lines[1:]:
m: Match = re.match(f"^[ ]{{{(level-1)*indent}}}", line)
m: Match = re.match(f"^[ ]{{{(level - 1) * indent}}}", line)
if m:
# remove plist indent
line = line[len(m.group(0)) :]
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/xml2plist.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def convert_to_plist(element: ET.Element, level=0, indent=4, context: str = ""):
), f"Got {key_element.tag}({key_element.text}) without value"
item_str = (
f"{inner_indentation}{to_safe_string(key_element.text)} ="
f" {convert_to_plist(value_element, level+1, indent, 'mapping')};"
f" {convert_to_plist(value_element, level + 1, indent, 'mapping')};"
)
dict_items.append(item_str)
except StopIteration:
Expand Down
Loading