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

Lint fixes #1 torchao/dtypes #827

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Lint fixes #1 torchao/dtypes #827

merged 3 commits into from
Sep 6, 2024

Conversation

jainapurva
Copy link
Contributor

@jainapurva jainapurva commented Sep 6, 2024

Performed lint fixes in directory: torchao/dtypes

  • Test:
    • ruff check .
    • ruff format --check

Copy link

pytorch-bot bot commented Sep 6, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/827

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 1d0da7c with merge base 88440e8 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 6, 2024
@jainapurva jainapurva marked this pull request as ready for review September 6, 2024 19:20
1: [1, 5, 9, 13, 17, 21, 25, 29, 3, 7, 11, 15, 19, 23, 27, 31,
0, 4, 8, 12, 16, 20, 24, 28, 2, 6, 10, 14, 18, 22, 26, 30],
1: [
1,
Copy link
Contributor

Choose a reason for hiding this comment

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

lol this is a fun result of this lint...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is auto-formatted in ruff. If I change the format, the CI/CD test for ruff format --check fails.

Copy link
Collaborator

Choose a reason for hiding this comment

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

does ruff support some kind of skipping a block of code? I know black has # fmt: off/on. This is one of the cases where auto-format tools make things worse 😄

@jainapurva jainapurva merged commit 144445a into main Sep 6, 2024
17 checks passed
@@ -1,7 +1,6 @@
import torch
from typing import Tuple, Optional, Union
from collections import defaultdict
import functools
import torchao.ops
Copy link
Member

@msaroufim msaroufim Sep 6, 2024

Choose a reason for hiding this comment

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

I suspect this line broke our binary builds. This seems to be such an easy mistake to make so need to think of a better solution

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah is this caught by normal PR CI btw?

msaroufim added a commit that referenced this pull request Sep 6, 2024
msaroufim added a commit that referenced this pull request Sep 6, 2024
Revert "Lint fixes #1 torchao/dtypes (#827)"

This reverts commit 144445a.

Co-authored-by: Mark Saroufim <[email protected]>
jainapurva added a commit that referenced this pull request Sep 9, 2024
* Lint fixes;

* Ruff auto-format
jainapurva pushed a commit that referenced this pull request Sep 9, 2024
Revert "Lint fixes #1 torchao/dtypes (#827)"

This reverts commit 144445a.

Co-authored-by: Mark Saroufim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants