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

[pre-commit.ci] pre-commit autoupdate #81

Merged
merged 3 commits into from
Apr 1, 2024
Merged
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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.3.0
hooks:
- id: black
args: [--safe, --quiet]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -15,8 +15,8 @@ repos:
- id: check-yaml
language_version: python3

- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
name: autoflake
Expand All @@ -25,25 +25,25 @@ repos:
files: \.py$

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
language_version: python3

- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py3-plus]

- repo: https://github.com/rhysd/actionlint
rev: v1.6.25
rev: v1.6.27
hooks:
- id: actionlint-docker

Expand Down
2 changes: 0 additions & 2 deletions pytest_localserver/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class WSGIServer(threading.Thread):

"""
HTTP server running a WSGI application in its own thread.
"""
Expand Down Expand Up @@ -61,7 +60,6 @@ def _encode_chunk(chunk, charset):


class ContentServer(WSGIServer):

"""
Small test server which can be taught which content (i.e. string) to serve
with which response code. Try the following snippet for testing API calls::
Expand Down
1 change: 0 additions & 1 deletion pytest_localserver/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class SecureContentServer(ContentServer):

"""
Small test server which works just like :class:`http.Server` over HTTP::

Expand Down
1 change: 0 additions & 1 deletion pytest_localserver/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ async def handle_DATA(self, server, session, envelope):


class Server(aiosmtpd.controller.Controller):

"""
Small SMTP test server.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _compare_chunks(expected, actual):
__tracebackhide__ = True
if expected != actual:
message = [_format_chunk(expected) + " != " + _format_chunk(actual)]
if type(expected) == type(actual):
if type(expected) is type(actual):
for i, (e, a) in enumerate(itertools.zip_longest(expected, actual, fillvalue="<end>")):
if e != a:
message += [
Expand Down
Loading