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

Bump mypy version and fix errors #6557

Merged
merged 1 commit into from Jan 7, 2024
Merged

Bump mypy version and fix errors #6557

merged 1 commit into from Jan 7, 2024

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Dec 27, 2023

Description

Bump Mypy and resolve new issues

@Czaki Czaki added the maintenance PR with maintance changes, label Dec 27, 2023
@Czaki Czaki added this to the 0.5.0 milestone Dec 27, 2023
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (d507dd6) 92.29% compared to head (a9bce78) 92.25%.
Report is 10 commits behind head on main.

Files Patch % Lines
napari/conftest.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6557      +/-   ##
==========================================
- Coverage   92.29%   92.25%   -0.05%     
==========================================
  Files         601      601              
  Lines       53687    53708      +21     
==========================================
- Hits        49553    49548       -5     
- Misses       4134     4160      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Czaki Czaki added the ready to merge Last chance for comments! Will be merged in ~24h label Jan 3, 2024
@Czaki Czaki merged commit 419a04b into napari:main Jan 7, 2024
38 checks passed
@Czaki Czaki deleted the bump_mypy branch January 7, 2024 15:45
@Czaki Czaki removed the ready to merge Last chance for comments! Will be merged in ~24h label Jan 7, 2024
kne42 added a commit to kne42/napari that referenced this pull request Jan 11, 2024
* main:
  Fix labels mapping cache by filling it with background, not 0 (napari#6580)
  Simplify unused parameters of Quaternion functions. (napari#6424)
  Add size and ndim to LayerDataProtocol (napari#6494)
  Fix label direct mode for installation without numba (napari#6571)
  Fix test in napari_builtins to remove import from conftest (napari#6568)
  Remove `app-model!=0.2.4` from test constraints (napari#6577)
  Bump mypy version and fix errors (napari#6557)
  Update test to work with `app-model==0.2.4` (napari#6573)
  Added support for features in surface layers (napari#6515)
Czaki added a commit that referenced this pull request Apr 13, 2024
)

# Description

The Scientific python has tool named repo-review with set of rules that
they think are good for projects.

Not all apply to napari, but some of them looks usefull. To see the
check on napari repo one may use this link

https://learn.scientific-python.org/development/guides/repo-review/?repo=napari%2Fnapari&branch=main

This PR contains non mypy improvements, as mypy ones requires
improvements in code.

It depends on #6557

This PR also enables automatically dump graph when QtViewer is leaked
during tests. Then such graph in pdf is uploaded as job artifact.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PR with maintance changes,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants