pre-commit: autoupdate

...except for clang-format, because versions after v13.0.0 have
borked the Whitesmith formatting. Also moves yapf from
pre-commit/mirrors-yapf to google/yapf.
This commit is contained in:
Arne Welzel 2023-08-29 09:10:09 +02:00
parent d81cb9d10e
commit f766669b73
2 changed files with 5 additions and 6 deletions

View file

@ -8,15 +8,13 @@ repos:
- id: clang-format - id: clang-format
- repo: https://github.com/maxwinterstein/shfmt-py - repo: https://github.com/maxwinterstein/shfmt-py
# Latest master revision as of 2023-08-17 allows to run with modern Python rev: v3.7.0.1
# versions. Switch this back to a tag once there is one :-)
rev: d4491d8
hooks: hooks:
- id: shfmt - id: shfmt
args: ["-w", "-i", "4", "-ci"] args: ["-w", "-i", "4", "-ci"]
- repo: https://github.com/pre-commit/mirrors-yapf - repo: https://github.com/google/yapf
rev: v0.31.0 rev: v0.40.0
hooks: hooks:
- id: yapf - id: yapf
@ -27,7 +25,7 @@ repos:
exclude: '^auxil/.*$' exclude: '^auxil/.*$'
- repo: https://github.com/crate-ci/typos - repo: https://github.com/crate-ci/typos
rev: v1.15.0 rev: v1.16.8
hooks: hooks:
- id: typos - id: typos
exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES)$' exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES)$'

View file

@ -4,6 +4,7 @@ import http.server as BaseHTTPServer
class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):
self.send_response(200) self.send_response(200)
self.send_header("Content-type", "text/plain") self.send_header("Content-type", "text/plain")