Bump versions in pre-commit config
This commit is contained in:
parent
bede3fb578
commit
77c8b67540
|
@ -1,20 +1,29 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.6.0
|
rev: 23.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
exclude: ^core/migrations
|
exclude: ^core/migrations
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.10.1
|
rev: 5.11.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
args: ["--profile", "black"]
|
args: ["--profile", "black"]
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 4.0.1
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args: [--max-line-length=88]
|
args: [--max-line-length=88]
|
||||||
exclude: ^core/migrations
|
exclude: ^core/migrations
|
||||||
|
- repo: https://github.com/rtts/djhtml
|
||||||
|
rev: v2.0.0
|
||||||
|
hooks:
|
||||||
|
- id: djhtml
|
||||||
|
args: [-t 2]
|
||||||
|
- id: djcss
|
||||||
|
exclude : ^core/static/css # slow
|
||||||
|
- id: djjs
|
||||||
|
exclude: ^core/static/js # slow
|
||||||
- repo: https://github.com/sirwart/ripsecrets.git
|
- repo: https://github.com/sirwart/ripsecrets.git
|
||||||
rev: v0.1.5
|
rev: v0.1.5
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
@ -10,12 +10,14 @@ import lib.logstash
|
||||||
import lib.markets
|
import lib.markets
|
||||||
import lib.money
|
import lib.money
|
||||||
import lib.transactions
|
import lib.transactions
|
||||||
|
|
||||||
# New style classes
|
# New style classes
|
||||||
import sinks
|
import sinks
|
||||||
import sources
|
import sources
|
||||||
import util
|
import util
|
||||||
import ux
|
import ux
|
||||||
from klein import Klein
|
from klein import Klein
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Other library imports
|
# Other library imports
|
||||||
import util
|
import util
|
||||||
from redis import StrictRedis
|
from redis import StrictRedis
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ from typing import Any, Dict, List, Optional, Union
|
||||||
|
|
||||||
import arrow
|
import arrow
|
||||||
import treq
|
import treq
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
import util
|
import util
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
@ -675,7 +676,6 @@ class AgoraDesk:
|
||||||
amount: Optional[float] = None,
|
amount: Optional[float] = None,
|
||||||
page: Optional[int] = None,
|
page: Optional[int] = None,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
# pylint: disable=too-many-arguments
|
||||||
|
|
||||||
add_to_api_method = ""
|
add_to_api_method = ""
|
||||||
|
|
|
@ -13,6 +13,7 @@ from urllib.parse import urlparse
|
||||||
import arrow
|
import arrow
|
||||||
import requests
|
import requests
|
||||||
import treq
|
import treq
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
import util
|
import util
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
@ -725,7 +726,6 @@ class LocalBitcoins:
|
||||||
amount: Optional[float] = None,
|
amount: Optional[float] = None,
|
||||||
page: Optional[int] = None,
|
page: Optional[int] = None,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
# pylint: disable=too-many-arguments
|
||||||
|
|
||||||
add_to_api_method = ""
|
add_to_api_method = ""
|
||||||
|
|
|
@ -3,6 +3,7 @@ import logging
|
||||||
from json import dumps
|
from json import dumps
|
||||||
|
|
||||||
import logstash
|
import logstash
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ from json import loads
|
||||||
|
|
||||||
import db
|
import db
|
||||||
import util
|
import util
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,10 @@ import util
|
||||||
from forex_python.converter import CurrencyRates
|
from forex_python.converter import CurrencyRates
|
||||||
from lib.logstash import send_logstash
|
from lib.logstash import send_logstash
|
||||||
from opensearchpy import OpenSearch
|
from opensearchpy import OpenSearch
|
||||||
|
|
||||||
# Other library imports
|
# Other library imports
|
||||||
from pycoingecko import CoinGeckoAPI
|
from pycoingecko import CoinGeckoAPI
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
|
|
@ -6,6 +6,7 @@ from string import ascii_uppercase
|
||||||
|
|
||||||
import db
|
import db
|
||||||
import util
|
import util
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
|
|
@ -6,6 +6,7 @@ import sinks.nordigen
|
||||||
import sinks.truelayer
|
import sinks.truelayer
|
||||||
import util
|
import util
|
||||||
from db import r
|
from db import r
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,18 @@ from json import dumps, loads
|
||||||
import requests
|
import requests
|
||||||
import treq
|
import treq
|
||||||
import util
|
import util
|
||||||
from lib.serde.nordigen import (AccessToken, AccountBalancesRoot,
|
from lib.serde.nordigen import (
|
||||||
AccountDetails, Agreement, Institutions,
|
AccessToken,
|
||||||
RequisitionResponse, Requisitions, TXRoot)
|
AccountBalancesRoot,
|
||||||
|
AccountDetails,
|
||||||
|
Agreement,
|
||||||
|
Institutions,
|
||||||
|
RequisitionResponse,
|
||||||
|
Requisitions,
|
||||||
|
TXRoot,
|
||||||
|
)
|
||||||
from serde import ValidationError
|
from serde import ValidationError
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from simplejson.errors import JSONDecodeError
|
from simplejson.errors import JSONDecodeError
|
||||||
|
|
|
@ -8,6 +8,7 @@ import requests
|
||||||
import util
|
import util
|
||||||
from lib.serde.truelayer import AccountBalancesRoot
|
from lib.serde.truelayer import AccountBalancesRoot
|
||||||
from serde import ValidationError
|
from serde import ValidationError
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from simplejson.errors import JSONDecodeError
|
from simplejson.errors import JSONDecodeError
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# Twisted/Klein imports
|
# Twisted/Klein imports
|
||||||
import sources.local
|
import sources.local
|
||||||
|
|
||||||
# Other library imports
|
# Other library imports
|
||||||
from pyotp import TOTP
|
from pyotp import TOTP
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# Twisted/Klein imports
|
# Twisted/Klein imports
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
# Other library imports
|
# Other library imports
|
||||||
from json import loads
|
from json import loads
|
||||||
from time import sleep # TODO: async
|
from time import sleep # TODO: async
|
||||||
|
@ -9,6 +10,7 @@ import util
|
||||||
from lib.agoradesk_py import AgoraDesk
|
from lib.agoradesk_py import AgoraDesk
|
||||||
from lib.localbitcoins_py import LocalBitcoins
|
from lib.localbitcoins_py import LocalBitcoins
|
||||||
from lib.logstash import send_logstash
|
from lib.logstash import send_logstash
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import sources.local
|
import sources.local
|
||||||
import util
|
import util
|
||||||
from pyotp import TOTP
|
from pyotp import TOTP
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ import settings
|
||||||
import sources
|
import sources
|
||||||
import sources.localbitcoins
|
import sources.localbitcoins
|
||||||
import util
|
import util
|
||||||
from tests.common import (cg_prices, expected_to_update_lbtc,
|
from tests.common import cg_prices, expected_to_update_lbtc, fake_public_ads_lbtc
|
||||||
fake_public_ads_lbtc)
|
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ import logging
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
from httpx import ReadError, ReadTimeout, RemoteProtocolError
|
from httpx import ReadError, ReadTimeout, RemoteProtocolError
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
@ -48,7 +49,6 @@ class ColoredFormatter(logging.Formatter):
|
||||||
|
|
||||||
|
|
||||||
def get_logger(name):
|
def get_logger(name):
|
||||||
|
|
||||||
# Define the logging format
|
# Define the logging format
|
||||||
FORMAT = "%(asctime)s %(levelname)18s $BOLD%(name)13s$RESET - %(message)s"
|
FORMAT = "%(asctime)s %(levelname)18s $BOLD%(name)13s$RESET - %(message)s"
|
||||||
COLOR_FORMAT = formatter_message(FORMAT, True)
|
COLOR_FORMAT = formatter_message(FORMAT, True)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
from json import dumps, loads
|
from json import dumps, loads
|
||||||
|
|
||||||
import db
|
import db
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# Twisted/Klein imports
|
# Twisted/Klein imports
|
||||||
import util
|
import util
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from twisted.internet import protocol, reactor, ssl
|
from twisted.internet import protocol, reactor, ssl
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Other library imports
|
# Other library imports
|
||||||
import requests
|
import requests
|
||||||
import util
|
import util
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ import time
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import util
|
import util
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue