{"id":20056830,"url":"https://github.com/100automations/github-actions","last_synced_at":"2026-06-05T18:32:20.691Z","repository":{"id":55937158,"uuid":"281572068","full_name":"100Automations/github-actions","owner":"100Automations","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-05T22:47:15.000Z","size":36,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-27T17:13:22.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/100Automations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-22T04:13:59.000Z","updated_at":"2020-09-05T06:45:12.000Z","dependencies_parsed_at":"2022-08-15T09:50:43.029Z","dependency_job_id":null,"html_url":"https://github.com/100Automations/github-actions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/100Automations/github-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fgithub-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fgithub-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fgithub-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fgithub-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/100Automations","download_url":"https://codeload.github.com/100Automations/github-actions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fgithub-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33953717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T12:56:42.994Z","updated_at":"2026-06-05T18:32:20.625Z","avatar_url":"https://github.com/100Automations.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Actions\n\n## pre-commit hooks\n\n### What is a Pre-Commit Hook?\n\nPre-commit hooks are a simple way to check your code for any issues before committing your code to Github. It could be something as simple as removing extra spaces from the end of a file to verifying that the code you want to commit is valid Python or does not contain any secrets or access tokens. Pre-Commit Hooks can be written in a number of languages including Python, Ruby, and Rust but we're going to focus on Python for this demo. \n\n###  Setup\n\n##### With `pip`\n\n`pip install pre-commit`\nor \n`pip3 install pre-commit`\n\n\n##### With `conda`\n\n`conda install -c conda-forge pre-commit`\n\n\n### Pre-Written Hooks\n\nOne of the most useful aspects is the ability to easily use pre-written hooks in your own repo. \n\n\n##### Adding Pre-Commit Hooks to your Repo\n\nTo add, you create a file called `.pre-commit-config.yaml` and save it in the root of your repo.    \n\nExample: \n\nrepos:\n-   repo: https://github.com/path-to-repo-with-hook # url to repo containing hook.       \n    rev: v2.3.0       \n    hooks: # list of hooks to use.  \n    -   id: hook-i-want.  \n        description: Looks at file size, max set to 250kb.    \n        args: [--maxkb=250].  \n\n\n### Examples of Useful Pre-Commit Hooks\n\nExamples and notes in `.pre-commit-config.yaml`\n\n### Custom Pre-Commit-Hooks\n\n### Using Hooks\n\nAdd the `.pre-commit-config.yaml` to the root of your directory.      \nCreate a `requirements.txt` file and add `pre-commit`.       \nrun `pre-commit install` from the root of your repo on the command line to add the hooks to your `.git/`.     \n\n### More Resources\n\n[More Information on Hooks](https://githooks.com/)\n\n[More Pre-Built Pre-Commit Hooks](https://github.com/pre-commit/pre-commit-hooks)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100automations%2Fgithub-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F100automations%2Fgithub-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100automations%2Fgithub-actions/lists"}