gh-93096: Make `mimetypes` CLI tool public by arhadthedev · Pull Request #93097 · python/cpython · GitHub

github.com

Tin mới

arhadthedev:normalize-mimetypes-cli

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Make mimetypes CLI tool public

Merge branch 'main' into normalize-mimetypes-cli

No other module names the entry point _cli

Adjust tests (capitalization of "Usage:" changed)

For CLI tests, make proper script invocations with proper checks

View reviewed changes

Address @AA-Turner's review

Move a constant check outside of a loop

View reviewed changes

Allow .pic MIME type be image/x-pict

Change forgotten quotation marks

Temporarily rollback everything but tests

Revert "Temporarily rollback everything but tests"

Add comments about assertIn()

Merge branch 'main' into normalize-mimetypes-cli

Normalize error codes too

Merge branch 'main' into normalize-mimetypes-cli

Use console formatting for commands with output

Docs: default case first, put condition first, avoid Latin, adjust wo…

Use long options in examples so no need to refer back to usage

Follow argparse docs and use 'args'

Add to What's New, combine NEWS files, update reference, use sentence…

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

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

Update error message

Merge branch 'main' into normalize-mimetypes-cli

Merge remote-tracking branch 'upstream/main' into normalize-mimetypes…

gh-93096: Make `mimetypes` CLI tool public (#93097) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>

gh-93096: fix test_mimetypes.test_guess_type_conflicting_with_mimetypes #131408