Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut metricflow/dbt_semantic_interfaces into repository #31

Merged
12 changes: 10 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ repos:
rev: v0.931
hooks:
- id: mypy
args: [--show-error-codes]
args: [--ignore-missing-imports,--show-error-codes]
verbose: true
language: system
additional_dependencies: [
types-jsonschema,
types-python-dateutil,
types-PyYAML,
types-jinja2,
pytest,
python-dateutil,
types-python-dateutil,
]
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ run:
install-hatch:
pip3 install hatch

install:
install-hatch overwrite-pre-commit
# This edits your local pre-commit hook file to use Hatch when executing.
overwrite-pre-commit:
hatch run pre-commit:pre-commit install
hatch run pre-commit:sed -i -e "s/exec /exec hatch run pre-commit:/g" .git/hooks/pre-commit

install: install-hatch overwrite-pre-commit

test:
export FORMAT_JSON_LOGS="1" && hatch run pytest:pytest future_directory
export FORMAT_JSON_LOGS="1" && hatch run pytest:pytest tests

lint:
hatch run pre-commit:pre-commit run --show-diff-on-failure --color=always --all-files
Empty file.
Loading