Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Feb 3, 2025
1 parent ac57a8c commit 33fea4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/executablebooks/mdformat
rev: 00812cd1850e41aae5c0916645b4b7404f538e8c # frozen: 0.7.19
rev: ff29be1a1ba8029d9375882aa2c812b62112a593 # frozen: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -16,11 +16,11 @@ repos:
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/PyCQA/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # frozen: 6.0.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
rev: 8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b # frozen: 25.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -42,7 +42,7 @@ repos:
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/pre-commit/mirrors-mypy
rev: f56614daa94d5cd733d3b7004c5df9caad267b4a # frozen: v1.13.0
rev: bbc3dc1f890007061f18f17e2334f216ea9e5df7 # frozen: v1.14.1
hooks:
- id: mypy
args: ["--scripts-are-modules"]
Expand Down
8 changes: 4 additions & 4 deletions src/tomli_w/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
COMPACT_ESCAPES = MappingProxyType(
{
"\u0008": "\\b", # backspace
"\u000A": "\\n", # linefeed
"\u000C": "\\f", # form feed
"\u000D": "\\r", # carriage return
"\u000a": "\\n", # linefeed
"\u000c": "\\f", # form feed
"\u000d": "\\r", # carriage return
"\u0022": '\\"', # quote
"\u005C": "\\\\", # backslash
"\u005c": "\\\\", # backslash
}
)

Expand Down

0 comments on commit 33fea4c

Please sign in to comment.