-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up khan-linter to be python3-only. (#42)
## Summary: Now that we're on python3 everywhere, we don't need `six` anymore. Or the `vendored/py2` directory. I also changed all our shebang lines to say `python3` explicitly, rather than `python`. This isn't really needed, but some folks don't even have a /usr/bin/python on their machine, only /usr/bin/python3! And we might as well be clear. While testing this, I discovered a few lint errors that are new to new versions of python, that I cleaned up. I also discovered that the vendored pyflakes we have is too old for modern pythons, so I updated it, and also mccabe while I was at it. Issue: https://khanacademy.slack.com/archives/C02NMB1R5/p1710546934835669 ## Test plan: ./runlint_test.py Author: csilvers Reviewers: MiguelCastillo Required Reviewers: Approved By: MiguelCastillo Checks: Pull Request URL: #42
- Loading branch information
Showing
492 changed files
with
7,022 additions
and
105,713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import unittest | ||
|
Oops, something went wrong.