Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosgf committed Feb 14, 2023
1 parent bea4e97 commit c9914bf
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
ci:
autoupdate_schedule: monthly
files: ^src/honeybot/
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: reorder-python-imports
name: Reorder Python imports
- id: isort
name: Reorder Python Imports
args: ["--check-only", "--settings-path", "./pyproject.toml", "src/honeybot/"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--preview"]
name: Lint code
args: ["--check", "--preview", "--config", "./pyproject.toml", "src/honeybot/"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
name: Security checks
args: ["-ll", "-c", "./pyproject.toml", "-r", "src/honeybot/"]
additional_dependencies: [ "bandit[toml]" ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
Expand Down

0 comments on commit c9914bf

Please sign in to comment.