[GODRIVER-3018] Use pre-commit for development Created: 18/Oct/23  Updated: 21/Dec/23  Resolved: 06/Nov/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Steve Silvester Assignee: Steve Silvester
Resolution: Done Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by GODRIVER-2908 Add a framework to mark a server vers... Closed
is duplicated by GODRIVER-3019 Add shell script linter Closed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

In the Python team we have been using pre-commit for over a year and it has aided in our local development. pre-commit works by installing a git hook that runs checks on changed files.

For the go team, we could consider using many of the built-in checks, including check-yaml, as well as golang specific hooks like https://github.com/TekWizely/pre-commit-golang.



 Comments   
Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Steven Silvester', 'email': 'steven.silvester@ieee.org', 'username': 'blink1073'}

Message: GODRIVER-3018 [master] Use pre-commit for development (#1444)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/81bc5217ffd3cff9d5654bb2656fe78d3df88488

Comment by Steve Silvester [ 31/Oct/23 ]

https://github.com/mongodb/mongo-go-driver/pull/1443

Generated at Thu Feb 08 08:39:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.