Remove libcudacxx/test/ from ruff exclude list:6d22b1e(trivial/tiny) ruff auto-fixes (NO manual changes):e35b121(Do not review) ruff --unsafe-fixes auto-fixes (NO manual changes):8ae58da(Please review) All manual fixes in one commit:1e8a957(Please review) The cleanup uncovered these ov...
- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.7.0 hooks: # Run the linter. - id: ruff args: [--fix] # Run the formatter. - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: - id: check-yaml 20 ch...
1.pre-commit 简介 Git 提供了一种称为钩子(hook)的特性,帮助我们在关键时刻自动执行自定义脚本。 其中,名为pre-commit的钩子会在每次 commit 之前运行,能够作为保障代码质量的工具。 2.使用 pre-commit 在项目的根目录下,找到.git/hooks文件夹,这个文件夹中存放的就是各种钩子脚本。
https://github.com/alessandrojcm/commitlint-pre-commit-hook:这个库提供了一个commitlint的pre-commit hook,用于检查你的commit message是否符合一定的规范。配置中的hook有: commitlint:对commit message进行规范性检查。 https://github.com/charliermarsh/ruff-pre-commit:这个库提供了一个ruff的pre-commit hook,其...
- repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.9 hooks: - id: ruff name: "Ruff linter" args: [ netbox/ ] - repo: local hooks: - id: django-check name: "Django system check" description: "Run Django's internal check for common problems" entry: ...
asottile/(others): a few other repos by the pre-commit creator psf/black: The uncompromising Python code formatter hhatto/autopep8: automatically fixes PEP8 violations astral-sh/ruff-pre-commit: the ruff linter and formatter for python
[python] args: - --in-place - repo: https://github.com/psf/black rev: "23.3.0" hooks: - id: black alias: reformat types: [python] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.0.292 hooks: - id: ruff alias: lint types: [python] - repo: https://...
- repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.7.2 hooks: - id: ruff name: Lint (Ruff) - AutoGPT Platform - Backend alias: ruff-lint-platform-backend files: ^autogpt_platform/backend/ args: [--fix] - id: ruff name: Lint (Ruff) - AutoGPT Platform ...
* precommit: ruff-format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual update * order * mypy ...
- repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.7.0 hooks: - id: ruff args: - --fix - id: ruff-format 15 changes: 15 additions & 0 deletions 15 ruff.toml Original file line numberDiff line numberDiff line change @@ -0,0 +1,15 @@ indent-width = 4 line-lengt...