{"id":16957855,"url":"https://github.com/ahamez/pre-commit-elixir-hooks","last_synced_at":"2025-03-21T14:16:47.292Z","repository":{"id":140512649,"uuid":"582942489","full_name":"ahamez/pre-commit-elixir-hooks","owner":"ahamez","description":"Elixir hooks for pre-commit","archived":false,"fork":false,"pushed_at":"2024-10-07T20:32:04.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T09:42:04.073Z","etag":null,"topics":["elixir","git-hooks","pre-commit-hooks"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahamez.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,"governance":null}},"created_at":"2022-12-28T09:54:26.000Z","updated_at":"2024-10-07T20:32:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ff493b6-5665-49d3-8bbd-9e3df3d45876","html_url":"https://github.com/ahamez/pre-commit-elixir-hooks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahamez%2Fpre-commit-elixir-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahamez%2Fpre-commit-elixir-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahamez%2Fpre-commit-elixir-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahamez%2Fpre-commit-elixir-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahamez","download_url":"https://codeload.github.com/ahamez/pre-commit-elixir-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244811375,"owners_count":20514276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["elixir","git-hooks","pre-commit-hooks"],"created_at":"2024-10-13T22:20:12.249Z","updated_at":"2025-03-21T14:16:47.248Z","avatar_url":"https://github.com/ahamez.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-elixir-hooks\n\nGit hooks for Elixir using [pre-commit](https://pre-commit.com).\n\n## Usage\n\nFirst, make sure that `pre-commit` is installed and that `mix` is available in `PATH`.\n\nConfigure hooks as follows:\n\n```yaml\nrepos:\n  - repo: https://github.com/ahamez/pre-commit-elixir-hooks.git\n    rev: v1.0.0\n    hooks:\n      - id: elixir-mix-format\n      - id: elixir-mix-credo\n      - id: elixir-mix-deps-check-unused\n      - id: elixir-mix-dialyzer\n      - id: elixir-mix-test\n        args: [\"--exclude\", \"some_tag\"]\n```\n\nThen, install hooks:\n\n```sh\npre-commit install\n```\n\n## Usage with different stages\n\nAs some actions are slow to perform (like `mix dialyzer`), you can confine them to specific stages, like `pre-push`:\n\n```yaml\nrepos:\n  - repo: https://github.com/ahamez/pre-commit-elixir-hooks.git\n    rev: v1.0.0\n    hooks:\n      - id: elixir-mix-format\n        stages: [commit]\n      - id: elixir-mix-credo\n        stages: [commit]\n      - id: elixir-mix-deps-check-unused\n        stages: [push]\n      - id: elixir-mix-dialyzer\n        stages: [push]\n      - id: elixir-mix-test\n        args: [\"--exclude\", \"some_tag\"]\n        stages: [push]\n```\n\nThen, install hooks:\n\n```sh\npre-commit install \u0026\u0026 pre-commit install -t pre-push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahamez%2Fpre-commit-elixir-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahamez%2Fpre-commit-elixir-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahamez%2Fpre-commit-elixir-hooks/lists"}