pytest bot
d7d320a15a
Prepare release version 8.0.1
2024-02-16 13:20:17 +00:00
github-actions[bot]
b188f4d10d
[8.0.x] doc: Remove sold out training ( #11927 )
...
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2024-02-05 08:04:32 +00:00
github-actions[bot]
d60b6b0e28
[8.0.x] doc: Update training dates and add pytest sprint ( #11926 )
...
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2024-02-05 07:12:10 +00:00
Pierre Sassoulas
c11cdfabd1
Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff ( #11911 )
...
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 20:21:46 +01:00
Bruno Oliveira
368cc6225e
[8.0.x] Upgrade blacken-doc to black's 2024 style ( #11899 ) ( #11900 )
...
(cherry picked from commit 4546d5445a
)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2024-01-31 10:46:50 -03:00
Bruno Oliveira
06e592370e
[8.0.x] Replace reorder-python-imports by isort due to black incompatibility ( #11898 )
...
Backport of #11896
2024-01-31 09:08:36 -03:00
github-actions[bot]
a76aa6ff80
[8.0.x] fix incorrect examples for group_contains ( #11897 )
...
Co-authored-by: John Litborn <11260241+jakkdl@users.noreply.github.com>
2024-01-30 20:37:18 +00:00
github-actions[bot]
3e48ef64cd
[8.0.x] Add a changelog entry about FixtureManager.getfixtureclosure losing a default argument ( #11891 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-01-30 09:55:36 -03:00
Ran Benita
478f8233bc
Prepare release version 8.0.0
2024-01-27 23:23:56 +02:00
Ran Benita
6be0a3cbf7
Prepare release version 8.0.0rc2
2024-01-17 23:10:03 +02:00
Ran Benita
e17d5ec871
Prepare release version 8.0.0rc1
2023-12-31 14:40:46 +02:00
Ran Benita
a1b6b7473b
Merge pull request #11752 from pytest-dev/release-7.4.4
...
Prepare release 7.4.4
(cherry picked from commit 18dcd9d38d
)
2023-12-31 14:15:46 +02:00
pytest bot
460c38915d
[automated] Update plugin list
2023-12-31 00:20:30 +00:00
Ran Benita
acd445a3f3
Merge pull request #11646 from bluetech/pkg-collect
...
Rework Session and Package collection
2023-12-30 12:51:48 +02:00
pytest bot
f93c0fc34e
[automated] Update plugin list
2023-12-24 00:20:08 +00:00
Michał Górny
52db918a27
Fix handling empty values of NO_COLOR and FORCE_COLOR ( #11712 )
...
* Fix handling empty values of NO_COLOR and FORCE_COLOR
Fix handling NO_COLOR and FORCE_COLOR environment variables to correctly
be ignored when they are set to an empty value, as defined
in the specification:
> Command-line software which adds ANSI color to its output by default
> should check for a NO_COLOR environment variable that, when present
> *and not an empty string* (regardless of its value), prevents
> the addition of ANSI color.
(emphasis mine, https://no-color.org/ )
The same is true of FORCE_COLOR, https://force-color.org/ .
* Streamline testing for FORCE_COLOR and NO_COLOR
Streamline the tests for FORCE_COLOR and NO_COLOR variables, and cover
all possible cases (unset, set to empty, set to "1"). Combine the two
assert functions into one taking boolean parameters. Mock file.isatty
in all circumstances to ensure that the environment variables take
precedence over the fallback value resulting from isatty check (or that
the fallback is actually used, in the case of both FORCE_COLOR
and NO_COLOR being unset).
2023-12-23 10:12:13 +02:00
pytest bot
27f7cee238
[automated] Update plugin list
2023-12-17 00:20:43 +00:00
Arthur Richard
047ba83dab
Improve pytest.exit docs ( #11698 )
...
Fixes #11695
2023-12-14 08:14:36 -03:00
Tom Mortimer-Jones
2b86d2bddc
Typo in fixtures.rst ( #11699 )
2023-12-13 13:24:43 +01:00
Ran Benita
385796ba49
Rework Session and Package collection
...
Fix #7777 .
2023-12-10 17:01:39 +02:00
Ran Benita
c7fcb3f281
Merge pull request #11689 from pytest-dev/update-plugin-list/patch-d1675646f
...
[automated] Update plugin list
2023-12-10 09:59:06 +02:00
Ran Benita
c1339628d6
Merge pull request #11684 from bluetech/docs-nitpicky
...
docs: enable Sphinx nitpicky mode
2023-12-10 09:42:30 +02:00
Ran Benita
397769c45e
Merge pull request #11677 from bluetech/nodes-abc
...
nodes,python: mark abstract node classes as ABCs
2023-12-10 09:41:46 +02:00
pytest bot
5381cd083f
[automated] Update plugin list
2023-12-10 00:20:38 +00:00
Ran Benita
0ae02e2165
nodes,python: mark abstract node classes as ABCs
...
Fixes #11676
2023-12-07 16:41:07 +02:00
Ran Benita
2aa8743bbe
doc: enable Sphinx nitpicky mode
...
See:
https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-nitpicky
This ensures we have no more broken references.
2023-12-07 12:14:45 +02:00
Ran Benita
ee91d095f6
doc: fix more broken Sphinx references
2023-12-07 11:50:02 +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
Ran Benita
a5ee9f2ecd
doc: document `pytest.{hookspec,hookimpl}` in the API Reference
...
Makes sense for them to be there; also allows for Sphinx refs.
2023-12-07 00:11:42 +02:00
github-actions[bot]
714ce2e872
[automated] Update plugin list ( #11658 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-12-03 11:49:36 -03:00
touilleWoman
5689d806cf
Fix "Customizing Colors" documentation section ( #11652 )
...
Fixes #11573
2023-12-01 11:25:01 -03:00
github-actions[bot]
e0d5754d5d
[automated] Update plugin list ( #11640 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-26 11:09:03 -03:00
github-actions[bot]
476bab84f7
[automated] Update plugin list ( #11627 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-19 11:57:25 -03:00
Patrick Lannigan
9dc1fc4523
Add verbosity_assertions and config.get_verbosity
...
Fixes #11387
2023-11-19 11:56:29 -03:00
Avasam
80442ae2f2
Use `False`, instead of `None` as default for `_XfailMarkDecorator`'s `condition` param and update doc ( #11600 )
2023-11-17 10:42:05 +02:00
github-actions[bot]
99f7738810
[automated] Update plugin list ( #11607 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-12 10:41:08 -03:00
github-actions[bot]
e701df5eb6
[automated] Update plugin list ( #11587 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-11-06 18:40:44 -03:00
Bruno Oliveira
70f03dbc3e
Adjustments to assert raises docs ( #11586 )
...
Followup from #11578 .
2023-11-04 12:37:47 -03:00
Bruno Oliveira
1e02797d15
Improve pytest.raises docs ( #11578 )
2023-11-04 10:24:57 +00:00
Ran Benita
8fb7e8b31e
Merge pull request #11567 from bluetech/fix-ref-tocdepth
...
doc/reference: fix sidebar TOC depth
2023-10-30 09:01:54 +02:00
Ran Benita
0d74a1c8a0
doc: allow Sphinx 6.x and 7.x ( #11568 )
...
They seem to work fine, let's allow them.
2023-10-29 23:00:27 +01:00
Ran Benita
4ecf313604
doc/reference: fix sidebar TOC depth
...
Previously, the sidebar TOC had unlimited depth, making it useless and
interfering with the content. This seems to have regressed in pytest
7.2.x going by the RTD version selector.
2023-10-29 21:55:17 +02:00
pytest bot
d0a09d8627
[automated] Update plugin list
2023-10-29 00:19:06 +00:00
Ziad Kermadi
ed8701a57f
Mention -q and -s in the docs ( #11558 )
...
Fixes #11507 .
2023-10-27 14:35:45 -03:00
Bruno Oliveira
c7e9b22f37
Merge pull request #11546 from pytest-dev/release-7.4.3 ( #11549 )
...
Prepare release 7.4.3
(cherry picked from commit 53df6164b4
)
2023-10-24 16:50:13 -03:00
Carsten Grohmann
38f7c1e346
Use pytestconfig instead of request.config in cache example ( #11542 )
...
to be consistent with the API documentation.
2023-10-23 15:45:16 -03:00
Bruno Oliveira
ee53433542
Configure ReadTheDocs to fail on warnings ( #11535 )
...
* Configure ReadTheDocs to fail on warnings
Important to catch broken links and references.
* Remove dead link to distutils configuration docs
2023-10-23 09:56:33 -03:00
github-actions[bot]
cac1eed0ea
[automated] Update plugin list ( #11534 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-21 23:43:14 -03:00
github-actions[bot]
dd68f9c95a
[automated] Update plugin list ( #11504 )
...
Co-authored-by: pytest bot <pytestbot@users.noreply.github.com>
2023-10-15 10:03:38 -03:00