Merge pull request #218 from optuna/contributing-fmt

Update CONTRIBUTING.md
This commit is contained in:
Masashi Shibata
2022-04-24 14:21:43 +09:00
committed by GitHub
+3 -13
View File
@@ -47,21 +47,10 @@ $ docker run -it --rm -p 8080:8080 -v `PWD`:/app -w /app sqlite:///db.sqlite3
```
$ pip install -e .
$ optuna-dashboard sqlite:///db.sqlite3
```
<details>
<summary>Environment variables for development</summary>
If you set `OPTUNA_DASHBOARD_DEBUG=1`, the server will automatically restart when the source codes are changed.
```
$ OPTUNA_DASHBOARD_DEBUG=1 optuna-dashboard sqlite:///db.sqlite3
```
</details>
Note that `OPTUNA_DASHBOARD_DEBUG=1` makes the server will automatically restart when the source codes are changed.
## Running tests, lint checks and formatters
@@ -118,10 +107,11 @@ $ tox -e flake8 -e black -e mypy
$ npm run fmt
```
### Auto-formatting Python files (by black)
### Auto-formatting Python files
```
$ black .
$ isort .
```