spiff-arena/.pre-commit-config.yaml
jasquat def33b235f
Message race (#2165)
* repro message race condition

* some more debugging w/ burnettk

* safe exception handling

* more deubbing w/ burnettk

* add failure log

* load script

* current state, db.session.begin did not actually help w/ burnettk

* do not save items on message start event w/ burnettk

* fixed tests w/ burnettk

* some cleanup w/ burnettk

* avoid test load script w/ burnettk

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-12-02 11:10:10 -05:00

58 lines
1.8 KiB
YAML

repos:
- repo: local
hooks:
- id: check-added-large-files
files: ^spiffworkflow-backend/
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-toml
files: ^spiffworkflow-backend/
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-yaml
files: ^spiffworkflow-backend/
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
files: ^spiffworkflow-backend/
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: ruff-check
args: [check, --fix]
files: ^spiffworkflow-backend/
name: ruff
entry: ruff
language: system
types: [python]
require_serial: true
# this is also specified in spiffworkflow-backend/pyproject.toml but we run pre-commit
# with all-files which ignores that
exclude: "/migrations/|bin/load_test_message_start_event.py"
- id: ruff-format
args: [format]
files: ^spiffworkflow-backend/
name: ruff
entry: ruff
language: system
types: [python]
require_serial: true
# this is also specified in spiffworkflow-backend/pyproject.toml but we run pre-commit
# with all-files which ignores that
exclude: "/migrations/"
- id: trailing-whitespace
files: ^spiffworkflow-backend/
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
exclude: "/migrations/"