lovetheguitar
66eff85e54
docs: use double quotes for cross-platform compatibility in example code
2024-06-22 19:48:15 +02:00
Sviatoslav Sydorenko (Святослав Сидоренко)
24450e33e3
📝 Use explicit RST roles for built-in types in docs
2024-06-21 22:05:43 +02:00
lovetheguitar
598d881c9c
docs: document keyword argument support in marker expressions
2024-06-21 20:51:01 +02:00
Ronny Pfannschmidt
bbe6b4a218
Merge pull request #12467 from RonnyPfannschmidt/ronny/new-annotations-try-2
...
from __future__ import annotations + migrate
2024-06-21 10:24:56 +02:00
Ronny Pfannschmidt
9295f9ffff
RFC: from __future__ import annotations + migrate
2024-06-20 11:03:03 +02:00
Sviatoslav Sydorenko
39b548e6ea
📝 Make "setuptools entrypoint" term generic
...
This feature grew out of `setuptools` but the modern interface for
extracting this information from the distribution package metadata
is `importlib.metadata`. So the patch attempts to reflect this in
the documentation messaging.
Refs:
* https://docs.python.org/3/library/importlib.metadata.html#entry-points
* https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata
* https://packaging.python.org/en/latest/specifications/entry-points/#entry-points
2024-06-20 11:01:10 +02:00
Ran Benita
4cd80e19c5
Merge pull request #12415 from pytest-dev/release-8.2.2
...
Prepare release 8.2.2
(cherry picked from commit f3a494cca3
)
2024-06-04 16:52:15 +03:00
pytest bot
32baa0b93d
Prepare release version 8.2.1
...
(cherry picked from commit 66ff8dffdf
)
2024-05-19 22:11:09 +03:00
Josh Soref
8d00811822
Spelling and minor changes ( #12122 )
2024-05-15 13:49:34 -03:00
dj
2ede8778d0
Document using PYTEST_VERSION to detect if a code is running inside pytest ( #12153 )
...
Related to #9502
2024-04-28 15:52:29 -03:00
Bruno Oliveira
79ca819e59
Merge pull request #12257 from pytest-dev/release-8.2.0
...
Prepare release 8.2.0
(cherry picked from commit 69c3bcea36
)
2024-04-27 20:36:02 -03:00
Bruno Oliveira
93c2cdf6d6
cherry-pick release-8.1.2 ( #12252 )
...
(cherry picked from commit 7df3dbc545
)
2024-04-26 15:25:44 -03:00
Bruno Oliveira
140c777590
Merge pull request #12094 from pytest-dev/release-8.1.1
...
Prepare release 8.1.1
(cherry picked from commit abb0cf4922
)
2024-03-09 08:52:31 -03:00
Ran Benita
e410705561
Cherry-pick 8.1.0 release notes
...
(cherry picked from commit 0a536810dc
)
2024-03-03 23:27:02 +02:00
Ran Benita
7460b1aa31
Cherry pick 8.0.2 release notes
...
(cherry picked from commit e53f798932
)
2024-02-25 00:25:49 +02:00
Ran Benita
22b541e4eb
Merge pull request #11993 from pytest-dev/release-8.0.1
...
Prepare release 8.0.1
(cherry picked from commit 68524d4858
)
2024-02-17 00:11:27 +02:00
Ran Benita
a182e10b06
Enable lint PGH004 - Use specific rule codes when using noqa
2024-02-09 11:14:36 +02:00
Pierre Sassoulas
4588653b24
Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff
...
ruff is faster and handle everything we had prior.
isort configuration done based on the indication from
https://github.com/astral-sh/ruff/issues/4670 , previousely based on
reorder-python-import (#11896 )
flake8-docstrings was a wrapper around pydocstyle (now archived) that
explicitly asks to use ruff in https://github.com/PyCQA/pydocstyle/pull/658 .
flake8-typing-import is useful mainly for project that support python 3.7
and the one useful check will be implemented in https://github.com/astral-sh/ruff/issues/2302
We need to keep blacken-doc because ruff does not handle detection
of python code inside .md and .rst. The direct link to the repo is
now used to avoid a redirection.
Manual fixes:
- Lines that became too long
- % formatting that was not done automatically
- type: ignore that were moved around
- noqa of hard to fix issues (UP031 generally)
- fmt: off and fmt: on that is not really identical
between black and ruff
- autofix re-order in pre-commit from faster to slower
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-02-02 09:27:00 +01:00
Bruno Oliveira
8b54596639
Run pre-commit on all files
...
Running pre-commit on all files after replacing reorder-python-imports by isort.
2024-01-30 16:35:46 -03:00
Ran Benita
c6da0d20d2
Merge pull request #11864 from bluetech/release-8.0.0
...
Prepare release version 8.0.0
(cherry picked from commit 24c681d4ee
)
2024-01-28 00:00:15 +02:00
Ran Benita
ca5bbd0a9f
Merge pull request #11835 from pytest-dev/release-8.0.0rc2
...
Prepare release version 8.0.0rc2
(cherry picked from commit 97960bdd14
)
2024-01-17 23:45:21 +02:00
Ran Benita
0f18a7fe5e
Remove deprecated nose support
2024-01-02 12:20:47 +02:00
Ran Benita
d3c7ba310c
Merge pull request #11744 from pytest-dev/release-8.0.0rc1
...
Prepare release 8.0.0rc1
(cherry picked from commit 665e4e58d3
)
2024-01-02 10:59:26 +02:00
Ran Benita
385796ba49
Rework Session and Package collection
...
Fix #7777 .
2023-12-10 17:01:39 +02:00
Ran Benita
f76af423b0
doc/reference: document `FixtureLookupError`
2023-12-07 11:50:02 +02:00
Ran Benita
9056db4de5
doc: fix some broken Sphinx references
2023-12-07 00:30:35 +02:00
ryanpudd
3ab70cd561
Use hyphenated cmdline options in docs ( #11490 )
...
Fix #11091
2023-10-10 21:16:24 +00:00
Bruno Oliveira
0a06db0729
Merge pull request #11408 from pytest-dev/release-7.4.2 ( #11409 )
...
Prepare release 7.4.2
(cherry picked from commit b0c4775a28
)
2023-09-07 16:10:19 -03:00
Bruno Oliveira
f08782d8d0
Merge pull request #11377 from pytest-dev/release-7.4.1
...
Prepare release 7.4.1
(cherry picked from commit 82eb86f707
)
2023-09-02 12:45:58 -03:00
Christoph Anton Mitterer
b8b74331b4
Improve docs for Parametrizing conditional raising ( #11279 )
...
What one typically actually wants in such a case is both, checking for some
resulting values *and* checking for some expected exception.
Since this is easily possible with the `nullcontext` context manager, adapt the
example accordingly (needlessly using a different name rather just confuses people).
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-08-03 13:31:17 -03:00
Ran Benita
497a1d798a
doc/example/parametrize: a few fixes/improvements
...
Remove "Indirect" from a few section names -- not actually indirect.
Also few minor updates to the related multipython.py example.
2023-07-20 09:51:11 +03:00
Ran Benita
b41acaea12
Switch to new-style pluggy hook wrappers
...
Fix #11122 .
2023-07-14 22:47:48 +03:00
Ran Benita
b73ec8e5d1
doc: fix EncodingWarnings in examples ( #11158 )
...
Otherwise the warnings show in the regen output.
2023-07-08 15:40:05 -03:00
Ran Benita
1a17539065
Merge pull request #10853 from stefmolin/patch-1
...
Update fixture scope in package/directory fixture example.
2023-06-06 17:04:45 +03:00
Jarrett Keifer
751d726d21
nonpython example now repr all exceptions
...
The definition of `repr_failure` on the `YamlItem` subclass only handled the custom `YamlException` class, which hides all other errors from the user. By adding in the `super` call we ensure all other exception types also appropriately handled by `repr_failure`.
2023-05-23 20:06:05 -07:00
Ran Benita
bf47357511
Merge pull request #10881 from pytest-dev/release-7.3.0
...
Prepare release 7.3.0
(cherry picked from commit cec5bfe058
)
2023-04-09 00:50:37 +03:00
Stefanie Molin
f1c7585184
Update fixture scope in package/directory fixture example.
2023-03-31 10:00:45 -07:00
Ronny Pfannschmidt
54864f0c9b
bugfix: fix imports for simple example
2023-03-17 21:58:26 +01:00
Ronny Pfannschmidt
ba969d2ae7
run regendoc
2023-03-17 21:58:26 +01:00
Billy
88c9e92258
Minor updates to fixtures docs ( #10724 )
...
Updated the c fixture to be a little more consistent with other fixtures in the corresponding image. for example both e and g both have edges connected with the fixtures that they explicitly depend on.
2023-02-28 12:42:33 -03:00
Bruno Oliveira
b2ac31cc9f
Merge pull request #10659 from pytest-dev/release-7.2.1
...
Prepare release 7.2.1
(cherry picked from commit 94c05bc2a4
)
2023-01-14 09:21:43 -03:00
Yusuke Kadowaki
f513d33d5a
Modify documentation to use `.stash` when storing test results. ( #10535 )
2022-11-27 22:09:56 +02:00
Ronny Pfannschmidt
5a040aef97
Merge pull request #10412 from pytest-dev/release-7.2.0 ( #10419 )
...
Prepare release 7.2.0
(cherry picked from commit ac4e3cced9
)
2022-10-25 13:12:55 +02:00
Thierry Moisan
06007de7ba
Fix a few broken links in the documentation
2022-10-05 10:24:55 -04:00
Albert Villanova del Moral
4696ba74f9
Fix typo in example/markers docs
2022-07-19 22:16:14 +02:00
Anthony Sottile
1b47de7d7f
update does_not_raise docs now that pytest is 3.7+ only
2022-06-29 13:13:15 -04:00
Florian Bruhin
e580534df0
doc: Reformat/Modernize some code ( #9900 )
...
Found because I was curious what https://pypi.org/project/shed/ does with pytest.
2022-04-28 16:30:16 +02:00
Ran Benita
d87e1e67dd
Merge pull request #9758 from pytest-dev/release-7.1.0
...
Prepare release 7.1.0
(cherry picked from commit 7d4d1ecde6
)
2022-03-13 16:59:20 +02:00
Florian Bruhin
396a7def75
Add additional docs for uncooperative ctor deprecation ( #9498 )
...
* Add additional docs for uncooperative ctor deprecation
Fixes #9488
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Break up long line
* Recommend kwonly args
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-27 11:49:18 +01:00
Chris NeJame
1fd0dcd510
fix missing ref to flattened fixture order image
2022-01-19 09:26:07 -05:00