Skip to content

fix: packages compatibity issues found for Python < 3.12#47

Merged
petruki merged 11 commits intomasterfrom
staging
Apr 18, 2026
Merged

fix: packages compatibity issues found for Python < 3.12#47
petruki merged 11 commits intomasterfrom
staging

Conversation

@petruki
Copy link
Copy Markdown
Member

@petruki petruki commented Apr 18, 2026

This pull request introduces several improvements and maintenance updates across the codebase and CI configuration. The most notable changes are the addition of a compatibility module for the Self type, enhancements to dependency management for Python versions, improvements to workflow flexibility, and minor bug fixes.

Python compatibility and dependency management:

  • Added a new module switcher_client/lib/compat.py to provide a version-agnostic import for the Self type, ensuring compatibility across Python versions.
  • Updated pyproject.toml and Pipfile to conditionally include typing-extensions for Python ≤ 3.12, and adjusted dev dependencies for better environment setup. [1] [2]
  • Updated imports in switcher_client/switcher_data.py to use Self from the new compatibility module.

CI/CD workflow improvements:

  • Upgraded the SonarCloud GitHub Action to v7.1.0 in both master.yml and sonar.yml for improved scanning capabilities. [1] [2]
  • Added a skip-lint input to the staging.yml workflow, allowing developers to optionally skip linting during CI runs. [1] [2]
  • Removed the linting step from the master.yml workflow for streamlined testing.

Test coverage and code quality configuration:

  • Updated .coveragerc and sonar-project.properties to exclude the new compatibility module from coverage and SonarCloud analysis. [1] [2]

Bug fixes and documentation:

  • Fixed string formatting in error messages in switcher_client/errors/__init__.py for correct output.
  • Removed the Snyk badge from README.md for a cleaner project overview.

@petruki petruki changed the title Revert "chore(deps): bump pytest@9.0.3, pytest-httpx@0.36.2" fix: packages compatibity issues found for Python < 3.12 Apr 18, 2026
@petruki petruki self-assigned this Apr 18, 2026
@petruki petruki added bug Something isn't working patch Patches a code issue or dependency vulnerability/compatibility labels Apr 18, 2026
@sonarqubecloud
Copy link
Copy Markdown

@petruki petruki merged commit 84b54c7 into master Apr 18, 2026
15 checks passed
@petruki petruki deleted the staging branch April 18, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Patches a code issue or dependency vulnerability/compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant