{"id":35252133,"url":"https://github.com/theopsall/pre-commit-hooks","last_synced_at":"2026-04-08T19:31:47.670Z","repository":{"id":232156566,"uuid":"781547010","full_name":"theopsall/pre-commit-hooks","owner":"theopsall","description":"Streamline Python code quality with pre-configured hooks for black, isort, flake8, and autoflake, ensuring consistent and clean code in every commit","archived":false,"fork":false,"pushed_at":"2026-01-02T19:32:13.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-09T08:19:31.599Z","etag":null,"topics":["autoflake","black","flake8","isort","pre-commit","pre-commit-config","pre-commit-hook","python","python3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theopsall.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-03T15:33:09.000Z","updated_at":"2026-01-02T19:32:17.000Z","dependencies_parsed_at":"2026-01-03T08:09:40.944Z","dependency_job_id":null,"html_url":"https://github.com/theopsall/pre-commit-hooks","commit_stats":null,"previous_names":["theopsall/pre-commit-hooks"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/theopsall/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopsall%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopsall%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopsall%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopsall%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopsall","download_url":"https://codeload.github.com/theopsall/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopsall%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["autoflake","black","flake8","isort","pre-commit","pre-commit-config","pre-commit-hook","python","python3"],"created_at":"2025-12-30T06:58:06.944Z","updated_at":"2026-04-08T19:31:47.662Z","avatar_url":"https://github.com/theopsall.png","language":null,"readme":"# Pre-Commit Configuration for Python Projects\n\nThis repository contains a pre-commit configuration tailored for Python projects. It integrates tools like `black`, `isort`, `flake8`, and `autoflake` to enforce code quality and style consistency.\n\n## Description\n\nThis pre-commit setup is designed to streamline Python code formatting and linting processes. It ensures your code is clean, readable, and adheres to best practices before every commit.\n\n## Installation\n\nTo use this pre-commit configuration in your project, follow these steps:\n\n1. **Install pre-commit**:\n\n   If not already installed, install pre-commit globally with:\n\n   ```bash\n   pip install pre-commit\n   ```\n\n2. **Clone This Repository**:\n\n   Clone this repository into your local machine:\n\n   ```bash\n   git clone https://github.com/theopsall/pre-commit-hooks\n   ```\n\n3. Copy Configuration to Your Project:\n\n   Copy the .pre-commit-config.yaml file from this repository to the root of your project.\n\n4. Install Hooks:\n\n   Navigate to your project's root directory and install the pre-commit hooks:\n\n   ```bash\n   pre-commit install\n   ```\n\n## Usage\n\nOnce installed, pre-commit will run automatically on git commit. However, you can also run it manually on all files:\n\n- To run on all files:\n  ```bash\n  pre-commit run --all-files\n  ```\n- To format a specific file:\n  Run pre-commit for a specific file with:\n  ```bash\n  pre-commit run --files your-file.py\n  ```\n\n# Updating Hooks\n\nTo update the hooks to their latest versions:\n\n```bash\npre-commit autoupdate\n```\n\nHelpful medium [article](https://gatlenculp.medium.com/effortless-code-quality-the-ultimate-pre-commit-hooks-guide-for-2025-57ca501d9835)\n\nhttps://github.com/astral-sh/ruff-pre-commit\n\nhttps://github.com/astral-sh/uv-pre-commit","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopsall%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopsall%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopsall%2Fpre-commit-hooks/lists"}