Skip to content

Commit

Permalink
Install mypy with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Jan 31, 2025
1 parent 8415581 commit f0fdccb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,11 @@ jobs:
python-version: 3.9

- run: |
pip install \
mypy==1.14.1 \
boto3-stubs \
h5py==3.6.0 \
jsonpath_ng==1.4.1 \
s3fs==0.4.2
pip install poetry
poetry install --with=mypy -E all
- run: |
mypy \
--non-interactive \
--install-types \
poetry run mypy \
--check-untyped-defs \
--disable-error-code=import-untyped \
--strict-equality \
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ pytest = "^8.0.2"
pytest-cov = "^4.0.0"
pytest-mock = "^3.8.2"

[tool.poetry.group.mypy.dependencies]
boto3-stubs = "^1.36.10"
lxml-stubs = "^0.5.1"
mypy = "^1.14.1"
types-requests = "<2.31.0.7"


[tool.pytest.ini_options]
markers = [
Expand Down

0 comments on commit f0fdccb

Please sign in to comment.