reflex/.pre-commit-config.yaml
Thomas Brandého 0af4770180
generate pyi files when building/publishing 3rd party component (#2945)
* build pyi files when building/publishing 3rd party

* fix typo in workflow

* add future annotation

* add tests to pass coverage check

* add more unit tests

* omit pyi_generator from test coverage

* change black from dev deps to direct deps

* remake all pyi

* format pyi if black is present, return as if otherwise

* fix requested changes

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-03-29 09:54:21 -07:00

36 lines
877 B
YAML

repos:
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: [integration, reflex, tests]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.244
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: '^integration/benchmarks/'
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.313
hooks:
- id: pyright
args: [integration, reflex, tests]
language: system
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
hooks:
- id: darglint
exclude: '^reflex/reflex.py'
- repo: local
hooks:
- id: update-pyi-files
name: update-pyi-files
always_run: true
language: system
description: 'Update pyi files as needed'
entry: python scripts/make_pyi.py