Skip to content

Unify the logic for inferring Python versions for SonarQube vs. overall project #1106

@nathanjmcdougall

Description

@nathanjmcdougall

There's a few things going on here that need teasing out

  • Naming: "Major" version of 3.13 as being 13 vs. being 3
  • Duplication of code: src\usethis_integrations\sonarqube\config.py vs. src\usethis_integrations\python\version.py
  • Methodology: Regex-validated vs. naive str parsing
  • Source: Current interpreter vs. .python-version file (if available).
  • Hard-coding of f"3.{x}" and only passing around an int, vs. a dedicated object or string

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions