Skip to content

Commit 135ad7b

Browse files
authored
Merge pull request #81 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 200b5ce + 0c555ad commit 135ad7b

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.3.0
3+
rev: 24.3.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.2.0
9+
rev: v4.5.0
1010
hooks:
1111
- id: trailing-whitespace
1212
- id: end-of-file-fixer
@@ -15,8 +15,8 @@ repos:
1515
- id: check-yaml
1616
language_version: python3
1717

18-
- repo: https://github.com/myint/autoflake
19-
rev: v1.4
18+
- repo: https://github.com/PyCQA/autoflake
19+
rev: v2.3.1
2020
hooks:
2121
- id: autoflake
2222
name: autoflake
@@ -25,25 +25,25 @@ repos:
2525
files: \.py$
2626

2727
- repo: https://github.com/PyCQA/flake8
28-
rev: 4.0.1
28+
rev: 7.0.0
2929
hooks:
3030
- id: flake8
3131
language_version: python3
3232

33-
- repo: https://github.com/asottile/reorder_python_imports
34-
rev: v3.1.0
33+
- repo: https://github.com/asottile/reorder-python-imports
34+
rev: v3.12.0
3535
hooks:
3636
- id: reorder-python-imports
3737
args: [--py3-plus]
3838

3939
- repo: https://github.com/asottile/pyupgrade
40-
rev: v2.32.1
40+
rev: v3.15.2
4141
hooks:
4242
- id: pyupgrade
4343
args: [--py3-plus]
4444

4545
- repo: https://github.com/rhysd/actionlint
46-
rev: v1.6.25
46+
rev: v1.6.27
4747
hooks:
4848
- id: actionlint-docker
4949

pytest_localserver/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
class WSGIServer(threading.Thread):
18-
1918
"""
2019
HTTP server running a WSGI application in its own thread.
2120
"""
@@ -61,7 +60,6 @@ def _encode_chunk(chunk, charset):
6160

6261

6362
class ContentServer(WSGIServer):
64-
6563
"""
6664
Small test server which can be taught which content (i.e. string) to serve
6765
with which response code. Try the following snippet for testing API calls::

pytest_localserver/https.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class SecureContentServer(ContentServer):
16-
1716
"""
1817
Small test server which works just like :class:`http.Server` over HTTP::
1918

pytest_localserver/smtp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ async def handle_DATA(self, server, session, envelope):
3131

3232

3333
class Server(aiosmtpd.controller.Controller):
34-
3534
"""
3635
Small SMTP test server.
3736

tests/test_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _compare_chunks(expected, actual):
248248
__tracebackhide__ = True
249249
if expected != actual:
250250
message = [_format_chunk(expected) + " != " + _format_chunk(actual)]
251-
if type(expected) == type(actual):
251+
if type(expected) is type(actual):
252252
for i, (e, a) in enumerate(itertools.zip_longest(expected, actual, fillvalue="<end>")):
253253
if e != a:
254254
message += [

0 commit comments

Comments
 (0)