File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ FastAPI-fastkit uses following stacks:
23
23
- Python 3.12.4
24
24
- click 8.1.7
25
25
- rich 13.9.2
26
+ - pre-commit
26
27
27
28
### Local dev configuration
28
29
@@ -85,6 +86,19 @@ git commit -m '[FEAT] Add new FastAPI template for microservices'
85
86
git commit -m ' [FIX] Fix virtual environment activation in Windows'
86
87
```
87
88
89
+ #### Pre-commit
90
+
91
+ You can use pre-commit to automatically run linting, formatting, and type checking before committing.
92
+
93
+ ``` bash
94
+ # Install pre-commit hooks
95
+ pre-commit install
96
+ ```
97
+
98
+ After installing pre-commit hooks, the pre-commit hooks will be run automatically when you commit.
99
+
100
+ Check the pre-commit's output when you making new commit, and fix the code if there are any errors.
101
+
88
102
## Documentation
89
103
90
104
Follow these documentation guidelines:
You can’t perform that action at this time.
0 commit comments