pre-commit hooks customised by Speckle. https://pre-commit.com/
Перейти к файлу
Iain Sproat 20883c95e8
fix(ggshield-not-ci): correct logic and print when skipping (#4)
2022-08-25 18:00:42 +01:00
.circleci Adds a pre-commit config (#3) 2022-08-25 13:04:22 +01:00
.github Initial commit 2022-08-25 09:55:27 +01:00
hooks fix(ggshield-not-ci): correct logic and print when skipping (#4) 2022-08-25 18:00:42 +01:00
.pre-commit-config.yaml Adds a pre-commit config (#3) 2022-08-25 13:04:22 +01:00
.pre-commit-hooks.yaml Moves logic for hook to bash script 2022-08-25 12:11:01 +01:00
.prettierrc Adds a pre-commit config (#3) 2022-08-25 13:04:22 +01:00
LICENSE Initial commit 2022-08-25 09:55:27 +01:00
README.md Adds a pre-commit config (#3) 2022-08-25 13:04:22 +01:00
SECURITY.md Initial commit 2022-08-25 09:55:27 +01:00

README.md

Speckle Pre-Commit Hooks

Twitter Follow Community forum users website docs

Introduction

This repository contains pre-commit hooks that are maintained by the Speckle team and Speckle's amazing community. The pre-commit hooks that belong here are useful for contributing to Speckle.

This repository is for contributor's to Speckle. If you're not a contributor (though, you should be!) and arrived here, you were probably looking for our website or our documentation.

Documentation

Comprehensive developer and user documentation for Speckle can be found in our:

📚 Speckle Docs website

Usage

  1. Add the following to your .pre-commit-config.yaml file:
- repo: https://github.com/specklesystems/pre-commit
    rev: '0.1.0'
    hooks:
      - id: ggshield-not-ci

Developing & Debugging

  1. install:
  • git
  • pre-commit
  1. Git clone this repository. Detailed steps on how to do that can be found on GitHub's documentation.
  2. 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.
  3. 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:
pre-commit try-repo ./path/to/cloned/specklesystems/pre-commit <pre-commit hook to run>

Contributing

Please make sure you read the contribution guidelines and code of conduct for an overview of the practices we try to follow.

Community

The Speckle Community hangs out on the forum, do join and introduce yourself & feel free to ask us questions!

Security

For any security vulnerabilities or concerns, please contact us directly at security[at]speckle.systems.

License

Unless otherwise described, the code in this repository is licensed under the Apache-2.0 License. Please note that some modules, extensions or code herein might be otherwise licensed. This is indicated either in the root of the containing folder under a different license file, or in the respective file's header. If you have any questions, don't hesitate to get in touch with us via email.