You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,9 @@ automatically [pip](https://pip.pypa.io/en/stable/) as well.
46
46
47
47
48
48
Remember to do it with Python 3.
49
-
49
+
50
+
- Run `pre-commit install`. For more details, check out Development > Git hooks.
51
+
50
52
### How to use it
51
53
- Set the env var `FLASK_APP` to `time_tracker_api` and start the app:
52
54
@@ -74,6 +76,16 @@ DateTime strings in Azure Cosmos DB is `YYYY-MM-DDThh:mm:ss.fffffffZ` which foll
74
76
75
77
## Development
76
78
79
+
### Git hooks
80
+
We use [pre-commit](https://github.com/pre-commit/pre-commit) library to manage local git hooks, as developers we just need to run in our virtual environment:
81
+
82
+
```
83
+
pre-commit install
84
+
```
85
+
With this command the library will take configuration from `.pre-commit-config.yaml` and will set up the hooks by us.
86
+
87
+
Currently, we only have a hook to enforce semantic commit message.
88
+
77
89
### Test
78
90
We are using [Pytest](https://docs.pytest.org/en/latest/index.html) for tests. The tests are located in the package
79
91
`tests` and use the [conventions for python test discovery](https://docs.pytest.org/en/latest/goodpractices.html#test-discovery).
0 commit comments