Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock file maintenance Python dependencies #478

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 31, 2025

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
lockFileMaintenance All locks refreshed
cosl charm-libs patch 0.0.51 -> 0.0.54 age adoption passing confidence
ops (changelog) charm-libs minor 2.17.1 -> 2.18.1 age adoption passing confidence
ops (changelog) dependencies minor ^2.17.1 -> ^2.18.1 age adoption passing confidence
ruff (source, changelog) format patch ^0.9.3 -> ^0.9.5 age adoption passing confidence

🔧 This Pull Request updates lock files to use the latest dependency versions.


Release Notes

canonical/cos-lib (cosl)

v0.0.54

Compare Source

What's Changed

Full Changelog: canonical/cos-lib@0.0.53...0.0.54

canonical/operator (ops)

v2.18.1

Compare Source

Fixes

  • Ensure that the event snapshot is available when one observer defers and another does not (#​1562)
  • Maintain transaction integrity on first run (#​1558)

Documentation

  • Set up intersphinx and add links (#​1546)

v2.18.0

Compare Source

Features

  • Don't store duplicate events in the notice queue (#​1372)

Fixes

  • Remove ops.main.main deprecation warning, and avoid warnings in action output (#​1496)

Documentation

  • Use the right ops-scenario for building the docs (#​1470)
  • Go full Diátaxis, ingesting the relevant juju.is/docs/sdk documentation by @​tmihoc (#​1481)
  • Update boilerplate links (#​1515)
  • Fix broken links and use cross references instead of absolute links (#​1519)
  • Use explicit framework param instead of *args (#​1523)
  • Add doc style tips to HACKING.md (#​1528)
  • Fix link to Juju docs in Kubernetes charm tutorial (#​1529)
  • Remove the publish badge from the README (#​1505)
  • Add how-to for storing state (#​1534)
  • Improve info about contributing to docs (#​1533)
  • Fix formatting errors in HACKING.md (#​1539)

Continuous Integration

  • Add support for injecting the latest ops when uv is used (#​1477)
  • Don't cancel other unit tests when one fails (#​1471)
  • Use Concierge to set up the smoke test environments (#​1541)
  • Bump poetry to 2.0 to match downstream (#​1542)
  • Enable the prometheus-k8s revision updates again (#​1544)
  • Include Juju 2.9 in the smoke tests (#​1545)

Testing

  • Handle warnings generated by our own tests (#​1469)
  • Allow check to fail an additional time when running the test (#​1531)
astral-sh/ruff (ruff)

v0.9.5

Compare Source

Preview features
  • Recognize all symbols named TYPE_CHECKING for in_type_checking_block (#​15719)
  • [flake8-comprehensions] Handle builtins at top of file correctly for unnecessary-dict-comprehension-for-iterable (C420) (#​15837)
  • [flake8-logging] .exception() and exc_info= outside exception handlers (LOG004, LOG014) (#​15799)
  • [flake8-pyi] Fix incorrect behaviour of custom-typevar-return-type preview-mode autofix if typing was already imported (PYI019) (#​15853)
  • [flake8-pyi] Fix more complex cases (PYI019) (#​15821)
  • [flake8-pyi] Make PYI019 autofixable for .py files in preview mode as well as stubs (#​15889)
  • [flake8-pyi] Remove type parameter correctly when it is the last (PYI019) (#​15854)
  • [pylint] Fix missing parens in unsafe fix for unnecessary-dunder-call (PLC2801) (#​15762)
  • [pyupgrade] Better messages and diagnostic range (UP015) (#​15872)
  • [pyupgrade] Rename private type parameters in PEP 695 generics (UP049) (#​15862)
  • [refurb] Also report non-name expressions (FURB169) (#​15905)
  • [refurb] Mark fix as unsafe if there are comments (FURB171) (#​15832)
  • [ruff] Classes with mixed type variable style (RUF053) (#​15841)
  • [airflow] BashOperator has been moved to airflow.providers.standard.operators.bash.BashOperator (AIR302) (#​15922)
  • [flake8-pyi] Add autofix for unused-private-type-var (PYI018) (#​15999)
  • [flake8-pyi] Significantly improve accuracy of PYI019 if preview mode is enabled (#​15888)
Rule changes
  • Preserve triple quotes and prefixes for strings (#​15818)
  • [flake8-comprehensions] Skip when TypeError present from too many (kw)args for C410,C411, and C418 (#​15838)
  • [flake8-pyi] Rename PYI019 and improve its diagnostic message (#​15885)
  • [pep8-naming] Ignore @override methods (N803) (#​15954)
  • [pyupgrade] Reuse replacement logic from UP046 and UP047 to preserve more comments (UP040) (#​15840)
  • [ruff] Analyze deferred annotations before enforcing mutable-(data)class-default and function-call-in-dataclass-default-argument (RUF008,RUF009,RUF012) (#​15921)
  • [pycodestyle] Exempt sys.path += ... calls (E402) (#​15980)
Configuration
  • Config error only when flake8-import-conventions alias conflicts with isort.required-imports bound name (#​15918)
  • Workaround Even Better TOML crash related to allOf (#​15992)
Bug fixes
  • [flake8-comprehensions] Unnecessary list comprehension (rewrite as a set comprehension) (C403) - Handle extraneous parentheses around list comprehension (#​15877)
  • [flake8-comprehensions] Handle trailing comma in fixes for unnecessary-generator-list/set (C400,C401) (#​15929)
  • [flake8-pyi] Fix several correctness issues with custom-type-var-return-type (PYI019) (#​15851)
  • [pep8-naming] Consider any number of leading underscore for N801 (#​15988)
  • [pyflakes] Visit forward annotations in TypeAliasType as types (F401) (#​15829)
  • [pylint] Correct min/max auto-fix and suggestion for (PL1730) (#​15930)
  • [refurb] Handle unparenthesized tuples correctly (FURB122, FURB142) (#​15953)
  • [refurb] Avoid None | None as well as better detection and fix (FURB168) (#​15779)
Documentation
  • Add deprecation warning for ruff-lsp related settings (#​15850)
  • Docs (linter.md): clarify that Python files are always searched for in subdirectories (#​15882)
  • Fix a typo in non_pep695_generic_class.rs (#​15946)
  • Improve Docs: Pylint subcategories' codes (#​15909)
  • Remove non-existing lint.extendIgnore editor setting (#​15844)
  • Update black deviations (#​15928)
  • Mention UP049 in UP046 and UP047, add See also section to UP040 (#​15956)
  • Add instance variable examples to RUF012 (#​15982)
  • Explain precedence for ignore and select config (#​15883)

v0.9.4

Compare Source

Preview features
  • [airflow] Extend airflow context parameter check for BaseOperator.execute (AIR302) (#​15713)
  • [airflow] Update AIR302 to check for deprecated context keys (#​15144)
  • [flake8-bandit] Permit suspicious imports within stub files (S4) (#​15822)
  • [pylint] Do not trigger PLR6201 on empty collections (#​15732)
  • [refurb] Do not emit diagnostic when loop variables are used outside loop body (FURB122) (#​15757)
  • [ruff] Add support for more re patterns (RUF055) (#​15764)
  • [ruff] Check for shadowed map before suggesting fix (RUF058) (#​15790)
  • [ruff] Do not emit diagnostic when all arguments to zip() are variadic (RUF058) (#​15744)
  • [ruff] Parenthesize fix when argument spans multiple lines for unnecessary-round (RUF057) (#​15703)
Rule changes
  • Preserve quote style in generated code (#​15726, #​15778, #​15794)
  • [flake8-bugbear] Exempt NewType calls where the original type is immutable (B008) (#​15765)
  • [pylint] Honor banned top-level imports by TID253 in PLC0415. (#​15628)
  • [pyupgrade] Ignore is_typeddict and TypedDict for deprecated-import (UP035) (#​15800)
CLI
  • Fix formatter warning message for flake8-quotes option (#​15788)
  • Implement tab autocomplete for ruff config (#​15603)
Bug fixes
  • [flake8-comprehensions] Do not emit unnecessary-map diagnostic when lambda has different arity (C417) (#​15802)
  • [flake8-comprehensions] Parenthesize sorted when needed for unnecessary-call-around-sorted (C413) (#​15825)
  • [pyupgrade] Handle end-of-line comments for quoted-annotation (UP037) (#​15824)
Documentation
  • Add missing config docstrings (#​15803)
  • Add references to trio.run_process and anyio.run_process (#​15761)
  • Use uv init --lib in tutorial (#​15718)

Configuration

📅 Schedule: Branch creation - "after 1am and before 3am every weekday" in timezone Etc/UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from a team, taurus-forever, dragomirp, marceloneppel and lucasgameiroborges and removed request for a team January 31, 2025 02:08
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.20%. Comparing base (cd0061a) to head (f09de85).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #478   +/-   ##
=======================================
  Coverage   75.20%   75.20%           
=======================================
  Files           9        9           
  Lines        1319     1319           
  Branches      239      239           
=======================================
  Hits          992      992           
  Misses        254      254           
  Partials       73       73           

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

@renovate renovate bot force-pushed the renovate/python-dependencies branch 2 times, most recently from 5bf4726 to 014b3de Compare February 3, 2025 01:07
pyproject.toml Outdated
@@ -7,7 +7,7 @@ requires-poetry = ">=2.0.0"

[tool.poetry.dependencies]
python = ">=3.8,<3.9 || >=3.10,<4"
ops = "^2.17.1"
ops = "^2.18.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

@dragomirp please ping me to review it once.
For the history: canonical/operator#1561

Copy link
Contributor

Choose a reason for hiding this comment

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

Issue is fixed on ops 2.18.1

@renovate renovate bot force-pushed the renovate/python-dependencies branch from 014b3de to 9f3f470 Compare February 5, 2025 10:16
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 9f3f470 to fc333d6 Compare February 6, 2025 14:54
@renovate renovate bot force-pushed the renovate/python-dependencies branch from fc333d6 to f09de85 Compare February 7, 2025 02:08
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

@dragomirp you were sharing issues with ops 2.18.
was it addressed? is it safe to jump here?

@dragomirp
Copy link
Contributor

@dragomirp you were sharing issues with ops 2.18. was it addressed? is it safe to jump here?

Yes, issue was fixed in 2.18.1

@dragomirp dragomirp merged commit df2129c into main Feb 7, 2025
58 checks passed
@dragomirp dragomirp deleted the renovate/python-dependencies branch February 7, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants