GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - urlstechie/pre-commit: Testing creating a pre-commit hook using urlchecker (as is)

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.pre-commit-hooks.yaml
.pre-commit-hooks.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
urlchecker_check.py
urlchecker_check.py
 
 

Repository files navigation

urlchecker pre-commit

You can use urlchecker-python with pre-commit!

Setup

Add the following entry to your .pre-commit-config.yaml in the root of your repository:

repos:
-   repo: https://github.com/urlstechie/pre-commit
    rev: 0.0.11
    hooks:
    -   id: urlchecker-check
        additional_dependencies: [urlchecker>=0.0.28]

You can add additional args (those you would add to the check command) to further customize the run:

repos:
-   repo: https://github.com/urlstechie/pre-commit
    rev: 0.0.11
    hooks:
    -   id: urlchecker-check
        additional_dependencies: [urlchecker>=0.0.28]

Make sure that you get the latest version from releases. Note that the --files argument that previously accepted patterns for urlchecker for this module is instead --patterns. The reason is because pre-commit is already going to provide a list of filenames to check verbatim with the commit, and your additional specification of --patterns is primarily to further filter this list.

Run

And then you can install and run!

$ pre-commit install
$ git commit -a -s -m 'testing a commit'
[INFO] Initializing environment for https://github.com/urlstechie/pre-commit.
[INFO] Initializing environment for https://github.com/urlstechie/pre-commit:urlchecker>=0.0.28.
[INFO] Installing environment for https://github.com/urlstechie/pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
urlchecker...............................................................Passed
[main 5fb40a8] testing a commit
 1 file changed, 1 insertion(+)

Support

If you need help, or want to suggest a project for the organization, please open an issue

About

Testing creating a pre-commit hook using urlchecker (as is)

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.