Skip to content

Commit

Permalink
Feature/mx 1498 and mx 1480 configure mypy to follow imports and move…
Browse files Browse the repository at this point in the history
… pytest and mypy config into pyproject.toml (#50)

- mypy pre-commit hook now always runs on all files instead of only
changed files, which is the [recommended way according to the mypy
maintainer](python/mypy#13916)
- mypy now shows errors in case of missing imports (prior: silently
ignored missing imports)
- move content of `.mypy.ini` and `pytest.ini` into pyproject.toml
- update dependencies
  • Loading branch information
rababerladuseladim authored and carolinscholl committed Dec 6, 2023
1 parent 16f837e commit 9788379
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 206 deletions.
9 changes: 0 additions & 9 deletions .mypy.ini

This file was deleted.

5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,20 @@ repos:
name: poetry
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
hooks:
hooks: # configured according to mypy maintainer: https://github.com/python/mypy/issues/13916
- id: mypy
name: mypy
files: ^mex/
pass_filenames: false
args: [mex]
additional_dependencies:
- "backoff>=2.2.1,<3"
- "click>=8.1.7,<9"
- "pandas-stubs>=2.1.1,<3"
- "pydantic-settings>=2.1.0,<3"
- "pydantic>=2.5.1,<3"
- "pytest>=7.4.3,<8"
- "types-ldap3>=2.9.13.15,<3"
- "types-pytz>=2023.3.1.1,<2024"
- "types-requests>=2.31.0.10,<3"
- "types-setuptools>=68.2.0.1,<69"
Loading

0 comments on commit 9788379

Please sign in to comment.