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:
==3.3.7
->==3.4.3
==9.1.14
->==9.1.17
==0.21.2
->==0.22.0
==1.13.0
->==1.14.0
==2.1.3
->==2.1.5
==0.0.272
->==0.0.275
==7.3.1
->==7.4.0
==3.10.0
->==3.11.1
==1.3.0
->==1.4.0
Release Notes
Python-Markdown/markdown (docs/MarkDown)
v3.4.3
Compare Source
v3.4.2
Compare Source
v3.4.1
Compare Source
v3.4
Compare Source
squidfunk/mkdocs-material (docs/mkdocs-material)
v9.1.17
: mkdocs-material-9.1.17Compare Source
v9.1.16
: mkdocs-material-9.1.16Compare Source
v9.1.15
: mkdocs-material-9.1.15Compare Source
Dockerfile
to latest version of base image9
,9.1
) to Docker imagemkdocstrings/mkdocstrings (docs/mkdocstrings)
v0.22.0
Compare Source
Compare with 0.21.2
Features
Code Refactoring
asottile/blacken-docs (misc-lint/blacken-docs)
v1.14.0
Compare Source
hadialqattan/pycln (misc-lint/pycln)
v2.1.5
Compare Source
Changed
pathspec
version artificial lock by @hadialqattanv2.1.4
Compare Source
Fixed
Changed
pathspec
version artificial lock by @hadialqattanastral-sh/ruff (misc-lint/ruff)
v0.0.275
Compare Source
What's Changed
Highlights include a 7-10x decrease in Ruff's cache size.
Rules
compare-to-empty-string
(PLC1901
) to nursery by @charliermarsh in https://github.com/astral-sh/ruff/pull/5264mutable-class-default
(RUF012
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5273typing.Final
formutable-class-default annotations
(RUF012
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5274deprecated-import
(UP035
) to prefertyping_extensions
in some versions by @tjkuson in https://github.com/astral-sh/ruff/pull/5291Bug Fixes
New Contributors
Full Changelog: astral-sh/ruff@v0.0.274...v0.0.275
v0.0.274
Compare Source
What's Changed
Follow-up release to
v0.0.273
to fix a panic in cache accesses.Bug Fixes
.unwrap()
on cache access by @charliermarsh in https://github.com/astral-sh/ruff/pull/5229RUF010
to remove unnecessarystr
calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/5232Full Changelog: astral-sh/ruff@v0.0.273...v0.0.274
v0.0.273
Compare Source
What's Changed
Highlights include:
flake8-import-conventions
, which require symbol renames across a file.Rules
copyright
] Implement copyright notice detection by @Ryang20718 in https://github.com/astral-sh/ruff/pull/4701flake8-datetimez
] Enable UTC-import fordatetime-utc-alias
fix by @charliermarsh in https://github.com/astral-sh/ruff/pull/5100flake8-implicit-str-concat
] Add autofix forISC001
by @tkukushkin in https://github.com/astral-sh/ruff/pull/4853flake8-import-conventions
] Enable autofix for unconventional imports rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/5152flake8-pyi
] Add autofix forSet
-to-AbstractSet
rewrite using reference tracking by @charliermarsh in https://github.com/astral-sh/ruff/pull/5074flake8-pyi
] Implement PYI044 by @Thomasdezeeuw in https://github.com/astral-sh/ruff/pull/5021flake8-return
] Extend revisedRET504
implementation towith
statements by @charliermarsh in https://github.com/astral-sh/ruff/pull/4998flake8-return
] Implement autofix for revisedRET504
rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/4999flake8-return
] RefactorRET504
to only enforce assignment-then-return pattern by @charliermarsh in https://github.com/astral-sh/ruff/pull/4997flake8-slots
] Add plugin, addSLOT000
,SLOT001
andSLOT002
by @qdegraaf in https://github.com/astral-sh/ruff/pull/4909perflint
] Addperflint
plugin, add first rulePERF102
by @qdegraaf in https://github.com/astral-sh/ruff/pull/4821pylint
] Add Pylint rulecomparison-with-itself
(R0124
) by @tjkuson in https://github.com/astral-sh/ruff/pull/4957pyupgrade
] Add a rule to remove unnecessary parentheses in class definitions by @charliermarsh in https://github.com/astral-sh/ruff/pull/5032ruff
] Add a rule for static keys in dict comprehensions by @rodjunger in https://github.com/astral-sh/ruff/pull/4929ruff
] Add rule to disallow implicit optional with autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/4831ruff
] Expand RUF008 to all classes, but to a new code (RUF012) by @adampauls in https://github.com/astral-sh/ruff/pull/4390ruff
] Remove unannotated attributes from RUF008 by @charliermarsh in https://github.com/astral-sh/ruff/pull/5049ruff
] Upgrade explicit-type-conversion rule (RUF010
) to remove unnecessarystr
calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/4971Settings
-o
/--output-file
) to write output to a file by @dhruvmanila in https://github.com/astral-sh/ruff/pull/4950Caching
Jupyter
Bug Fixes
__all__
by @charliermarsh in https://github.com/astral-sh/ruff/pull/4967pytest.fail
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5040async with
inredefined-loop-name
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5125DJ008
enforcement in stub files by @charliermarsh in https://github.com/astral-sh/ruff/pull/5139TypedDict
conversion logic for shadowed builtins and dunder methods by @charliermarsh in https://github.com/astral-sh/ruff/pull/5038__all__
definitions for docstring visibility by @charliermarsh in https://github.com/astral-sh/ruff/pull/5052reimplemented-builtin
if usingawait
by @tjkuson in https://github.com/astral-sh/ruff/pull/5101__future__
imports by @charliermarsh in https://github.com/astral-sh/ruff/pull/5128W293
by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/5172New Contributors
Full Changelog: astral-sh/ruff@v0.0.272...v0.0.273
pytest-dev/pytest (pytest/pytest)
v7.4.0
Compare 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
) ofskip
andxfail
reasons 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
%f
directive 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
level
iflevel
was disabled globally vialogging.disable(LEVEL)
.Bug Fixes
--tb=line
mode wherepytest.fail(pytrace=False)
tests reportNone
.--last-failed
whole-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
testpaths
are only considered when they are in use.__tracebackhide__ = True
still 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
-c
to now include--config-file
to make it clear that this flag applies to the usage of a custom config file.v7.3.2
Compare Source
pytest 7.3.2 (2023-06-10)
Bug Fixes
OSError: [Errno 36] File name too long
on 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).pytest-dev/pytest-mock (pytest/pytest-mock)
v3.11.1
Compare Source
(This release source code is identical to
3.11.0
except a small internal fix to deployment/CI)Fixed introspection for failed
assert_has_calls
(#365
_).Updated type annotations for
mocker.patch
andmocker.spy
(#364
_)... _#̴https://github.com/pytest-dev/pytest-mock/pull/365ull/365
.. [https://github.com/pytest-dev/pytest-mock/pull/364](https://github.com/pytest-dev/pytest-mock/pull/364)-mock/pull/364
v3.11.0
Compare Source
Fixed introspection for failed
assert_has_calls
(#365
_).Updated type annotations for
mocker.patch
andmocker.spy
(#364
_)... _#̴https://github.com/pytest-dev/pytest-mock/pull/365ull/365
.. [https://github.com/pytest-dev/pytest-mock/pull/364](https://github.com/pytest-dev/pytest-mock/pull/364)-mock/pull/364
python/mypy (typecheck/mypy)
v1.4.0
Compare Source
Configuration
📅 Schedule: Branch creation - "every 3 months on the first day of the month" (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.
This PR has been generated by Mend Renovate. View repository job log here.