Skip to content

Update to Ruff 0.1.1#1841

Merged
rht merged 3 commits intomesa:mainfrom
EwoutH:ruff-0.1.1
Oct 23, 2023
Merged

Update to Ruff 0.1.1#1841
rht merged 3 commits intomesa:mainfrom
EwoutH:ruff-0.1.1

Conversation

@EwoutH
Copy link
Member

@EwoutH EwoutH commented Oct 23, 2023

Note that Ruff has adopted a new version policy (https://docs.astral.sh/ruff/versioning/), similar to SemVer. So we can now do >=0.1.1,<0.2.0 to get bugfixes and deprecation warnings, but don't get new (syntax) features.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd18cdf) 79.12% compared to head (fb01588) 79.12%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1841   +/-   ##
=======================================
  Coverage   79.12%   79.12%           
=======================================
  Files          15       15           
  Lines         915      915           
  Branches      194      194           
=======================================
  Hits          724      724           
  Misses        168      168           
  Partials       23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Note that Ruff has adopted a new version policy (https://docs.astral.sh/ruff/versioning/), similar to SemVer. So we can now do >=0.1.1,<0.2.0 to get bugfixes and deprecation warnings, but don't get new (syntax) features.
Update the CLI syntax to --output-format=github for Ruff

See astral-sh/ruff#8014
@EwoutH
Copy link
Member Author

EwoutH commented Oct 23, 2023

Cleaned up the commits, ready for review.

See astral-sh/ruff#7984 and astral-sh/ruff#8014 for the change from --format=github to --output-format=github, which was needed with Ruff 0.1.0.

with:
python-version: "3.12"
- run: pip install ruff==0.0.275
- run: pip install "ruff>=0.1.1,<0.2.0" # Update periodically
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ruff~=0.1.1 should do.

@EwoutH
Copy link
Member Author

EwoutH commented Oct 23, 2023

Agreed, as long as they approximately follow SemVer that works.

Feel free to squash on merge.

@rht
Copy link
Contributor

rht commented Oct 23, 2023

The ruff~=0.1.1 is syntactically equivalent to >=0.1.1,<0.2.0 regardless of the versioning scheme used by Ruff.

@rht rht merged commit d92b742 into mesa:main Oct 23, 2023
@rht
Copy link
Contributor

rht commented Oct 23, 2023

Merged, thank you.

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