Skip to content

Commit

Permalink
Merge 5f21c87 into f947e35
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 28, 2022
2 parents f947e35 + 5f21c87 commit 6befb04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ exclude: ^$

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.4.2
rev: v0.4.3
hooks:
- id: reformat-pyproject

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

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

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.11
rev: v1.1.13
hooks:
- id: remove-crlf
- id: forbid-crlf
Expand All @@ -78,7 +78,7 @@ repos:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.4.9
rev: v0.4.10
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
9 changes: 6 additions & 3 deletions tests/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,10 @@ def conv(b):
return s.encode("ascii", "backslashreplace")

assert conv(b'ustar/umlauts-\xc4\xd6\xdc\xe4\xf6\xfc\xdf') in out
assert conv(b'misc/regtype-hpux-signed-chksum-' b'\xc4\xd6\xdc\xe4\xf6\xfc\xdf') in out
assert conv(b'misc/regtype-old-v7-signed-chksum-' b'\xc4\xd6\xdc\xe4\xf6\xfc\xdf') in out
assert conv(b'misc/regtype-hpux-signed-chksum-'
b'\xc4\xd6\xdc\xe4\xf6\xfc\xdf') in out
assert conv(b'misc/regtype-old-v7-signed-chksum-'
b'\xc4\xd6\xdc\xe4\xf6\xfc\xdf') in out
assert conv(b'pax/bad-pax-\xe4\xf6\xfc') in out
assert conv(b'pax/hdrcharset-\xe4\xf6\xfc') in out
# Make sure it prints files separated by one newline without any
Expand All @@ -305,7 +307,8 @@ def conv(b):
# ustar/conttype
# ustar/regtype
# ...
assert re.search(br'ustar/conttype ?\r?\n' br'ustar/regtype ?\r?\n', out)
assert re.search(br'ustar/conttype ?\r?\n'
br'ustar/regtype ?\r?\n', out)
# Make sure it does not print the source of link without verbose flag
assert b'link to' not in out
assert b'->' not in out
Expand Down

0 comments on commit 6befb04

Please sign in to comment.