Skip to content

Add support for Python 3.14 and drop EOL 3.9#75

Merged
tsutsu3 merged 3 commits intotsutsu3:mainfrom
hugovk:main
Mar 1, 2026
Merged

Add support for Python 3.14 and drop EOL 3.9#75
tsutsu3 merged 3 commits intotsutsu3:mainfrom
hugovk:main

Conversation

@hugovk
Copy link
Copy Markdown
Contributor

@hugovk hugovk commented Feb 27, 2026

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the project's Python compatibility matrix, ensuring alignment with the latest Python releases and removing support for an End-of-Life version. Concurrently, it modernizes parts of the codebase by adopting f-strings for string formatting, enhancing code clarity and leveraging newer Python features.

Highlights

  • Python Version Support: Added official support for Python 3.14 and discontinued support for Python 3.9, which has reached its End-of-Life.
  • Code Modernization: Updated string formatting in several places from the older .format() method to f-strings for improved readability and conciseness.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • linkify_it/main.py
    • Replaced .format() with f-strings for error messages in SchemaError.
    • Updated __repr__ method in Match class to use an f-string.
  • pyproject.toml
    • Increased the minimum required Python version to >=3.10.
    • Removed Programming Language :: Python :: 3.9 from classifiers.
    • Added Programming Language :: Python :: 3.14 to classifiers.
  • test/test_apis.py
    • Converted string formatting in test_api_add_alias_rule_with_excape_re_string to use f-strings.
  • test/utils.py
    • Removed the redundant 'r' mode argument from the open() function call, as it is the default for reading.
  • tox.ini
    • Updated the envlist to include Python 3.10 through 3.14 (py{310-314}).
    • Removed Python 3.9 from the test environments.
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/github-ci.yml
    • .github/workflows/pypi-test.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request successfully updates the project to support Python 3.14 and drops support for the end-of-life Python 3.9, aligning with the stated objective. The changes also include modernizing string formatting to f-strings, which enhances code readability and maintainability. All modifications are well-implemented and consistent across the codebase and configuration files.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.07%. Comparing base (97e18f7) to head (2a65810).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   97.74%   98.07%   +0.32%     
==========================================
  Files           4        4              
  Lines         311      311              
  Branches       52       52              
==========================================
+ Hits          304      305       +1     
+ Misses          4        3       -1     
  Partials        3        3              
Flag Coverage Δ
pytests 98.07% <100.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tsutsu3
Copy link
Copy Markdown
Owner

tsutsu3 commented Mar 1, 2026

@hugovk
Thanks for your contribution! Merging.

@tsutsu3 tsutsu3 merged commit 5006002 into tsutsu3:main Mar 1, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants