Skip to content

Format using ufmt, upgrade pre-commit config#56

Merged
gpleiss merged 1 commit intocornellius-gp:mainfrom
Balandat:ufmt
Apr 14, 2023
Merged

Format using ufmt, upgrade pre-commit config#56
gpleiss merged 1 commit intocornellius-gp:mainfrom
Balandat:ufmt

Conversation

@Balandat
Copy link
Collaborator

@Balandat Balandat commented Mar 30, 2023

This PR introduces the us of ufmt (instead of black + isort) for auto-formatting and import sorting to avoid collisions between the two. It also upgrades some of the versions (flake8 -> 5.0.4, flake8-print -> 5.0.0, pre-commit-hooks -> 4.4.0). As a result, quire a few files were reformatted.

This PR introduces the us of ufmt (instead of black + isort) for auto-formatting and import sorting to avoid collisions between the two.
It also upgrades some of the versions in the pre-commit config.

As a result, quire a few files were reformatted.

def _compute_getitem_size(
obj: Union[torch.Tensor, "LinearOperator"], indices: Tuple[Union[slice, torch.LongTensor, int], ...] # noqa F811
obj: Union[torch.Tensor, "LinearOperator"], # noqa F821
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to silence what I think is a spurious flake8 error here, this complained about LinearOperator not being known / imported ...

@gpleiss
Copy link
Member

gpleiss commented Mar 31, 2023

I'm very much in favor of this. I'm going to hopefully get #42 in early next week and then we can merge this.

@Balandat
Copy link
Collaborator Author

I'm very much in favor of this. I'm going to hopefully get #42 in early next week and then we can merge this.

The reason for this is avoiding a not-so-nice rebase I take it?

@gpleiss gpleiss merged commit 5191ee1 into cornellius-gp:main Apr 14, 2023
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