Skip to content

Commit 68580b3

Browse files
committed
update readme
1 parent 451f139 commit 68580b3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,15 @@ For running test do:
191191
pip install pytest pytest-cov coveralls
192192
pytest --cov-report html --cov=mergin mergin/test/
193193
```
194+
195+
### Code style
196+
197+
Code is formatted with [black](https://github.com/psf/black) (line length 120), enforced in CI.
198+
To run the same check automatically before each commit, install the [pre-commit](https://pre-commit.com/) hooks once:
199+
200+
```bash
201+
pip install pre-commit
202+
pre-commit install
203+
```
204+
205+
The hook then runs on every `git commit`.

0 commit comments

Comments
 (0)