Skip to content

Commit

Permalink
configure linters (#12)
Browse files Browse the repository at this point in the history
* configure linters

* fix linter
  • Loading branch information
andreasgerstmayr authored Mar 17, 2024
1 parent b044207 commit 66f0f35
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 121 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ run:
run-debug:
cd example; pipenv run fava --debug example.beancount

lint:
pipenv run mypy src/fava_portfolio_returns/__init__.py
pipenv run pylint src/fava_portfolio_returns/__init__.py

format:
cd frontend; npx prettier -w . ../src/fava_portfolio_returns/templates/*.css
cd example; pipenv run black ../src/fava_portfolio_returns/__init__.py
cd example; find . -name '*.beancount' -exec pipenv run bean-format -c 59 -o "{}" "{}" \;
pipenv run black src/fava_portfolio_returns/__init__.py
find example -name '*.beancount' -exec pipenv run bean-format -c 59 -o "{}" "{}" \;

ci:
make lint
make build-js
make run &
make test-js
Expand Down
4 changes: 3 additions & 1 deletion example/Pipfile → Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ verify_ssl = true
name = "pypi"

[packages]
fava-portfolio-returns = {editable = true, path = "./.."}
fava-portfolio-returns = {editable = true, path = "."}

[dev-packages]
black = "*"
mypy = "*"
pylint = "*"

[requires]
python_version = "3.11"
Loading

0 comments on commit 66f0f35

Please sign in to comment.