Skip to content

How to specify a python version? #6

Open
@rabbit-aaron

Description

@rabbit-aaron

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.

Activity

UncleGoogle

UncleGoogle commented on Oct 19, 2023

@UncleGoogle

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @filipesperandio@rabbit-aaron@UncleGoogle

      Issue actions

        How to specify a python version? · Issue #6 · codeclimate/codeclimate-sonar-python