Skip to content

Commit

Permalink
Update pre-commit hooks (#7)
Browse files Browse the repository at this point in the history
* Update pre-commit hooks

* Remove deprecated checkers and update again

* Remove blank lines at the beginnings of some modules
  • Loading branch information
ViViDboarder authored Nov 17, 2023
1 parent c59c89a commit 89485cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
16 changes: 4 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 0 additions & 2 deletions baiocas/channel_id.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


class ChannelId(str):

# Prefix for meta channel IDs
Expand Down
2 changes: 0 additions & 2 deletions baiocas/status.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


class ClientStatus(object):

# State assumed after the handshake when the connection is broken
Expand Down
2 changes: 0 additions & 2 deletions baiocas/transports/registry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


class TransportRegistry(object):

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
flake8
mock>=0.7.2
pytest>=2.1.3
pre-commit==1.21.0
pre-commit>=1.21.0

0 comments on commit 89485cd

Please sign in to comment.