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

How to specify a python version? #6

Open
rabbit-aaron opened this issue May 20, 2022 · 1 comment
Open

How to specify a python version? #6

rabbit-aaron opened this issue May 20, 2022 · 1 comment
Assignees

Comments

@rabbit-aaron
Copy link

rabbit-aaron commented May 20, 2022

I've been trying to figure out how to set the target python version.
Our project is on python 3.8 and I'd like to configure that for sonar-python.

I've tried putting the below in sonar-project.properties in my project root, but it's not picking it up.

sonar.python.version=3.8

Right now it thinks -> is invalid, so it's definitely on a older python version.

I'm using it with GitLab EE 14.9 in CI pipeline.

@UncleGoogle
Copy link

The same question with GitLab EE v16.4.1-ee here.
We got "syntax" error (Minor - Error: invalid syntax (, line 155)) for match statement in python 3.10.

What python versions are supported by the plugin?

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

No branches or pull requests

3 participants