Skip to content

Instantly share code, notes, and snippets.

@jamiekt
Last active June 15, 2022 21:03
Show Gist options
  • Save jamiekt/18640bd1efdb6e6fb1b9252bc7e75495 to your computer and use it in GitHub Desktop.
Save jamiekt/18640bd1efdb6e6fb1b9252bc7e75495 to your computer and use it in GitHub Desktop.
select python interpreter in poetry
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: black
name: Black
entry: poetry run black .
pass_filenames: false
language: system
- id: flake8
name: flake8
entry: poetry run flake8 . --config=.github/linters/.flake8
pass_filenames: false
language: system
- id: mypy
name: mypy
entry: env MYPYPATH=stubs poetry run mypy dir1 dir2
pass_filenames: false
language: system
- id: mypy tests
name: mypy tests
entry: env MYPYPATH=real_time_event_processor:stubs poetry run mypy tests
pass_filenames: false
language: system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment