Skip to content

Commit

Permalink
Updated pre-commit versions and fixed linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 authored and carltongibson committed Dec 14, 2022
1 parent 72c5ca1 commit 467c154
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.9.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.12.0
hooks:
- id: black
args: ["--target-version=py37"]

- repo: https://github.com/pycqa/isort
rev: 5.7.0
rev: 5.11.2
hooks:
- id: isort
args: ["--profile=black"]

- repo: https://github.com/pycqa/flake8
rev: 3.8.4
rev: 6.0.0
hooks:
- id: flake8

- repo: https://github.com/asottile/yesqa
rev: v1.2.2
rev: v1.4.0
hooks:
- id: yesqa

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-toml
Expand Down
3 changes: 2 additions & 1 deletion asgiref/timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import asyncio
from types import TracebackType
from typing import Any, Optional, Type
from typing import Any # noqa
from typing import Optional, Type


class timeout:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def __init__(self, name):

async def register(self, server_addr, name=None):
name = name or self.name
self._sock.sendto(f"Register {name}".encode("utf-8"), server_addr)
self._sock.sendto(f"Register {name}".encode(), server_addr)

async def send(self, server_addr, to, msg):
self._sock.sendto(f"To {to} {msg}".encode("utf-8"), server_addr)
self._sock.sendto(f"To {to} {msg}".encode(), server_addr)

async def get_msg(self):
msg, server_addr = await sock_recvfrom(self._sock, 4096)
Expand Down

0 comments on commit 467c154

Please sign in to comment.