Skip to content

Commit

Permalink
Specify python3 -m pip
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Oct 16, 2024
1 parent d421219 commit 46c945f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ repos:
language: system
types: [python]
require_serial: true
# - repo: https://github.com/python-poetry/poetry
# rev: 1.8.4
# hooks:
# - id: poetry-export
# args: ["--with", "dev", "-o", ".requirements-mypy.txt"]
# # - id: poetry-install
# # - id: mypy
# # name: mypy
# # entry: mypy .
# # language: python
# # types: [python]
# # require_serial: true
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.12.0
# hooks:
# - id: mypy
# additional_dependencies:
# - .requirements-mypy.txt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-run-mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ set -o errexit
# Change directory to the project root directory.
cd "$(dirname "$0")"

which pip
which python3
pip --version
python3 --version

# Install the dependencies into the mypy env.
# Note that this can take seconds to run.
Expand Down

0 comments on commit 46c945f

Please sign in to comment.