pre-commit-ci[bot]
d517a80fd1
[pre-commit.ci] pre-commit autoupdate ( #683 )
...
updates:
- [github.com/psf/black: 24.2.0 → 24.8.0](https://github.com/psf/black/compare/24.2.0...24.8.0 )
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
- [github.com/asottile/pyupgrade: v3.15.1 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.15.1...v3.17.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-06 07:14:31 +02:00
Alessio Bogon
ee7be87363
Bump version 7.2.0, add changelog entry
2024-06-04 20:50:33 +02:00
Alessio Bogon
526311ee88
Declare python 3.13 support
2024-06-04 20:49:45 +02:00
Alessio Bogon
b542e8e214
Merge pull request #682 from pytest-dev/add-py3.13
...
Add python 3.13 to the test matrix
2024-03-17 21:49:57 +01:00
Alessio Bogon
6170a45432
dataclasses in `parser.py` should not be compared by their members, but only by just their identity.
...
This fixes an issue with python 3.13 (max recursion depth when running `ScenarioTemplate.__eq__`)
2024-03-17 21:39:05 +01:00
Alessio Bogon
a76e2b37e8
Add python 3.13 to the test matrix
2024-03-17 21:39:05 +01:00
Alessio Bogon
3ebd9c78c3
Merge pull request #663 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-03-17 20:39:07 +01:00
Alessio Bogon
c64915c697
Merge branch 'master' into pre-commit-ci-update-config
2024-03-17 20:37:39 +01:00
Alessio Bogon
977bf615ae
Bump version 7.1.2
2024-03-17 20:33:19 +01:00
Alessio Bogon
5dbe7363af
Merge pull request #681 from pytest-dev/update-badge
...
Update link to CI status (Github actions)
2024-03-17 20:32:25 +01:00
Alessio Bogon
3d1ff16c37
Use HTTPS
2024-03-17 20:29:44 +01:00
Alessio Bogon
46f5f02754
Reindent
2024-03-17 20:29:06 +01:00
Alessio Bogon
526a166fdf
Update link to CI status (Github actions)
2024-03-17 20:26:03 +01:00
Alessio Bogon
1c71bf97a0
Merge pull request #680 from pytest-dev/ab/fix-pytest-8.1
...
Fix compatibility issues with pytest 8.1
2024-03-17 20:18:23 +01:00
Alessio Bogon
ee05bc6eb4
Add changelog entry
2024-03-17 20:16:28 +01:00
Alessio Bogon
b4e13a0713
Injecting fixtures is much easier in pytest 8.1!
...
Move logic for older pythons in the `compat.py` module.
2024-03-13 23:36:20 +01:00
Alessio Bogon
5f464278b8
Fix compatibility with pytest 8.1 (FixtureDef signature changed)
2024-03-13 23:36:20 +01:00
Alessio Bogon
d39c16e154
Add latest pytests to the tox matrix
2024-03-13 23:36:20 +01:00
Alessio Bogon
e704a4ce6c
Bump poetry & dev dependencies
2024-03-13 23:36:20 +01:00
Alessio Bogon
669492d2f6
Bump version to 7.1.1
2024-03-04 19:45:55 +01:00
Alessio Bogon
0c5355ff65
Bump version to 7.1
2024-03-04 19:42:40 +01:00
Alessio Bogon
072c899ce5
Merge pull request #669 from pytest-dev/ab/fix-pytest-version-check
...
Fix pytest version check
2024-02-24 13:04:51 +01:00
pre-commit-ci[bot]
9081a08ec3
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-20 00:26:23 +00:00
pre-commit-ci[bot]
9bbe69494b
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 23.11.0 → 24.2.0](https://github.com/psf/black/compare/23.11.0...24.2.0 )
- [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2 )
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1 )
2024-02-20 00:25:34 +00:00
Alessio Bogon
32031dac2e
Fix pytest version check
2024-01-21 16:14:34 +01:00
Alessio Bogon
5581e77d9a
Merge pull request #666 from bluetech/pytest81-fix
...
Adapt to `getfixturedefs` change in pytest 8.1
2024-01-21 15:57:12 +01:00
Alessio Bogon
32a19ce09f
Use annotations compatible with py3.8
2024-01-21 15:41:48 +01:00
Alessio Bogon
fa9659318b
Add changelog entry
2024-01-21 15:31:27 +01:00
Alessio Bogon
67d708f6f6
Extract `getfixturedefs` compatibility function
2024-01-21 15:27:35 +01:00
Ran Benita
cc86d99763
Adapt to `getfixturedefs` change in pytest 8.1
...
The signature of this (private) function will change in the upcoming
pytest 8.1 release:
https://github.com/pytest-dev/pytest/pull/11785
Additionally, the `iterparentnodeids` function is removed, so
copy/pasting it for now.
I verified that all tests pass when run against pytest main.
2024-01-08 21:52:40 +02:00
Alessio Bogon
8a694ff1e3
Merge pull request #646 from JP-Ellis/fix/decorator-type-hinting
...
fix(typing): improve decorator type hinting
2023-12-02 22:07:41 +01:00
Alessio Bogon
9c60589fb9
fix type for `StepFunctionContext.converters`
2023-12-02 21:57:07 +01:00
Alessio Bogon
206530bfa5
Bump version 7.0.1
2023-12-02 21:50:08 +01:00
Alessio Bogon
da53c5f567
Add cahngelog entry
2023-12-02 21:48:06 +01:00
JP-Ellis
4508b98536
fix(typing): improve decorator type hinting
...
The type hinting for the most commonly used decorators were incomplete,
resulting in decorated functions being obscured.
This makes use of the special type variable `ParamSpec` which allows the
type hinting a view into the parameters of a function. As ``ParamSpec`
was introduced in Python 3.10, `ParamSpec` is imported from the
`typing_extensions` module instead of the standard library.
I have also taken the opportunity to fix other instances of `Callable`
type hints missing their arguments.
Signed-off-by: JP-Ellis <josh@jpellis.me>
2023-11-16 10:13:08 +11:00
Alessio Bogon
716314dc99
Merge pull request #652 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-11-14 07:56:02 +01:00
pre-commit-ci[bot]
fb9af04f36
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0 )
2023-11-13 21:01:40 +00:00
Alessio Bogon
cf679a9c60
Merge pull request #649 from pytest-dev/sourcery/master
...
Sourcery refactored master branch
2023-11-12 23:29:02 +01:00
Sourcery AI
f1ba44ca3e
'Refactored by Sourcery'
2023-11-12 22:20:15 +00:00
Alessio Bogon
fead99df73
Merge pull request #650 from pytest-dev/ab/sourcery-config
...
Add config file for Sourcery.ai
2023-11-12 23:16:52 +01:00
Alessio Bogon
034b6dc96f
Remove useless var
2023-11-12 23:08:13 +01:00
Alessio Bogon
b5941c454d
Do not use next instead of for-loops with return statement
2023-11-12 23:05:06 +01:00
Alessio Bogon
8f5d70808f
Simplify method
2023-11-12 23:00:16 +01:00
Alessio Bogon
afc9fa5d5d
Disable sourcery rule about inlining if expressions
2023-11-12 22:51:26 +01:00
Alessio Bogon
b9015198bc
Merge pull request #641 from n3world/issue_362_unconfigure
...
Issue #362 : Only unconfigure if configured
2023-11-11 20:42:07 +01:00
Alessio Bogon
c23282819b
No need to keep a counter, just try to pop from the stack if any
2023-11-11 20:35:24 +01:00
Nate Clark
825fcf804b
Issue #362 : Only unconfigure if configured
...
`pytest_unconfigure` can be called even if `pytest_configure` was not.
In order to avoid errors during unconfigure only perform the unconfigure
if the configure was performed. Add a counter which is incremented
before configure to track the number of times pytest started
initialization so that the config is not popped early from the stack.
2023-10-31 10:04:28 -04:00
Alessio Bogon
5707669579
Merge pull request #642 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-10-29 13:08:28 +01:00
pre-commit-ci[bot]
f090ab58a2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 23.9.1 → 23.10.1](https://github.com/psf/black/compare/23.9.1...23.10.1 )
2023-10-23 20:52:37 +00:00
Alessio Bogon
30ba3f7ba1
Merge pull request #638 from pytest-dev/ab/py312
...
Update project libs & bump v7.0.0
2023-10-10 21:50:21 +02:00