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
- adds a pre-commit config
- includes prettier formatting configuration
- fixes title in README
- adds a CircleCI config
- sets default pre-commit stage to commit
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Speckle Repo Management Templates
1
+
# Speckle Pre-Commit Hooks
2
2
3
3
[](https://twitter.com/SpeckleSystems)[](https://discourse.speckle.works)[](https://speckle.systems)[](https://speckle.guide/dev/)
4
4
@@ -17,6 +17,7 @@ Comprehensive developer and user documentation for Speckle can be found in our:
17
17
## Usage
18
18
19
19
1. Add the following to your `.pre-commit-config.yaml` file:
@@ -27,11 +28,14 @@ Comprehensive developer and user documentation for Speckle can be found in our:
27
28
## Developing & Debugging
28
29
29
30
1. install:
30
-
-`git`
31
-
-`pre-commit`
31
+
32
+
-`git`
33
+
-`pre-commit`
34
+
32
35
1. Git clone this repository. Detailed steps on how to do that can be found on [GitHub's documentation](https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls).
33
36
1. In a terminal, `cd` into a directory containing code that you wish to try the pre-commit hook on. e.g. Speckle's `speckle-server` repository.
34
37
1. Run the following command to run a pre-commit hook directly from this repository. Replace `<pre-commit hook to run>` with the name of the hook you wish to run:
38
+
35
39
```shell
36
40
pre-commit try-repo ./path/to/cloned/specklesystems/pre-commit <pre-commit hook to run>
0 commit comments