Commit Graph

1107 Commits

Author SHA1 Message Date
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
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
Alessio Bogon 3f424e790c Remove python 3.13-dev, as it's not available yet 2023-10-10 21:43:55 +02:00
Alessio Bogon c182e1aad6 Update all dev dependencies 2023-10-10 21:40:11 +02:00
Alessio Bogon 9f152f51c6 Bump version to 7.0.0, update changelog 2023-10-10 21:38:02 +02:00
Alessio Bogon 82b84bd030 Update wording 2023-10-10 21:36:21 +02:00
Alessio Bogon c6f44f7f60 Test against python 3.13-dev too 2023-10-10 21:35:43 +02:00
Alessio Bogon 788818c963 Python 3.12 is stable now, test against the stable version 2023-10-10 21:33:27 +02:00
Alessio Bogon e36854faf3 Update poetry version and run `poetry lock --no-update` 2023-10-10 21:33:27 +02:00
Alessio Bogon 87bbd56bf4 Add python 3.12 to black targets 2023-10-10 21:33:27 +02:00
Alessio Bogon f1c49c3027
Merge pull request #637 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-10-10 21:21:11 +02:00
pre-commit-ci[bot] 26023c3757
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)
- [github.com/asottile/pyupgrade: v3.14.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0)
2023-10-09 20:59:19 +00:00
Alessio Bogon 35114d6a4b
Merge pull request #635 from pytest-dev/pre-commit-ci-update-config 2023-10-03 14:42:46 +02:00
pre-commit-ci[bot] da96d91012
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.10.1 → v3.14.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.14.0)
2023-10-03 10:48:37 +00:00