From 89485cdace4488f2e933cd126f7c0100d6d48195 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 17 Nov 2023 08:52:22 -0800 Subject: [PATCH] Update pre-commit hooks (#7) * Update pre-commit hooks * Remove deprecated checkers and update again * Remove blank lines at the beginnings of some modules --- .pre-commit-config.yaml | 16 ++++------------ baiocas/channel_id.py | 2 -- baiocas/status.py | 2 -- baiocas/transports/registry.py | 2 -- requirements.txt | 2 +- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7562924..86445ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,26 +1,18 @@ --- repos: - - repo: git://github.com/pre-commit/pre-commit-hooks - rev: v0.9.1 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - - id: autopep8-wrapper - args: - - "-i" - - "--ignore=E265,E309,E501" - - "--max-line-length=127" - id: debug-statements - - id: flake8 - args: - - "--max-line-length=127" - id: check-yaml - id: check-json - id: check-merge-conflict - id: name-tests-test exclude: tests/(common.py|util.py|(helpers)/(.+).py) - - repo: git://github.com/asottile/reorder_python_imports - rev: v2.5.0 + - repo: https://github.com/asottile/reorder_python_imports + rev: v3.12.0 hooks: - id: reorder-python-imports args: diff --git a/baiocas/channel_id.py b/baiocas/channel_id.py index 8224b1f..7e7620a 100644 --- a/baiocas/channel_id.py +++ b/baiocas/channel_id.py @@ -1,5 +1,3 @@ - - class ChannelId(str): # Prefix for meta channel IDs diff --git a/baiocas/status.py b/baiocas/status.py index 02fc1e3..92fd2d1 100644 --- a/baiocas/status.py +++ b/baiocas/status.py @@ -1,5 +1,3 @@ - - class ClientStatus(object): # State assumed after the handshake when the connection is broken diff --git a/baiocas/transports/registry.py b/baiocas/transports/registry.py index 09f9ffe..811eaf9 100644 --- a/baiocas/transports/registry.py +++ b/baiocas/transports/registry.py @@ -1,5 +1,3 @@ - - class TransportRegistry(object): def __init__(self): diff --git a/requirements.txt b/requirements.txt index 64dfc4b..36598cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ flake8 mock>=0.7.2 pytest>=2.1.3 -pre-commit==1.21.0 +pre-commit>=1.21.0