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
Commits
5bf66265
Commit
5bf66265
authored
1 year ago
by
Hans Fangohr
Committed by
Ashwin Kumar Karnad
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply changes from Hanss changes
parent
557f2d02
No related branches found
No related tags found
1 merge request
!78
Add pre-commit hooks
Pipeline
#373064
canceled
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
development.rst
+4
-4
4 additions, 4 deletions
development.rst
with
4 additions
and
4 deletions
development.rst
+
4
−
4
View file @
5bf66265
...
@@ -4,15 +4,15 @@ This section is for developers wanting to contribute to the project.
...
@@ -4,15 +4,15 @@ This section is for developers wanting to contribute to the project.
Setup pre-commit hooks
Setup pre-commit hooks
----------------------
----------------------
The project uses
[
pre-commit
](
https://pre-commit.com/
)
to run some checks before committing code.
The project uses
`
pre-commit
<
https://pre-commit.com/
>`__
to run some checks before committing code.
Install pre-commit by running the following command:
Install pre-commit by running the following command:
:
pip install pre-commit
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
pre-commit install
Then every time you commit, pre-commit will run all checks defined in `.pre-commit-config.yaml`.
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
pre-commit run --all-files
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