{"id":15117996,"url":"https://github.com/codingjoe/relint","last_synced_at":"2025-08-20T12:32:00.211Z","repository":{"id":31346508,"uuid":"127479533","full_name":"codingjoe/relint","owner":"codingjoe","description":"Write your own linting rules using regular expressions.","archived":false,"fork":false,"pushed_at":"2024-04-29T11:47:35.000Z","size":70,"stargazers_count":49,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-05-01T12:54:41.763Z","etag":null,"topics":["hacktoberfest","lint","linter","qa","qatools","regex"],"latest_commit_sha":null,"homepage":"","language":"Python","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/codingjoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["codingjoe","anapaulagomes","amureki"],"custom":"https://www.paypal.me/codingjoe"}},"created_at":"2018-03-30T22:45:40.000Z","updated_at":"2024-06-11T21:46:05.853Z","dependencies_parsed_at":"2023-12-11T13:12:18.566Z","dependency_job_id":"3f267ba8-b8a2-4e70-a7fc-77bd76caf923","html_url":"https://github.com/codingjoe/relint","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingjoe%2Frelint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingjoe%2Frelint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingjoe%2Frelint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingjoe%2Frelint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingjoe","download_url":"https://codeload.github.com/codingjoe/relint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423564,"owners_count":18223435,"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":["hacktoberfest","lint","linter","qa","qatools","regex"],"created_at":"2024-09-26T01:46:05.990Z","updated_at":"2024-12-19T11:12:51.079Z","avatar_url":"https://github.com/codingjoe.png","language":"Python","readme":"![/(re)lint/](https://repository-images.githubusercontent.com/127479533/061e8bfe-f0e0-4f0b-857b-eae82f9df6af)\n\n# reLint\n\n**Regular Expression Linter**\n\n*Write your own linting rules using regular expressions.*\n\n[![PyPi Version](https://img.shields.io/pypi/v/relint.svg)](https://pypi.python.org/pypi/relint/)\n[![Test Coverage](https://codecov.io/gh/codingjoe/relint/branch/main/graph/badge.svg)](https://codecov.io/gh/codingjoe/relint)\n[![GitHub License](https://img.shields.io/github/license/codingjoe/relint)](https://raw.githubusercontent.com/codingjoe/relint/main/LICENSE)\n\n## Installation\n\n```shell-session\npython3 -m pip install relint\n# or, if you have super advanced linting expressions\npython3 -m pip install \"relint[regex]\"\n```\n\n## [Examples \u0026 Recipes – The reLint Cookbook](https://github.com/codingjoe/relint/blob/main/COOKBOOK.md)\n\n## Usage\n\nYou can write your own regular rules in a YAML file, like so:\n\n```yaml\n- name: No ToDo\n  pattern: '(?i)todo' # case insensitive flag\n  hint: Get it done right away!\n  filePattern: .*\\.(py|js)\n  error: false\n```\n\nThe `name` attribute is the name of your linter, the `pattern` can be\nany regular expression. The linter does lint entire files, therefore\nyour expressions can match multiple lines and include newlines.\n\nYou can narrow down the file types your linter should be working with,\nby providing the optional `filePattern` attribute. The default is `.*`.\n\nThe optional `error` attribute allows you to only show a warning but not\nexit with a bad (non-zero) exit code. The default is `true`.\n\nThe following command will lint all files in the current directory:\n\n```shell\nrelint -c .relint.yml FILE FILE2 ...\n```\n\nThe default configuration file name is `.relint.yml` within your working\ndirectory, but you can provide any YAML or JSON file.\n\nIf you prefer linting changed files (cached on git) you can use the\noption `--diff [-d]` or `--git-diff [-g]`:\n\n```shell\ngit diff --unified=0 | relint my_file.py --diff\n```\n\n### pre-commit\n\nYou can automate the linting process by adding a\n[pre-commit](https://pre-commit.com/) hook to your project. Add the\nfollowing entry to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/codingjoe/relint\n  rev: 1.4.0\n  hooks:\n    - id: relint\n      args: [-W]  # optional, if you want to fail on warnings during commit\n```\n","funding_links":["https://github.com/sponsors/codingjoe","https://github.com/sponsors/anapaulagomes","https://github.com/sponsors/amureki","https://www.paypal.me/codingjoe"],"categories":["Python","Multiple languages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingjoe%2Frelint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingjoe%2Frelint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingjoe%2Frelint/lists"}