⬆️ deps: Update dependencies (non-major) #22
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.1.303->1.1.3347.3.1->7.4.3^0.0.261->^0.1.04.5.0->4.8.0Release Notes
RobertCraigie/pyright-python (pyright)
v1.1.334Compare Source
v1.1.333Compare Source
v1.1.332Compare Source
v1.1.331Compare Source
v1.1.330Compare Source
v1.1.329Compare Source
v1.1.328Compare Source
v1.1.327Compare Source
v1.1.326Compare Source
v1.1.325Compare Source
v1.1.324Compare Source
v1.1.323Compare Source
v1.1.322Compare Source
v1.1.321Compare Source
v1.1.320Compare Source
v1.1.318Compare Source
v1.1.317Compare Source
v1.1.316Compare Source
v1.1.315Compare Source
v1.1.314Compare Source
v1.1.313Compare Source
v1.1.312Compare Source
v1.1.311Compare Source
v1.1.310Compare Source
v1.1.309Compare Source
v1.1.308Compare Source
v1.1.307Compare Source
v1.1.306Compare Source
v1.1.305Compare Source
v1.1.304Compare Source
pytest-dev/pytest (pytest)
v7.4.3: pytest 7.4.3 (2023-10-24)Compare Source
Bug Fixes
#10447: Markers are now considered in the reverse mro order to ensure base class markers are considered first -- this resolves a regression.
#11239: Fixed
:=in asserts impacting unrelated test cases.#11439: Handled an edge case where :data:
sys.stderrmight already be closed when :ref:faulthandleris tearing down.v7.4.2: pytest 7.4.2 (2023-09-07)Compare Source
Bug Fixes
#11237: Fix doctest collection of
functools.cached_propertyobjects.#11306: Fixed bug using
--importmode=importlibwhich would cause package__init__.pyfiles to be imported more than once in some cases.#11367: Fixed bug where
user_propertieswhere not being saved in the JUnit XML file if a fixture failed during teardown.#11394: Fixed crash when parsing long command line arguments that might be interpreted as files.
Improved Documentation
v7.4.1: pytest 7.4.1 (2023-09-02)Compare Source
Bug Fixes
#10337: Fixed bug where fake intermediate modules generated by
--import-mode=importlibwould not include thechild modules as attributes of the parent modules.
#10702: Fixed error assertion handling in
pytest.approxwhenNoneis an expected or received value when comparing dictionaries.#10811: Fixed issue when using
--import-mode=importlibtogether with--doctest-modulesthat caused modulesto be imported more than once, causing problems with modules that have import side effects.
v7.4.0Compare Source
pytest 7.4.0 (2023-06-23)
Features
ExceptionInfo.from_exception() <pytest.ExceptionInfo.from_exception>{.interpreted-text role="func"}, a simpler way to create an~pytest.ExceptionInfo{.interpreted-text role="class"} from an exception.This can replace
ExceptionInfo.from_exc_info() <pytest.ExceptionInfo.from_exc_info()>{.interpreted-text role="func"} for most uses.Improvements
#10872: Update test log report annotation to named tuple and fixed inconsistency in docs for
pytest_report_teststatus{.interpreted-text role="hook"} hook.#10907: When an exception traceback to be displayed is completely filtered out (by mechanisms such as
__tracebackhide__, internal frames, and similar), now only the exception string and the following message are shown:"All traceback entries are hidden. Pass [--full-trace]{.title-ref} to see hidden and internal frames.".
Previously, the last frame of the traceback was shown, even though it was hidden.
#10940: Improved verbose output (
-vv) ofskipandxfailreasons by performing text wrapping while leaving a clear margin for progress output.Added
TerminalReporter.wrap_write()as a helper for that.#10991: Added handling of
%fdirective to print microseconds in log format options, such aslog-date-format.#11005: Added the underlying exception to the cache provider's path creation and write warning messages.
#11013: Added warning when
testpaths{.interpreted-text role="confval"} is set, but paths are not found by glob. In this case, pytest will fall back to searching from the current directory.#11043: When [--confcutdir]{.title-ref} is not specified, and there is no config file present, the conftest cutoff directory ([--confcutdir]{.title-ref}) is now set to the
rootdir <rootdir>{.interpreted-text role="ref"}.Previously in such cases, [conftest.py]{.title-ref} files would be probed all the way to the root directory of the filesystem.
If you are badly affected by this change, consider adding an empty config file to your desired cutoff directory, or explicitly set [--confcutdir]{.title-ref}.
#11081: The
norecursedirs{.interpreted-text role="confval"} check is now performed in apytest_ignore_collect{.interpreted-text role="hook"} implementation, so plugins can affect it.If after updating to this version you see that your [norecursedirs]{.title-ref} setting is not being respected,
it means that a conftest or a plugin you use has a bad [pytest_ignore_collect]{.title-ref} implementation.
Most likely, your hook returns [False]{.title-ref} for paths it does not want to ignore,
which ends the processing and doesn't allow other plugins, including pytest itself, to ignore the path.
The fix is to return [None]{.title-ref} instead of [False]{.title-ref} for paths your hook doesn't want to ignore.
#8711:
caplog.set_level() <pytest.LogCaptureFixture.set_level>{.interpreted-text role="func"} andcaplog.at_level() <pytest.LogCaptureFixture.at_level>{.interpreted-text role="func"}will temporarily enable the requested
leveliflevelwas disabled globally vialogging.disable(LEVEL).Bug Fixes
--tb=linemode wherepytest.fail(pytrace=False)tests reportNone.--last-failedwhole-file skipping functionality ("skipped N files") fornon-python test files <non-python tests>{.interpreted-text role="ref"}.testpaths{.interpreted-text role="confval"} to be considered for loading initial conftests,even when it was not utilized (e.g. when explicit paths were given on the command line).
Now the
testpathsare only considered when they are in use.__tracebackhide__ = Truestill being shown for chained exceptions (parts after "... the above exception ..." message).--debug.Improved Documentation
caplog.set_level() <pytest.LogCaptureFixture.set_level>{.interpreted-text role="func"}.Trivial/Internal Changes
-cto now include--config-fileto make it clear that this flag applies to the usage of a custom config file.v7.3.2Compare Source
pytest 7.3.2 (2023-06-10)
Bug Fixes
OSError: [Errno 36] File name too longon some systems.testpaths{.interpreted-text role="confval"} is now honored to load rootconftests.--last-failed's "(skipped N files)" functionality for files inside of packages (directories with [__init__.py]{.title-ref} files).astral-sh/ruff (ruff)
v0.1.3Compare Source
This release includes a variety of improvements to the Ruff formatter, removing several known and
unintentional deviations from Black.
Formatter
None,TrueandFalse(#8189)isortsettings (#8192)isort.force-single-lineis true (#8244)SourceKind::difffor formatter (#8240)fmt:offwith trailing child comment (#8234)IpyEscapeCommand(#8207)Linter
pylint] Add buffer methods tobad-dunder-method-name(PLW3201) exclusions (#8190)externalcodes setting inunused-noqa(#8177)line-lengthsetting for isort in lieu ofpycodestyle.max-line-length(#8235)unnecessary-paren-on-raise-exceptionto unsafe for unknown types (#8231)W605(#8255)Documentation
unused-noqa(#8172)externaloption tounused-noqadocumentation (#8171)magic-trailing-commaoption in README (#8200)v0.1.2Compare Source
This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter.
Try it today with
ruff format! Check out the blog post and read the docs.Preview features
pylint] Implementnon-ascii-module-import(C2403) (#8056)pylint] implementnon-ascii-name(C2401) (#8038)pylint] Implement unnecessary-lambda (W0108) (#7953)refurb] Implementread-whole-file(FURB101) (#7682)E223,E224, andE242(#8143)E225,E226,E227, andE228(#8136)E252(#8142)E261(#8114)E273andE274(#8144)E275(#8133)SIM401to catch ternary operations (#7415)E721to allowisandisnot for direct type comparisons (#7905)Rule changes
backports.strenumtodeprecated-imports(#8113)SIM112to ignorehttps_proxy,http_proxy, andno_proxy(#8140)literal-membership(PLR6201) to be unsafe (#8097)mutable-argument-defaults(B006) to be unsafe (#8108)Formatter
line-endingdefault toauto(#8057)has_own_parentheses(#8100)--line-lengthoption fromformatcommand (#8131)line-lengthdocumentation (#8150)CLI
ruff formatcommand in help menus (#8167)ruff versioncommand with long version display (#8034)Configuration
pycodestyle.max-line-lengthoption (#8039)Bug fixes
sys.version_infoslices inoutdated-version-block(#8112)TYPE_CHECKINGblocks (#8072)Documentation
too-many-argumentslint (#8092)extend-unsafe-fixesandextend-safe-fixesexample (#8139)flake8-import-conventionsoptions (#8115)OptionsJSON schema description (#8081)pytext->pytest) (#8117)magic-value-comparisonexample in docs (#8111)v0.1.1Compare Source
Rule changes
escape-sequence-in-docstring(D301) (#7970)Configuration
#(deprecated)attribute in configuration options (#8035)[format|lint].excludeoptions (#8000)tab-sizesetting in formatter (#8006)lint.preview(#8002)Preview features
pylint] Implementliteral-membership(PLR6201) (#7973)pylint] Implementtoo-many-boolean-expressions(PLR0916) (#7975)pylint] Implementmisplaced-bare-raise(E0704) (#7961)pylint] Implementglobal-at-module-level(W0604) (#8058)pylint] Implementunspecified-encoding(PLW1514) (#7939)triple-single-quotes(D300) (#7967)Formatter
ruff format(#7878)--target-versiontoruff format(#8055)inkeyword (#8054)--diffoption toruff format(#7937)passover ellipsis in non-function/class contexts (#8049)Bug fixes
bad-dunder-method-namefor_(#8015)URLOpenaudit (#8047)iteration-over-setto preserve whitespace and comments (#8001)Documentation
B005docs (#8028)--output-format(#8014)lint.previewandformat.preview(#8032)RuleGroup::Preview. (#7989)v0.1.0Compare Source
This is the first release which uses the
CHANGELOGfile. See GitHub Releases for prior changelog entries.Read Ruff's new versioning policy.
Breaking changes
formatsetting has been removed (#7984)formatsetting cannot be used to configure the output format, useoutput-formatinsteadRUFF_FORMATenvironment variable is ignored, useRUFF_OUTPUT_FORMATinstead--formatoption has been removed fromruff check, use--output-formatinsteadRule changes
reimplemented-starmap(FURB140) to catch calls with a single and starred argument (#7768)RUF015(#7848)SIM15to allowopenfollowed byclose(#7916)msgspec.Structdefault-copy semantics inRUF012(#7786)sqlalchemymethods to `flake8-boolean-trap`` exclusion list (#7874)PLR1714(#7910)PIE804(#7884)PLC0208(#7887)PYI055(#7886)non-pep695-type-aliasto require--unsafe-fixesoutside of stub files (#7836)UP018(#7913)PLW3201to supportEnumsunder names (#7987)Preview features
unnecessary-key-checkto simplifykey in dct and dct[key]todct.get(key)(#7895)assignment-in-assertto prevent walrus expressions in assert statements (#7856)refurb] Addsingle-item-membership-test(FURB171) (#7815)pylint] Addand-or-ternary(R1706) (#7811)New rules are added in preview.
Configuration
unsafe-fixessetting (#7769)extend-safe-fixesandextend-unsafe-fixesfor promoting and demoting fixes (#7841)CLI
--unsafe-fixesoption for opt-in to display and apply unsafe fixes (#7769)--formatoption in warning (#7837)--check(#7788)check --diffto include unsafe fix hints (#7790)cellfield to JSON output format (#7664)Safe,Unsafe, andDisplay(#7843)Bug fixes
SIM110with a yield in the condition (#7801)C414fixes (#7775)unnecessary-enumeratelensuggestion (#7781)SIM101(#7798)E251false positive inside f-strings (#7894)stdin(#7789)ruff rule(#7812)--unfixableinISCrules (#7917)PIE804(#7922)PTH118forPath.joinpathwith starred arguments (#7852)outdated-version-blockwhen using greater than comparisons (#7920)gettextcalls (#7898)PLR6301(#7933)TCH004(#7968)cache-dirrelative to project root (#7962)TCH003(#7954)line-length(#7883)coalescekeyword (#7876)Documentation
reimplemented-starmapperformance effects (#7846)PLR6301(#7831)UP038docs to note that it results in slower code (#7872)unnecessary-subscript-reversal(#7774)FURB177example (#7832)Formatter
ruff formatmessage (#7867)ruff_python_formattergenerate.py comment (#7850)Playground
Quick Fixaction (#7824)v0.0.292Compare Source
What's Changed
Highlights
This release includes full support for Python 3.12 (out now!), including the new type parameter (PEP 695) and f-string syntaxes (PEP 701).
PEP 701 lifts many of the restrictions on f-strings that existed in the past, allowing for arbitrarily nested f-strings, consistent quote style within f-strings, and more, all of which are now supported by Ruff (thanks to @dhruvmanila in https://github.com/astral-sh/ruff/pull/7376).
Breaking Changes
format.quote-styleno longer affects triple-quoted strings, to align with common conventions as well as the guidance from PEP 8 and PEP 257 (see: https://github.com/astral-sh/ruff/pull/7680).line-too-long(E501) now ignores trailing pragma comments (like# type: ignoreand# noqa) when computing line length (see: https://github.com/astral-sh/ruff/pull/7692). This is similar to flake8-bugbear's methodology for detecting overlong lines, and ensures that adding pragmas like# noqadoes not introduce further lint errors.Rules
refurb] Implementprint-empty-string(FURB105) by @tjkuson in https://github.com/astral-sh/ruff/pull/7617flake8-bandit] Implementweak-cryptographic-key(S505) by @mkniewallner in https://github.com/astral-sh/ruff/pull/7703refurb] Implementimplicit-cwd(FURB177) by @danparizher in https://github.com/astral-sh/ruff/pull/7704unnecessary-pass(PIE790) now flags all unnecessarypassstatements; previously, the rule only flaggedpassstatements that followed a docstring in a two-statement body (see: https://github.com/astral-sh/ruff/pull/7697).Settings
lintsection to Ruff configuration by @MichaReiser in https://github.com/astral-sh/ruff/pull/7549explicit-preview-rulesto toggle explicit selection of preview rules by @zanieb in https://github.com/astral-sh/ruff/pull/7390stdoutby @charliermarsh in https://github.com/astral-sh/ruff/pull/7748unnecessary-pass(PIE790) to trigger on all unnecessarypassstatements by @tjkuson in https://github.com/astral-sh/ruff/pull/7697Bug Fixes
PT022autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7613builtin.open()withPath.open()if the latter doesn't support all options by @konstin in https://github.com/astral-sh/ruff/pull/7637Expr::Namechecks to rules which useis_logger_candidateby @qdegraaf in https://github.com/astral-sh/ruff/pull/7521__all__assignments by @charliermarsh in https://github.com/astral-sh/ruff/pull/7673commented-out-codeby @tjkuson in https://github.com/astral-sh/ruff/pull/7523unnecessary-passby @charliermarsh in https://github.com/astral-sh/ruff/pull/7715quadratic-list-summationby @charliermarsh in https://github.com/astral-sh/ruff/pull/7719NotebookIndexforDiagnosticson stdin by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7663LexErrorfor dedent to incorrect level by @MichaReiser in https://github.com/astral-sh/ruff/pull/7638DeprecatedLogWarnto check forExpr::Atrributecalls by @qdegraaf in https://github.com/astral-sh/ruff/pull/7677Other Changes
commented-out-code(~50-80%) by @charliermarsh in https://github.com/astral-sh/ruff/pull/7706New Contributors
Full Changelog: astral-sh/ruff@v0.0.291...v0.0.292
v0.0.291Compare Source
What's Changed
Deprecations
The
formatcommand-line argument and configuration option has been renamed tooutput-format. While Ruff will continue to respectformatwhen passed as a command-line argument or configuration option, this backwards-compatible support will be dropped in a future release. See: https://github.com/astral-sh/ruff/pull/7514.Rules
flake8-bandit] ImplementS201:flask-debug-trueby @mkniewallner in https://github.com/astral-sh/ruff/pull/7503flake8-bandit] ImplementS507:ssh_no_host_key_verificationby @mkniewallner in https://github.com/astral-sh/ruff/pull/7528flake8-logging] ImplementLOG002:invalid-get-logger-argumentby @dhruvmanila in https://github.com/astral-sh/ruff/pull/7399flake8-logging] ImplementLOG007:exception-without-exc-infoby @qdegraaf in https://github.com/astral-sh/ruff/pull/7410refurb] ImplementFURB140:reimplemented-starmapby @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/7253refurb] ImplementFURB148:unnecessary-enumerateby @tjkuson in https://github.com/astral-sh/ruff/pull/7454ruff] Detectasyncio.get_running_loopcalls in RUF006 by @charliermarsh in https://github.com/astral-sh/ruff/pull/7562Settings
--no-Xvariants in CLI help by @charliermarsh in https://github.com/astral-sh/ruff/pull/7504formatoption tooutput-formatby @MichaReiser in https://github.com/astral-sh/ruff/pull/7514ruff ruleby @charliermarsh in https://github.com/astral-sh/ruff/pull/7560Bug Fixes
bad-dunder-method-nameto permitattrsdunders by @tjkuson in https://github.com/astral-sh/ruff/pull/7472.exception()calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/7524PERF102fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7554os.erroras anOSErroralias by @charliermarsh in https://github.com/astral-sh/ruff/pull/7582bad-dunder-method-nameto permit__html__by @jaap3 in https://github.com/astral-sh/ruff/pull/7492New Contributors
Full Changelog: astral-sh/ruff@v0.0.290...v0.0.291
v0.0.290[Compare Source](https://togithub.com/ast
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.