Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
skip: ["eslint"]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.0
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -24,7 +24,7 @@ repos:
require_serial: true
additional_dependencies:
- "[email protected]"
- "prettier-plugin-svelte@3.2.8"
- "prettier-plugin-svelte@3.3.2"
- "[email protected]"
- id: stylelint
name: stylelint
Expand Down
6 changes: 3 additions & 3 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ rich==13.9.4
# via twine
secretstorage==3.3.3
# via keyring
setuptools==75.5.0
setuptools==75.6.0
# via
# fava (pyproject.toml)
# pyinstaller
Expand Down Expand Up @@ -317,7 +317,7 @@ tox-uv==1.16.0
# via fava (pyproject.toml)
twine==5.1.1
# via fava (pyproject.toml)
types-setuptools==75.5.0.20241116
types-setuptools==75.5.0.20241122
# via fava (pyproject.toml)
types-simplejson==3.19.0.20240801
# via fava (pyproject.toml)
Expand All @@ -334,7 +334,7 @@ urllib3==2.2.3
# via
# requests
# twine
uv==0.5.2
uv==0.5.4
# via tox-uv
virtualenv==20.27.1
# via
Expand Down
50 changes: 25 additions & 25 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/test_core_fava_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def test_fava_options(load_doc_custom_entries: list[Custom]) -> None:
assert options.insert_entry == [
InsertEntryOption(
datetime.date(2016, 4, 14),
re.compile("Ausgaben:Test"),
re.compile(r"Ausgaben:Test"),
"<string>",
6,
),
]
assert options.show_closed_accounts
assert options.currency_column == 10
assert options.collapse_pattern == [re.compile("Account:Name")]
assert options.collapse_pattern == [re.compile(r"Account:Name")]
assert options.fiscal_year_end == FiscalYearEnd(1, 11)
assert options.conversion_currencies == ("USD", "EUR", "HOOLI")
assert options.default_file == str(Path("/some/file/name").absolute())
Expand Down
14 changes: 7 additions & 7 deletions tests/test_core_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ def test_insert_entry_transaction(tmp_path: Path) -> None:
# transaction dates are ignored.
options = [
InsertEntryOption(
date(2015, 1, 1), re.compile(".*:Food"), str(samplefile), 1
date(2015, 1, 1), re.compile(r".*:Food"), str(samplefile), 1
),
InsertEntryOption(
date(2015, 1, 2), re.compile(".*:FOOO"), str(samplefile), 1
date(2015, 1, 2), re.compile(r".*:FOOO"), str(samplefile), 1
),
InsertEntryOption(
date(2017, 1, 1), re.compile(".*:Food"), str(samplefile), 6
date(2017, 1, 1), re.compile(r".*:Food"), str(samplefile), 6
),
]
path, new_options = insert_entry(
Expand Down Expand Up @@ -338,10 +338,10 @@ def test_insert_entry_transaction(tmp_path: Path) -> None:
# the last posting doesn't match.
options = [
InsertEntryOption(
date(2015, 1, 1), re.compile(".*:Slate"), str(samplefile), 5
date(2015, 1, 1), re.compile(r".*:Slate"), str(samplefile), 5
),
InsertEntryOption(
date(2015, 1, 2), re.compile(".*:FOOO"), str(samplefile), 1
date(2015, 1, 2), re.compile(r".*:FOOO"), str(samplefile), 1
),
]
new_transaction = replace(transaction, narration="narr2")
Expand Down Expand Up @@ -377,10 +377,10 @@ def test_insert_entry_transaction(tmp_path: Path) -> None:
# case several of them match a posting.
options = [
InsertEntryOption(
date(2015, 1, 1), re.compile(".*:Food"), str(samplefile), 5
date(2015, 1, 1), re.compile(r".*:Food"), str(samplefile), 5
),
InsertEntryOption(
date(2015, 1, 2), re.compile(".*:Food"), str(samplefile), 1
date(2015, 1, 2), re.compile(r".*:Food"), str(samplefile), 1
),
]
new_transaction = replace(transaction, narration="narr3")
Expand Down