mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Update pre-commit hooks with isort, black, and local pytest-check
This commit is contained in:
10
.flake8
10
.flake8
@@ -1,12 +1,12 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
extend-ignore = E203
|
select = "E303, W293, W291, W292, E305, E231, E302"
|
||||||
exclude =
|
exclude =
|
||||||
.tox,
|
.tox,
|
||||||
__pycache__,
|
__pycache__,
|
||||||
*.pyc,
|
*.pyc,
|
||||||
.env
|
.env
|
||||||
venv/*
|
venv*/*,
|
||||||
.venv/*
|
.venv/*,
|
||||||
reports/*
|
reports/*,
|
||||||
dist/*
|
dist/*,
|
||||||
|
|||||||
@@ -1,39 +1,32 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/sourcery-ai/sourcery
|
|
||||||
rev: v1.1.0 # Get the latest tag from https://github.com/sourcery-ai/sourcery/tags
|
|
||||||
hooks:
|
|
||||||
- id: sourcery
|
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v0.9.2
|
rev: v0.9.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
args: [ '--maxkb=500' ]
|
args: ['--maxkb=500']
|
||||||
- id: check-byte-order-marker
|
- id: check-byte-order-marker
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
|
|
||||||
- repo: local
|
- repo: https://github.com/pycqa/isort
|
||||||
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort-local
|
language_version: python3.10
|
||||||
entry: isort
|
|
||||||
language: python
|
- repo: https://github.com/psf/black
|
||||||
types: [ python ]
|
rev: 23.3.0
|
||||||
exclude: .+/(dist|.venv|venv|build)/.+
|
hooks:
|
||||||
pass_filenames: true
|
|
||||||
- id: black
|
- id: black
|
||||||
name: black-local
|
language_version: python3.10
|
||||||
entry: black
|
|
||||||
language: python
|
- repo: local
|
||||||
types: [ python ]
|
hooks:
|
||||||
exclude: .+/(dist|.venv|venv|build)/.+
|
|
||||||
pass_filenames: true
|
|
||||||
- id: pytest-check
|
- id: pytest-check
|
||||||
name: pytest-check
|
name: pytest-check
|
||||||
entry: pytest --cov=autogpt --without-integration --without-slow-integration
|
entry: pytest --cov=autogpt --without-integration --without-slow-integration
|
||||||
language: system
|
language: system
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|||||||
Reference in New Issue
Block a user