Skip to content

Fix ruff lint and format violations - #64

Merged
ashnanze merged 4 commits into
mainfrom
ashlee/fix-lint
Jul 24, 2026
Merged

Fix ruff lint and format violations#64
ashnanze merged 4 commits into
mainfrom
ashlee/fix-lint

Conversation

@ashnanze

Copy link
Copy Markdown

Fix ruff lint and format violations

Summary

Fixes ruff lint and format violations.

Changes

  • _utils.py: Fix W1203 (use lazy % formatting instead of f-strings in logger.debug calls) + apply ruff format
  • test_utils_.py: Fix I001 (sort imports alphabetically) + apply ruff format
  • _constants.py: Apply ruff format
  • setup.py: Pin ruff>=0.7.2,<0.16.0 to prevent breaking changes from ruff 0.16.0's new default rules

Testing

  • ruff check src/connectedk8s — passes
  • ruff format --check src/connectedk8s — passes
  • No functional code changes; lint/format only

@github-actions

Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@ashnanze
ashnanze merged commit edcc0a5 into main Jul 24, 2026
7 of 11 checks passed
@ashnanze
ashnanze deleted the ashlee/fix-lint branch July 24, 2026 22:37
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

Successfully merging this pull request may close these issues.

2 participants