{"id":15911220,"url":"https://github.com/laactech/pre-commit-config-latest","last_synced_at":"2025-08-14T23:32:03.829Z","repository":{"id":233736986,"uuid":"302040123","full_name":"laactech/pre-commit-config-latest","owner":"laactech","description":"Configuration files for automatically linting and formatting Python code on git commit","archived":false,"fork":false,"pushed_at":"2021-11-01T16:43:45.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T14:39:16.839Z","etag":null,"topics":["bandit","black","flake8","formatting","isort","linting","mypy","pre-commit","python"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laactech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-10-07T13:10:46.000Z","updated_at":"2022-08-22T16:38:52.000Z","dependencies_parsed_at":"2024-04-17T08:42:06.240Z","dependency_job_id":"2458ba7c-a1ad-4b19-820a-9978805f0ed7","html_url":"https://github.com/laactech/pre-commit-config-latest","commit_stats":null,"previous_names":["laactech/pre-commit-config-latest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laactech%2Fpre-commit-config-latest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laactech%2Fpre-commit-config-latest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laactech%2Fpre-commit-config-latest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laactech%2Fpre-commit-config-latest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laactech","download_url":"https://codeload.github.com/laactech/pre-commit-config-latest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229875868,"owners_count":18137910,"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":["bandit","black","flake8","formatting","isort","linting","mypy","pre-commit","python"],"created_at":"2024-10-06T15:40:40.763Z","updated_at":"2024-12-15T21:21:00.693Z","avatar_url":"https://github.com/laactech.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-commit Config Latest\n\n[pre-commit](https://pre-commit.com/) is used to install Python code linting and\nformatting tools:\n* [flake8](http://flake8.pycqa.org/en/latest/) a Python style guide linter\n* [bandit](https://github.com/PyCQA/bandit) a Python security vulnerability linter\n* [black](https://black.readthedocs.io/en/stable/) a Python automatic code formatter\n* [isort](https://github.com/timothycrosley/isort) a Python automatic import formatter\n* [mypy](https://github.com/python/mypy) an optional type checker for Python\n\n## Getting started\n**Requires `python \u003e=3.6`, `pre-commit\u003e=1.14` and a `git` repository**\n\n1. Copy the following files to the root of your Python project's git repository:\n    * .pre-commit-config.yaml\n    * .flake8\n    * pyproject.toml\n1. `git add` the previous files to your git repository\n1. Run `pip install pre-commit`\n1. Add pre-commit to your project's requirements\n1. Run `pre-commit install`\n1. `git commit` the new configuration files\n1. Run `pre-commit run -a` to lint and format your entire project\n1. `git add` and `git commit` the formatting and linting changes once you've resolved any\nissues\n\nNow on every commit, `pre-commit` will use a git hook to run the tools.\n**Warning: the first commit will take some time because the tools are being installed by\n`pre-commit`**\n\n## Resolving failed commits\n\n* If `black` or `isort` fail, they have reformatted your code. `git add` and `git commit`\nthe changes.\n* If `flake8`, `bandit`, or `mypy` fail, they will output a complaint and where that complaint exists.\nFix the code that they complain about and `git add` and `git commit` the changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaactech%2Fpre-commit-config-latest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaactech%2Fpre-commit-config-latest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaactech%2Fpre-commit-config-latest/lists"}