Ran Benita
ff2f66d84a
[8.0.x] Revert "Fix teardown error reporting when `--maxfail=1` ( #11721 )"
2024-02-23 13:35:15 +00:00
github-actions[bot]
8a8eed609c
[8.0.x] Fix collection of short paths on Windows ( #12024 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-02-23 11:20:19 +00:00
github-actions[bot]
74346f027c
[8.0.x] Allow Sphinx 7.x ( #12005 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-02-18 10:43:49 +00:00
github-actions[bot]
b7657b4d6b
[8.0.x] Disallow Sphinx 6 and 7 ( #12001 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-02-17 21:02:41 +00:00
Ran Benita
feb7c5e12e
Merge pull request #11999 from pytest-dev/backport-11996-to-8.0.x
...
[8.0.x] code: fix `IndexError` crash in `getstatementrange_ast`
2024-02-17 20:28:13 +02:00
Ran Benita
090965574e
[8.0.x] code: fix `IndexError` crash in `getstatementrange_ast`
2024-02-17 16:59:38 +00:00
Ran Benita
68524d4858
Merge pull request #11993 from pytest-dev/release-8.0.1
...
Prepare release 8.0.1
2024-02-17 00:09:47 +02:00
pytest bot
d7d320a15a
Prepare release version 8.0.1
2024-02-16 13:20:17 +00:00
Ran Benita
93699166dc
Merge pull request #11992 from bluetech/backport-11991
...
[8.0.x] recwarn: fix pytest.warns handling of Warnings with multiple arguments
2024-02-16 14:55:28 +02:00
Ran Benita
a232abd56c
[8.0.x] recwarn: fix pytest.warns handling of Warnings with multiple arguments
...
(cherry picked from commit fbe18fc7a9
)
2024-02-16 14:34:01 +02:00
Ran Benita
92203d2b78
Merge pull request #11990 from bluetech/backport-11920
...
[8.0.x] recwarn: let base exceptions propagate through `pytest.warns` again
2024-02-16 12:52:17 +02:00
Ran Benita
f1aa9226ac
[8.0.x] recwarn: let base exceptions propagate through `pytest.warns` again
...
(cherry picked from commit 718cd40015
)
2024-02-16 12:31:51 +02:00
github-actions[bot]
d86d081563
[8.0.x] Added `logot` to the plugin list ( #11977 )
...
Co-authored-by: Dave Hall <dave@etianen.com>
2024-02-14 20:08:38 +01:00
Ran Benita
c554c3d200
Merge pull request #11968 from pytest-dev/backport-11957-to-8.0.x
...
[8.0.x] main: fix reversed collection order in Session
2024-02-13 10:01:00 +02:00
Ran Benita
a6851e3459
[8.0.x] main: fix reversed collection order in Session
2024-02-13 07:44:36 +00:00
github-actions[bot]
e6f6be3bc9
[8.0.x] Improve error message when using @pytest.fixture twice ( #11958 )
...
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2024-02-09 14:34:45 +00:00
Ran Benita
23b91d12de
[8.0.x] Merge pull request #11941 from bluetech/doctest-parsefactories ( #11948 )
...
doctest: fix autouse fixtures possibly not getting picked up
(cherry picked from commit 6c0b6c2f92
)
2024-02-07 22:09:19 -03: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
Ran Benita
73371a03da
Merge pull request #11894 from pytest-dev/backport-11879-to-8.0.x
...
[8.0.x] BUG: fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises
2024-01-30 17:38:43 +02:00
Clément Robert
eb698a64a0
[8.0.x] BUG: fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises
2024-01-30 15:20:56 +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
github-actions[bot]
8b70bb64d3
[8.0.x] Catch `OSError` from `getpass.getuser()` ( #11876 )
...
Co-authored-by: Russell Martin <russell@rjm.li>
2024-01-29 02:25:18 +00:00
Ran Benita
169d775eec
Merge pull request #11866 from pytest-dev/backport-11718-to-8.0.x
...
[8.0.x] build(deps): Bump hynek/build-and-inspect-python-package from 1.5.4 to 2.0.0
2024-01-28 00:25:45 +02:00
Ran Benita
42f709ed44
[8.0.x] build(deps): Bump hynek/build-and-inspect-python-package from 1.5.4 to 2.0.0
2024-01-27 22:10:59 +00:00
Ran Benita
24c681d4ee
Merge pull request #11864 from bluetech/release-8.0.0
...
Prepare release version 8.0.0
2024-01-27 23:55:26 +02:00
Ran Benita
478f8233bc
Prepare release version 8.0.0
2024-01-27 23:23:56 +02:00
github-actions[bot]
608590097a
[8.0.x] fix: avoid rounding microsecond to `1_000_000` ( #11863 )
...
Co-authored-by: Dương Quốc Khánh <dqkqdlot@gmail.com>
2024-01-27 16:48:01 +00:00
github-actions[bot]
3b41c65c81
[8.0.x] Escape skip reason in junitxml ( #11845 )
...
Co-authored-by: clee2000 <44682903+clee2000@users.noreply.github.com>
2024-01-19 01:26:06 +00:00
github-actions[bot]
747072ad26
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py ( #11768 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-01-18 15:45:25 -03:00
Bruno Oliveira
011a475baf
Properly attach packages to the GH release notes ( #11839 ) ( #11840 )
...
Follow up to https://github.com/pytest-dev/pytest/pull/11754 , noticed that the latest GitHub release does not contain the attached files.
Output log from the action:
```
🤔 Pattern 'dist/*' does not match any files.
```
2024-01-17 20:56:12 -03:00
Ran Benita
97960bdd14
Merge pull request #11835 from pytest-dev/release-8.0.0rc2
...
Prepare release version 8.0.0rc2
2024-01-17 23:44:01 +02:00
Ran Benita
6be0a3cbf7
Prepare release version 8.0.0rc2
2024-01-17 23:10:03 +02:00
Ran Benita
44ffe07165
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x
...
[8.0.x] testing: temporarily disable test due to hypothesis issue
2024-01-17 23:09:47 +02:00
Ran Benita
14ecb04973
[8.0.x] testing: temporarily disable test due to hypothesis issue
2024-01-17 20:53:29 +00:00
Ran Benita
41c8dabee3
Merge pull request #11831 from bluetech/backport-11825-to-8.0.x
...
[8.0.x] avoid using __file__ in pytest_plugin_registered as can be wrong on Windows
2024-01-17 21:34:56 +02:00
Ran Benita
6f4cbd7cd4
[8.0.x] avoid using __file__ in pytest_plugin_registered as can be wrong on Windows
2024-01-17 15:40:14 +02:00
Ran Benita
b0c7f923aa
Merge pull request #11813 from pytest-dev/backport-11795-to-8.0.x
...
[8.0.x] Improve assert mod not in mods error message
2024-01-14 13:55:56 +02:00
Ran Benita
f15aff06dc
[8.0.x] Improve assert mod not in mods error message
2024-01-14 11:39:34 +00:00
Ran Benita
10c8898845
Merge pull request #11810 from pytest-dev/backport-11708-to-8.0.x
...
[8.0.x] FIX key formating divergence when inspecting plugin dictionary.
2024-01-13 23:02:20 +02:00
Ran Benita
5b7ddedbf9
[8.0.x] FIX key formating divergence when inspecting plugin dictionary.
2024-01-13 19:46:07 +00:00
github-actions[bot]
3ae38baca6
[8.0.x] Add summary for xfails with -rxX option ( #11778 )
...
Co-authored-by: Fabian Sturm <fabio.sturm@gmail.com>
2024-01-05 22:35:47 +00:00
Ran Benita
6123b247d4
Merge pull request #11764 from pytest-dev/backport-11721-to-8.0.x
...
[8.0.x] Fix teardown error reporting when `--maxfail=1`
2024-01-04 11:23:03 +02:00
Bruno Oliveira
bb6f5d1b10
Merge pull request #11766 from pytest-dev/backport-11754-to-8.0.x
...
[8.0.x] Improve GitHub release workflow
2024-01-03 20:33:02 -03:00
Bruno Oliveira
72eb1b7ad1
[8.0.x] Improve GitHub release workflow
2024-01-03 23:15:18 +00:00
Ben Brown
620a454dba
[8.0.x] Fix teardown error reporting when `--maxfail=1`
2024-01-03 17:39:50 +00:00