Skip to content

Commit

Permalink
update deps (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgerstmayr authored Jan 26, 2025
1 parent c45503d commit 79393e8
Show file tree
Hide file tree
Showing 21 changed files with 1,980 additions and 1,613 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ max_line_length = 120
[*.{html,yaml}]
indent_size = 2

[*.ts]
indent_size = 4

[Makefile]
indent_style = tab
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ updates:
schedule:
interval: weekly

- package-ecosystem: npm
directory: /frontend
schedule:
interval: weekly
groups:
npm:
patterns:
- "*"
#- package-ecosystem: npm
# directory: /frontend
# schedule:
# interval: weekly
# groups:
# npm:
# patterns:
# - "*"

- package-ecosystem: pip
directory: /
Expand Down
16 changes: 7 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deps-py:
uv sync

deps-py-update:
uv pip list --outdated
uv lock --upgrade

deps: deps-js deps-py
Expand All @@ -36,17 +37,18 @@ test: test-js
run:
cd example; uv run fava example.beancount

run-debug:
cd example; uv run fava --debug example.beancount
dev:
npx concurrently --names fava,esbuild "cd example; PYTHONUNBUFFERED=1 uv run fava --debug example.beancount" "cd frontend; npm run watch"

lint:
cd frontend; npx tsc --noEmit
uv run mypy src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
uv run pylint src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
uv run mypy src/fava_dashboards scripts/format_js_in_dashboard.py
uv run pylint src/fava_dashboards scripts/format_js_in_dashboard.py

format:
cd frontend; npx prettier -w . ../src/fava_dashboards/templates/*.css
uv run black src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
-uv run ruff check --fix
uv run ruff format .
find example -name '*.beancount' -exec uv run bean-format -c 59 -o "{}" "{}" \;
./scripts/format_js_in_dashboard.py example/dashboards.yaml

Expand All @@ -56,8 +58,4 @@ ci:
make run &
make test
make format

# https://github.com/astral-sh/uv/issues/7533
git restore uv.lock

git diff --exit-code
5 changes: 4 additions & 1 deletion frontend/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ module.exports = {
width: 1680,
height: 1000,
},
headless: "new",
headless: true,
// chrome sandbox does not work inside container
args: ["--no-sandbox"],

// debug
// dumpio: true,
},
};
Loading

0 comments on commit 79393e8

Please sign in to comment.