Skip to content

add mypy to pre-commit config, fix mypy errors#2545

Merged
mashehu merged 6 commits into
nf-core:devfrom
mashehu:add-mypy-to-pre-commit
Nov 28, 2023
Merged

add mypy to pre-commit config, fix mypy errors#2545
mashehu merged 6 commits into
nf-core:devfrom
mashehu:add-mypy-to-pre-commit

Conversation

@mashehu

@mashehu mashehu commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@mashehu mashehu requested a review from mirpedrol November 28, 2023 13:18
@codecov

codecov Bot commented Nov 28, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c78017b) 74.97% compared to head (1ad27a7) 74.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2545      +/-   ##
==========================================
- Coverage   74.97%   74.93%   -0.05%     
==========================================
  Files          85       85              
  Lines        9215     9215              
==========================================
- Hits         6909     6905       -4     
- Misses       2306     2310       +4     

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

Comment thread nf_core/__main__.py
help=r"Pipeline directory. [dim]\[default: Current working directory][/]",
)
def local(ctx, keywords, json, dir): # pylint: disable=redefined-builtin
def modules_list_local(ctx, keywords, json, dir): # pylint: disable=redefined-builtin

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should we do these changes for subworkflows too?

Comment thread mypy.ini

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why can't we have this in pyproject.toml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it felt like it didn't pick it up correctly. let me check again

@mashehu mashehu merged commit ead61f4 into nf-core:dev Nov 28, 2023
@mashehu mashehu deleted the add-mypy-to-pre-commit branch November 28, 2023 15:50
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.

2 participants