diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0599f97..aebb58e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,8 @@ exclude: '^docs/conf.py' repos: -- repo: git://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -18,18 +18,18 @@ repos: args: ['--fix=auto'] - repo: https://github.com/pycqa/isort - rev: 5.9.3 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: 21.8b0 + rev: 24.4.2 hooks: - id: black language_version: python3 -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 +- repo: https://github.com/PyCQA/flake8 + rev: 7.1.0 hooks: - id: flake8 diff --git a/CHANGES b/CHANGES index f9f6aed..79655d9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changelog ========= +v0.6 (2024-12-27) +----------------- + +Upgrade to beancount 3 and beangulp. + v0.3 (2021-02-20) ----------------- diff --git a/setup.cfg b/setup.cfg index 069ef3d..0e2dd27 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,10 +31,11 @@ packages = find: setup_requires = setuptools_scm install_requires = - beancount>=2.0.0 + beancount>=3 scikit-learn>=0.19 numpy>=1.8.2 scipy>=0.13.3 + beangulp [options.packages.find] exclude = diff --git a/smart_importer/detector.py b/smart_importer/detector.py index b2e92a8..fff20b7 100644 --- a/smart_importer/detector.py +++ b/smart_importer/detector.py @@ -1,7 +1,8 @@ """Duplicate detector hook.""" + import logging -from beancount.ingest import similar +from beangulp import similar from smart_importer.hooks import ImporterHook