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

Add checks CI and apply linters #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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?

@@ -496,7 +496,7 @@ def __init__(self, in_dim: int, out_dim: int) -> None:
in_dim - 2, out_dim
)

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