Skip to content

Commit

Permalink
change project layout to src-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgerstmayr committed Sep 11, 2023
1 parent 7eb6635 commit 0cf147a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
dist
__pycache__
*.egg-info
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test: frontend/node_modules

.PHONY: format
format:
prettier -w frontend fava_dashboards/templates/*.css
black fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
prettier -w frontend src/fava_dashboards/templates/*.css
black src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
./scripts/format_js_in_dashboard.py example/dashboards.yaml
find . -name '*.beancount' -exec bean-format -c 59 -o "{}" "{}" \;
find example -name '*.beancount' -exec bean-format -c 59 -o "{}" "{}" \;
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "fava-dashboards",
"scripts": {
"build": "esbuild src/extension.ts --bundle --format=esm --outfile=../fava_dashboards/FavaDashboards.js --minify",
"watch": "esbuild src/extension.ts --bundle --format=esm --outfile=../fava_dashboards/FavaDashboards.js --watch",
"build": "esbuild src/extension.ts --bundle --format=esm --outfile=../src/fava_dashboards/FavaDashboards.js --minify",
"watch": "esbuild src/extension.ts --bundle --format=esm --outfile=../src/fava_dashboards/FavaDashboards.js --watch",
"test": "jest"
},
"devDependencies": {
Expand Down
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ url = https://github.com/andreasgerstmayr/fava-dashboards
[options]
zip_safe = False
include_package_data = True
packages = find:
package_dir =
=src
packages = find_namespace:
python_requires = >=3.6
setup_requires =
setuptools_scm
install_requires =
fava>=1.26
beancount
pyyaml

[options.packages.find]
where = src
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0cf147a

Please sign in to comment.