Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for python 3.9 #560

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Conversation

zmeir
Copy link
Contributor

@zmeir zmeir commented Jan 3, 2024

Type

Enhancement


Description

This PR updates the required Python version for the project. The change is made in the pyproject.toml file:

  • The requires-python version has been updated from ">=3.9" to ">=3.10". This is due to the use of structural pattern matching in bitbucket_server_provider.py, which was introduced in Python 3.10.

PR changes walkthrough

Relevant files                                                                                                                                 
Configuration changes
1 files
pyproject.toml                                                                                           
    pyproject.toml

    The requires-python version has been updated from ">=3.9"
    to ">=3.10".

+1/-1

User description

The bitbucket_server_provider.py uses structural pattern matching that was introduced in python 3.10, and so trying to run any command with python 3.9 will fail (because we import all the providers right at the top of pr_agent.git_providers)

The `bitbucket_server_provider.py` uses structural pattern matching that was introduced in python 3.10, and so trying to run any command with python 3.9 will fail (because we import all the providers right at the top of `pr_agent.git_providers`)
Copy link

PR Description updated to latest commit (58f93e0)

Copy link

PR Analysis

  • 🎯 Main theme: Dropping support for Python 3.9
  • 📝 PR summary: This PR updates the required Python version for the project from ">=3.9" to ">=3.10". This is due to the use of structural pattern matching in bitbucket_server_provider.py, which was introduced in Python 3.10.
  • 📌 Type of PR: Enhancement
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 1, because the PR contains a single line change in the configuration file.
  • 🔒 Security concerns: No security concerns found

PR Feedback

💡 General suggestions: The PR is straightforward and the change is well explained in the PR description. However, it would be beneficial to add a note in the README file about the updated Python version requirement.

🤖 Code feedback:
relevant filepyproject.toml
suggestion      

Consider adding a comment in the code explaining why Python 3.10 is required, for future reference. [medium]

relevant linerequires-python = ">=3.10"

✨ Usage tips:

To invoke the PR-Agent, add a comment using one of the following commands:

  • /review: Request a review of your Pull Request.
  • /describe: Update the PR title and description based on the contents of the PR.
  • /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
  • /ask <QUESTION>: Ask a question about the PR.
  • /update_changelog: Update the changelog based on the PR's contents.
  • /add_docs 💎: Generate docstring for new components introduced in the PR.
  • /generate_labels 💎: Generate labels for the PR based on the PR's contents.
  • /analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To edit any configuration parameter from the configuration.toml, add --config_path=new_value.
For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."
To list the possible configuration parameters, add a /config comment.

@mrT23
Copy link
Collaborator

mrT23 commented Jan 4, 2024

👍

@mrT23 mrT23 merged commit c07ea5e into Codium-ai:main Jan 4, 2024
1 check passed
@zmeir zmeir deleted the zmeir/fix/drop_python3.9 branch January 4, 2024 07:24
yochail pushed a commit to yochail/pr-agent that referenced this pull request Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants