update pre-commit

This commit is contained in:
Robert Resch 2022-08-25 11:08:04 +02:00
parent bfba75f0ad
commit 23a84dda04
29 changed files with 44 additions and 37 deletions

View file

@ -6,12 +6,12 @@ ci:
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v2.37.3
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.6.0
hooks:
- id: black
args:
@ -20,16 +20,17 @@ repos:
<<: &python-files-with-tests
files: ^((bumper|tests)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.1
hooks:
- id: codespell
args:
- -L bumper
- --ignore-words-list=ihs,ro
- --skip="./.*,*.csv,*.json"
- --quiet-level=2
exclude_types: [csv, json]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
@ -51,24 +52,25 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: detect-private-key
exclude: tests/test_certs
- id: no-commit-to-branch
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
- prettier@2.6.2
- prettier-plugin-sort-json@0.0.2
- prettier@2.7.1
- prettier-plugin-sort-json@0.0.3
exclude_types:
- python
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
rev: v1.27.1
hooks:
- id: yamllint
- repo: local

View file

@ -2,7 +2,8 @@
import asyncio
import json
import ssl
from typing import Any, MutableMapping
from collections.abc import MutableMapping
from typing import Any
from cachetools import TTLCache
from gmqtt import Client, Subscription

View file

@ -3,7 +3,8 @@ import asyncio
import re
import ssl
import typing
from typing import Any, MutableMapping
from collections.abc import MutableMapping
from typing import Any
from urllib.parse import urlparse, urlunparse
import websockets

View file

@ -1,9 +1,9 @@
import logging
import os
import sys
from collections.abc import MutableMapping
from datetime import datetime
from logging.handlers import RotatingFileHandler
from typing import MutableMapping, Union
logformat = logging.Formatter(
"[%(asctime)s] :: %(levelname)s :: %(name)s :: %(module)s :: %(funcName)s :: %(lineno)d :: %(message)s"

View file

@ -2,10 +2,11 @@
import inspect
import sys
from abc import abstractmethod
from collections.abc import Iterable
from glob import glob
from os.path import dirname, isfile, join
from types import ModuleType
from typing import Any, Iterable
from typing import Any
from aiohttp import web
from aiohttp.web_response import Response

View file

@ -2,7 +2,8 @@
import copy
import json
import logging
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -3,7 +3,7 @@ import json
import logging
import random
import string
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -1,6 +1,6 @@
"""Ecms plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,6 +1,6 @@
"""Homed plugin module."""
import logging
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -3,7 +3,7 @@ import json
import logging
import random
import string
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -4,7 +4,7 @@ import logging
import random
import string
import xml.etree.ElementTree as ET
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,5 +1,5 @@
"""Neng plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,6 +1,6 @@
"""Pim dictionary plugin module."""
import logging
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -1,5 +1,5 @@
"""File plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_routedef import AbstractRouteDef

View file

@ -2,7 +2,7 @@
import json
import logging
import os
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -1,5 +1,5 @@
"""Rapp plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,7 +1,8 @@
"""Users plugin module."""
import json
import logging
from typing import Any, Iterable, Mapping
from collections.abc import Iterable, Mapping
from typing import Any
from aiohttp import web
from aiohttp.abc import Request

View file

@ -1,5 +1,5 @@
"""Global plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_routedef import AbstractRouteDef

View file

@ -1,5 +1,5 @@
"""Global auth plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_routedef import AbstractRouteDef

View file

@ -1,5 +1,5 @@
"""Ad plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,6 +1,6 @@
"""Campaign plugin module."""
from collections.abc import Iterable
from datetime import datetime, timedelta
from typing import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -2,7 +2,7 @@
import json
import logging
import os
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -1,5 +1,5 @@
"""Message plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,5 +1,5 @@
"""Shop plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,6 +1,6 @@
"""User plugin module."""
import logging
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_exceptions import HTTPInternalServerError

View file

@ -1,6 +1,6 @@
"""User setting plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,5 +1,5 @@
"""Common plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,5 +1,5 @@
"""Message plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_request import Request

View file

@ -1,5 +1,5 @@
"""User plugin module."""
from typing import Iterable
from collections.abc import Iterable
from aiohttp import web
from aiohttp.web_routedef import AbstractRouteDef