Skip to content

Commit

Permalink
Merge pull request #634 from DataDog/guillermo.julian/pre-commit
Browse files Browse the repository at this point in the history
Add pre-commit hooks corresponding to GitHub workflows

Co-authored-by: gjulianm <[email protected]>
  • Loading branch information
dd-mergequeue[bot] and gjulianm authored Feb 19, 2024
2 parents 47ed6c6 + 5c843f0 commit 6abd7cc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,35 @@ repos:
rev: v1.52.2
hooks:
- id: golangci-lint
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
'types_or': [python, pyi]
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: '2.9.2'
- repo: https://github.com/pycqa/flake8
rev: "7.0.0"
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.3'
hooks:
- id: vulture
args:
- --ignore-decorators
- "@task"
- --ignore-names
- 'test_*,Test*'
- tasks
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

[tool.black]
line-length = 120
py36 = false
skip-string-normalization = true

[tool.isort]
Expand Down

0 comments on commit 6abd7cc

Please sign in to comment.