Skip to content

Commit

Permalink
Merge pull request jbloomAus#94 from jbloomAus/update-pre-commit
Browse files Browse the repository at this point in the history
chore: setting up precommit to be consistent with CI
  • Loading branch information
jbloomAus authored Apr 20, 2024
2 parents 6ba29f2 + 3e8a4a0 commit c020263
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
32 changes: 14 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=250000]
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: flake8
args: ['--config=.flake8']
additional_dependencies: [
'flake8-blind-except',
# 'flake8-docstrings',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-implicit-str-concat',
'pydocstyle>=5.0.0',
]
- id: isort
name: isort (python)
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pyzmq = "26.0.0"


[tool.poetry.group.dev.dependencies]
black = "^24.2.0"
black = "24.4.0"
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pre-commit = "^3.6.2"
flake8 = "^7.0.0"
flake8 = "7.0.0"
isort = "5.13.2"
pyright = "^1.1.351"
mamba-lens = "^0.0.4"
Expand Down

0 comments on commit c020263

Please sign in to comment.