mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
1.1 KiB
1.1 KiB
Developers Guide
How to run
Building TypeScript files
Node.js v14.14.0 is required to build TypeScript files.
$ npm install
$ npm run build:dev
Watch for files changes
$ npm run watch
Production builds
$ npm run build:prd
Running dashboard server
$ pip install .
$ optuna-dashboard sqlite:///db.sqlite3
Running tests, lint checks and formatters
Running Python unit tests
$ python setup.py test
Linters (flake8, black and mypy)
$ pip install .[lint]
$ flake8
$ black --check .
$ mypy .
Auto-formatting TypeScript files (by prettier)
$ npm run fmt
Auto-formatting Python files (by black)
$ black .
Release the new version
The release process(building TypeScript files, packaging Python distributions and uploading to PyPI) is fully automated by GitHub Actions.
- Replace
optuna_dashboard.version.__version__to the next version. - Create a git tag and push it to GitHub.