File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,13 @@ We run continuous integration on all PRs; all tests must be passing before the P
52
52
53
53
Several static checks are run on the codebase using the
54
54
[ pre-commit framework] ( https://pre-commit.com/ ) during CI. To execute the same
55
- checks locally, run ` pip install pre-commit ` and then ` pre-commit run --all-files ` .
55
+ checks locally, run:
56
+ ``` bash
57
+ pip install pre-commit> =2.8.0
58
+ pip install identify> ==2.1.3
59
+ pre-commit run --all-files
60
+ ```
61
+
56
62
Some hooks (for example, ` black ` ) will output the corrected version of the code;
57
63
others (like ` mypy ` ) may require more effort to fix. You can optionally run
58
64
` pre-commit install ` to install it as a git hook; after this it will run on all
@@ -64,8 +70,8 @@ All python code should be formatted with
64
70
[ ` black ` ] ( https://github.com/psf/black ) .
65
71
66
72
C# code is formatted using [ ` dotnet-format ` ] ( https://github.com/dotnet/format ) .
67
- You must have [ dotnet] ( https://dotnet.microsoft.com/download ) and
68
- ` dotnet-format ` installed first .
73
+ You must have [ dotnet] ( https://dotnet.microsoft.com/download ) installed first
74
+ (but don't need to install ` dotnet-format ` - ` pre-commit ` will do that for you) .
69
75
70
76
### Python type annotations
71
77
You can’t perform that action at this time.
0 commit comments