Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
MPSD Computational Science
mpsd-software-manager
Merge requests
!78
Add pre-commit hooks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add pre-commit hooks
add-pre-commit-hook
into
main
Overview
18
Commits
16
Pipelines
12
Changes
4
Merged
Ashwin Kumar Karnad
requested to merge
add-pre-commit-hook
into
main
1 year ago
Overview
11
Commits
16
Pipelines
12
Changes
1
Expand
0
0
Merge request reports
Compare
version 7
version 11
cfd060a7
1 year ago
version 10
117d781f
1 year ago
version 9
9c609105
1 year ago
version 8
5bf66265
1 year ago
version 7
557f2d02
1 year ago
version 6
54109267
1 year ago
version 5
760070da
1 year ago
version 4
1603ed87
1 year ago
version 3
f5dc121f
1 year ago
version 2
692798ec
1 year ago
version 1
b34029b2
1 year ago
main (base)
and
version 8
latest version
490c853b
16 commits,
1 year ago
version 11
cfd060a7
12 commits,
1 year ago
version 10
117d781f
10 commits,
1 year ago
version 9
9c609105
9 commits,
1 year ago
version 8
5bf66265
8 commits,
1 year ago
version 7
557f2d02
7 commits,
1 year ago
version 6
54109267
6 commits,
1 year ago
version 5
760070da
5 commits,
1 year ago
version 4
1603ed87
4 commits,
1 year ago
version 3
f5dc121f
3 commits,
1 year ago
version 2
692798ec
2 commits,
1 year ago
version 1
b34029b2
1 commit,
1 year ago
Show latest version
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
development.rst
+
4
−
4
Options
@@ -4,15 +4,15 @@ This section is for developers wanting to contribute to the project.
Setup pre-commit hooks
----------------------
The project uses
[
pre-commit
](
https://pre-commit.com/
)
to run some checks before committing code.
Install pre-commit by running the following command:
The project uses
`
pre-commit
<
https://pre-commit.com/
>`__
to run some checks before committing code.
Install pre-commit by running the following command:
:
pip install pre-commit
To setup the pre-commit hooks, run the following command from the root of the project:
To setup the pre-commit hooks, run the following command from the root of the project:
:
pre-commit install
Then every time you commit, pre-commit will run all checks defined in `.pre-commit-config.yaml`.
you can run the pre-commit checks manually by running:
you can run the pre-commit checks manually by running:
:
pre-commit run --all-files
Loading