Skip to content

Conversation

@HideakiImamura
Copy link
Contributor

I would like to introduce the CI for linters. The CI can greatly reduce the complexity of a codebase. By checking whether the Checks CI passes for each PR, the codebase can be kept simple in the future. Moreover, continuous type checking with tools like mypy can help discover hidden bugs.

@HideakiImamura
Copy link
Contributor Author

It seems that the GitHub Actions is not enabled. Could you enable it and run the linter?

Copy link
Collaborator

@herilalaina herilalaina left a comment

Choose a reason for hiding this comment

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

Thank you @HideakiImamura. Github actions were actually already enabled. Could you maybe rebase from the main?

)

def forward(self, *x, **kwargs) -> torch.Tensor:
def forward(self, x: torch.Tensor, **kwargs: Any) -> torch.Tensor:
Copy link
Collaborator

Choose a reason for hiding this comment

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

*x has to be a tuple here; otherwise, the line below will raise an exception.

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