Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
c1df3c62
Commit
c1df3c62
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
doc(dev)
#1427
: Document pre-commit usage
parent
20dac018
Branches
Branches containing commit
No related tags found
1 merge request
!1396
#1427: Introduce rust and gitlab-ci-linter pre-commit hooks
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/dev/setup_env_dev.md
+14
-0
14 additions, 0 deletions
doc/dev/setup_env_dev.md
with
14 additions
and
0 deletions
doc/dev/setup_env_dev.md
+
14
−
0
View file @
c1df3c62
...
...
@@ -82,6 +82,20 @@ If all the tests are successful, the command ends like this:
Done
in
43.80s.
```
### Pre-commit hooks
We are using
[
`pre-commit`
](
https://pre-commit.com/
)
tool to perform checks on staged changes before committing.
We are using it for
`fmt`
formatting,
`clippy`
linter,
`cargo check`
and
`gitlab-ci`
linting.
To install the
`pre-commit`
, run:
```
bash
sudo
apt
install
pre-commit
```
Install the hooks:
```
bash
duniter> pre-commit
install
```
### Configure your IDE
Personally, I use VsCodium/VsCode, so I give the configuration for this IDE.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment