Skip to content

Commit

Permalink
Update pre-commit config file
Browse files Browse the repository at this point in the history
- This broke when we updated to python3.10
- This includes a workaround for a conda bug by setting the default python version to 3.10
  • Loading branch information
riley-harper committed May 17, 2022
1 parent 91fad48 commit 2c86664
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Workaround for a conda bug: https://stackoverflow.com/questions/72177222/runtimeerror-failed-to-find-interpreter-for-builtin-discover-of-python-spec-py
default_language_version:
python: python3.10

repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- id: flake8

0 comments on commit 2c86664

Please sign in to comment.