Skip to content

Conversation

rec
Copy link
Collaborator

@rec rec commented Mar 11, 2025

This is a pure refactoring - no executable code has changed.

This is preparatory to adding considerably more functionality to this small family of "token linters" (as I call them, because they tokenize Python programs and then use that to lint them).

I centralized the code that was previously hidden in the individual linters, and broken up the _linter.py which became fairly huge.

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Mar 11, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit e786e9c with merge base f84062f (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Mar 11, 2025
@rec rec added the suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) label Mar 11, 2025
[ghstack-poisoned]
[ghstack-poisoned]
rec added a commit that referenced this pull request Mar 11, 2025
[ghstack-poisoned]
rec added a commit that referenced this pull request Mar 14, 2025
[ghstack-poisoned]
[ghstack-poisoned]
rec added a commit that referenced this pull request Mar 19, 2025
[ghstack-poisoned]
[ghstack-poisoned]
rec added a commit that referenced this pull request Mar 20, 2025
[ghstack-poisoned]
rec added a commit that referenced this pull request Mar 24, 2025
[ghstack-poisoned]
[ghstack-poisoned]
rec added a commit that referenced this pull request Apr 9, 2025
[ghstack-poisoned]
rec added a commit that referenced this pull request Apr 25, 2025
[ghstack-poisoned]
@rec rec marked this pull request as ready for review April 29, 2025 10:47
@rec rec requested a review from Skylion007 April 29, 2025 10:47
@rec
Copy link
Collaborator Author

rec commented Apr 29, 2025

Oh, sorry to bug you again @Skylion007 , but this is a pure refactoring in the middle of the other two that simply splits up the big _linter.py file into a lot of little files - I forgot to take it out of draft.

Expect more token linter excitement in the coming weeks!

rec added 2 commits April 29, 2025 10:51
[ghstack-poisoned]
[ghstack-poisoned]
@rec
Copy link
Collaborator Author

rec commented May 1, 2025

@pytorchbot merge

Copy link

pytorch-bot bot commented May 1, 2025

This PR needs to be approved by an authorized maintainer before merge.

@rec
Copy link
Collaborator Author

rec commented May 5, 2025

Hey, @Skylion007, just pinging you on this other refactoring that's blocking another pull you approved. :-)

@rec
Copy link
Collaborator Author

rec commented May 12, 2025

@Skylion007: sorry again to bug you: in a better world, this and the other refactoring on the linter you reviewed and was submitted would have been one pull request, but there's a maximum delta of 2000 lines...

rec added a commit to rec/pytorch that referenced this pull request May 12, 2025
@rec
Copy link
Collaborator Author

rec commented May 22, 2025

@Skylion007 - sorry to keep bugging you 🙂 , it's a refactoring before the one you already approved!

@rec rec closed this Jun 23, 2025
@github-actions github-actions bot deleted the gh/rec/137/head branch July 24, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open source suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants