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

Check Python typing for galaxy-containers and galaxy-tool-util during CI. #11000

Merged
merged 3 commits into from Dec 28, 2020

Conversation

jmchilton
Copy link
Member

With fixes - including a much cleaner new way to add methods to namedtuples I hadn't known about.

@github-actions github-actions bot added this to the 21.01 milestone Dec 27, 2020
@jmchilton jmchilton changed the title Check Python typing for galaxy-containers and galaxy-tool-util during CI. [WIP] Check Python typing for galaxy-containers and galaxy-tool-util during CI. Dec 27, 2020
@jmchilton jmchilton changed the title [WIP] Check Python typing for galaxy-containers and galaxy-tool-util during CI. Check Python typing for galaxy-containers and galaxy-tool-util during CI. Dec 27, 2020
volume_class = None
conf_defaults = {
container_type: Optional[str] = None
container_class: Optional[Type[Container]] = None
Copy link
Member

Choose a reason for hiding this comment

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

That's so helpful, I always struggle with what's expected here!

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

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

Beautiful!

@mvdbeek mvdbeek merged commit e04035a into galaxyproject:dev Dec 28, 2020
@nsoranzo nsoranzo deleted the more_types_0 branch December 28, 2020 14:33
@nsoranzo
Copy link
Member

With fixes - including a much cleaner new way to add methods to namedtuples I hadn't known about.

That's a much nicer syntax, can we replace all collections.namedtuples with typing.NamedTuple ?

@jmchilton
Copy link
Member Author

That's a much nicer syntax, can we replace all collections.namedtuples with typing.NamedTuple ?

Seems like a good plan, I'm not volunteering to do it but I'll hit the merge button if someone else does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants