Skip to content

Commit 2d1c580

Browse files
committed
update readme
1 parent ca5a23b commit 2d1c580

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
@@ -192,3 +192,15 @@ For running test do:
192192
pip install pytest pytest-cov coveralls
193193
pytest --cov-report html --cov=mergin mergin/test/
194194
```
195+
196+
### Code style
197+
198+
Code is formatted with [black](https://github.com/psf/black) (line length 120), enforced in CI.
199+
To run the same check automatically before each commit, install the [pre-commit](https://pre-commit.com/) hooks once:
200+
201+
```bash
202+
pip install pre-commit
203+
pre-commit install
204+
```
205+
206+
The hook then runs on every `git commit`.

0 commit comments

Comments
 (0)