Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1026 Let MyPy lint more files #1027

Merged
merged 7 commits into from May 14, 2024

Conversation

Manangka
Copy link
Collaborator

@Manangka Manangka commented May 10, 2024

Fixes #1026

In the PyProject.toml file there is a list of glob statements which tells MyPy which files is should lint.
There was a mistake however that caused MyPy to only lint the top level files of a folder.
This has been fixes in this commit.

Due to more files being analysed by MyPy there were some new issues found
Those issues are fixed in this commit as well

I tried to make the reviewing process easier by grouping related changes to the same commit.

Checklist

  • Links to correct issue
  • Update changelog, if changes affect users
  • PR title starts with Issue #nr, e.g. Issue #737
  • Unit tests were added
  • If feature added: Added/extended example

Copy link
Contributor

@JoerivanEngelen JoerivanEngelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing these things, looks good; got 2 comments.

imod/mf6/interfaces/imaskingsettings.py Outdated Show resolved Hide resolved
imod/mf6/utilities/mask.py Outdated Show resolved Hide resolved
@Manangka Manangka force-pushed the issue_1026_mypy_lint_more_files branch from f021fec to 2e4452c Compare May 14, 2024 11:16
@JoerivanEngelen JoerivanEngelen added this pull request to the merge queue May 14, 2024
Merged via the queue into master with commit e697ebc May 14, 2024
7 checks passed
@JoerivanEngelen JoerivanEngelen deleted the issue_1026_mypy_lint_more_files branch May 14, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add additional files for the MyPy linting
2 participants