Skip to content

Commit

Permalink
updated pre commit and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaezp committed Apr 18, 2024
1 parent 97dca23 commit 33459b2
Show file tree
Hide file tree
Showing 2 changed files with 791 additions and 800 deletions.
129 changes: 59 additions & 70 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,71 +1,60 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: "mkdocs.yml"
- id: end-of-file-fixer
exclude: "(.*tests/data/.*/.*.md)"
- id: trailing-whitespace
exclude: "(.*tests/data/.*/.*.md)"
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
exclude: "(README.md)|(.*docs/README.md)|(.*tests/data/.*/.*.md)"
additional_dependencies:
- mdformat-gfm
- mdformat-black
- mdformat-config
- mdformat-beautysh
- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.72
hooks:
- id: lint
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
additional_dependencies:
- toml
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0 # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort .
language: system
always_run: true
pass_filenames: false
- id: pydocstringformatter
name: pydocstringformatter
entry: poetry run pydocstringformatter mkquartodocs
language: system
always_run: true
- id: pytest
name: pytest-check
entry: poetry run python -m pytest -x
language: system
pass_filenames: false
always_run: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
exclude: "mkdocs.yml"
- id: end-of-file-fixer
exclude: "(.*tests/data/.*/.*.md)"
- id: trailing-whitespace
exclude: "(.*tests/data/.*/.*.md)"
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.7
hooks:
- id: ruff
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
additional_dependencies:
- toml
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0 # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: [ "-f", "requirements.txt", "-o", "requirements.txt" ]
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort .
language: system
always_run: true
pass_filenames: false
- id: pydocstringformatter
name: pydocstringformatter
entry: poetry run pydocstringformatter mkquartodocs
language: system
always_run: true
- id: pytest
name: pytest-check
entry: poetry run python -m pytest -x
language: system
pass_filenames: false
always_run: true
Loading

0 comments on commit 33459b2

Please sign in to comment.