diff options
author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
---|---|---|
committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /R2R/.pre-commit-config.yaml | |
parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
download | gn-ai-master.tar.gz |
Diffstat (limited to 'R2R/.pre-commit-config.yaml')
-rwxr-xr-x | R2R/.pre-commit-config.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/R2R/.pre-commit-config.yaml b/R2R/.pre-commit-config.yaml new file mode 100755 index 00000000..58fb9158 --- /dev/null +++ b/R2R/.pre-commit-config.yaml @@ -0,0 +1,32 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + - id: check-ast + - id: check-yaml + + - repo: local + hooks: + - id: isort + name: isort + entry: poetry run isort + language: system + types: [python] + args: ["--check", "--diff"] + + - id: black + name: black + entry: poetry run black + language: system + types: [python] + args: ["--check", "--diff"] + + - id: flake8 + name: flake8 + entry: poetry run flake8 + language: system + types: [python] + args: ["--config=.flake8"] |