René's URL Explorer Experiment


Title: Add some ruff autofixes to CI by AlexWaygood · Pull Request #10458 · python/typeshed · GitHub

Open Graph Title: Add some ruff autofixes to CI by AlexWaygood · Pull Request #10458 · python/typeshed

X Title: Add some ruff autofixes to CI by AlexWaygood · Pull Request #10458 · python/typeshed

Description: The aim of this PR is to make it easier for new contributors to typeshed to comply with our -- at times fairly stringent! -- style guide. For large PRs (e.g. #10446, or #10355), this can be quite difficult. Ruff has a number of autofixes that we can use to help out with this task, and it's extremely fast. Unlike most projects, we're not likely to ever switch from flake8 to ruff -- even if ruff implemented the full set of flake8-pyi rules and had exactly the same behaviour as flake8-pyi for all of them, it's useful for us to be able to add new rules to our own linter whenver we want to. However, there's nothing stopping us from having ruff as part of our CI as well as flake8. Since (in my opinion) we're only interested in the autofixes here, I've only enabled a few rules that have relatively safe autofixes relevant to stub files. Since ruff includes isort as one of its autofixes, having isort as a test dependency is now redundant, so I've removed it in favour of ruff's I001 rule.

Open Graph Description: The aim of this PR is to make it easier for new contributors to typeshed to comply with our -- at times fairly stringent! -- style guide. For large PRs (e.g. #10446, or #10355), this can be quite d...

X Description: The aim of this PR is to make it easier for new contributors to typeshed to comply with our -- at times fairly stringent! -- style guide. For large PRs (e.g. #10446, or #10355), this can be quite d...

Opengraph URL: https://github.com/python/typeshed/pull/10458

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ec1078f1-a481-9b1d-8ab8-f08f436ab1d7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id830A:1F7A:E1502B:133676B:6B000AA6
html-safe-nonce43b473111df66adbd9b7a7f8f3e1e935653ede98e5cbc608c73327f4d360c24e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzBBOjFGN0E6RTE1MDJCOjEzMzY3NkI6NkIwMDBBQTYiLCJ2aXNpdG9yX2lkIjoiMjMwMDEwNTA1NDk2MDQ4NzA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac702296357e5cef4a9f10abf20cecf851f642be69d8d12c11887192c6f071980f
hovercard-subject-tagpull_request:1433617138
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typeshed/pull/10458/files
twitter:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
og:image:altThe aim of this PR is to make it easier for new contributors to typeshed to comply with our -- at times fairly stringent! -- style guide. For large PRs (e.g. #10446, or #10355), this can be quite d...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/10458/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F10458%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F10458%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/10458/files
Reloadhttps://github.com/python/typeshed/pull/10458/files
Reloadhttps://github.com/python/typeshed/pull/10458/files
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
AlexWaygood:ruffhttps://github.com/AlexWaygood/typeshed/tree/ruff
Conversation 12 https://github.com/python/typeshed/pull/10458
Commits 4 https://github.com/python/typeshed/pull/10458/commits
Checks 0 https://github.com/python/typeshed/pull/10458/checks
Files changed https://github.com/python/typeshed/pull/10458/files
Please reload this pagehttps://github.com/python/typeshed/pull/10458/files
Add some ruff autofixes to CI https://github.com/python/typeshed/pull/10458/files#top
Show all changes 4 commits https://github.com/python/typeshed/pull/10458/files
bd42cba Add some ruff autofixes to CI AlexWaygood Jul 13, 2023 https://github.com/python/typeshed/pull/10458/commits/bd42cba1ef502ad63694b956956c81b402038007
7b54975 Add isort back AlexWaygood Jul 19, 2023 https://github.com/python/typeshed/pull/10458/commits/7b5497520cc469245d9020022833bf878c5c3403
8085518 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Jul 19, 2023 https://github.com/python/typeshed/pull/10458/commits/8085518bbf992bc0b5adeee76a9a382276f52b75
2a30ffb Run ruff first in `create_baseline_stubs.py` AlexWaygood Jul 19, 2023 https://github.com/python/typeshed/pull/10458/commits/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51
Clear filters https://github.com/python/typeshed/pull/10458/files
Please reload this pagehttps://github.com/python/typeshed/pull/10458/files
Please reload this pagehttps://github.com/python/typeshed/pull/10458/files
.pre-commit-config.yaml https://github.com/python/typeshed/pull/10458/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
CONTRIBUTING.md https://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
pyproject.toml https://github.com/python/typeshed/pull/10458/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
requirements-tests.txt https://github.com/python/typeshed/pull/10458/files#diff-c258030c905004296fe46761295d5c97af8641a141156e255585e968ae7a4d1d
create_baseline_stubs.py https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
runtests.py https://github.com/python/typeshed/pull/10458/files#diff-3678a6cd4a1d2034de8bf060014cecd91321317f3ef5e90ff488d09dda75b9bd
typing_extensions.pyi https://github.com/python/typeshed/pull/10458/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
check_consistent.py https://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
.pre-commit-config.yamlhttps://github.com/python/typeshed/pull/10458/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/.pre-commit-config.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
https://github.com/python/typeshed/pull/10458/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
CONTRIBUTING.mdhttps://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/CONTRIBUTING.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
https://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
https://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
https://github.com/python/typeshed/pull/10458/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
pyproject.tomlhttps://github.com/python/typeshed/pull/10458/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/python/typeshed/pull/10458/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
requirements-tests.txthttps://github.com/python/typeshed/pull/10458/files#diff-c258030c905004296fe46761295d5c97af8641a141156e255585e968ae7a4d1d
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/requirements-tests.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-c258030c905004296fe46761295d5c97af8641a141156e255585e968ae7a4d1d
https://github.com/python/typeshed/pull/10458/files#diff-c258030c905004296fe46761295d5c97af8641a141156e255585e968ae7a4d1d
scripts/create_baseline_stubs.pyhttps://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/scripts/create_baseline_stubs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
https://github.com/python/typeshed/pull/10458/files#diff-bd4b4ac1c4fdc36c1c26df1c89bf82523b2331396650c87969c387e0b419d0c4
scripts/runtests.pyhttps://github.com/python/typeshed/pull/10458/files#diff-3678a6cd4a1d2034de8bf060014cecd91321317f3ef5e90ff488d09dda75b9bd
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/scripts/runtests.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-3678a6cd4a1d2034de8bf060014cecd91321317f3ef5e90ff488d09dda75b9bd
https://github.com/python/typeshed/pull/10458/files#diff-3678a6cd4a1d2034de8bf060014cecd91321317f3ef5e90ff488d09dda75b9bd
stdlib/typing_extensions.pyihttps://github.com/python/typeshed/pull/10458/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/stdlib/typing_extensions.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
https://github.com/python/typeshed/pull/10458/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
tests/check_consistent.pyhttps://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
View file https://github.com/AlexWaygood/typeshed/blob/2a30ffbbb17a457771f0bda4f2f17fa0ab688a51/tests/check_consistent.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/10458/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
https://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
https://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
https://github.com/python/typeshed/pull/10458/files#diff-a87fb10a54bb3a3d0fd1864abbf2232576f150eba2ee8c63b1c384b24a18bd05
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.