Alessio Bogon
7297d2d549
Attempt to reduce complexity
2023-12-02 22:36:52 +01:00
Alessio Bogon
6b2bb3ed85
Must cast return type for `setdefault`
2023-12-02 22:10:41 +01: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
Alessio Bogon
1d9e99055e
Merge pull request #633 from pytest-dev/pre-commit-ci-update-config
2023-09-18 21:11:09 +02:00
pre-commit-ci[bot]
501e0b9ead
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1 )
2023-09-12 09:32:23 +00:00
Alessio Bogon
129cbc4fd2
Merge pull request #615 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-08-12 09:15:16 +02:00
pre-commit-ci[bot]
d5137cdec9
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1 )
2023-08-01 08:50:44 +00:00
Alessio Bogon
0fab820f53
Update pre-commit
2023-07-23 22:07:36 +02:00
Alessio Bogon
a900cdde26
Merge pull request #628 from pytest-dev/updates
...
Misc CI updates
2023-07-23 13:57:03 +02:00
Alessio Bogon
d889c756b5
Add changelog entry
2023-07-23 13:51:10 +02:00
Alessio Bogon
84153493b2
Merge remote-tracking branch 'origin/master' into updates
2023-07-23 13:48:03 +02:00
Alessio Bogon
cbbb3d2664
Add changelog entry
2023-07-23 13:46:39 +02:00
Alessio Bogon
477ab9c0c7
bump mypy
2023-07-23 13:45:26 +02:00
Alessio Bogon
95cbb78038
Use mypy from dev-requirements when running it in tox
2023-07-23 13:43:24 +02:00
Alessio Bogon
075a0bbd19
old pytests don't support python 3.12 and beyond
2023-07-23 13:36:50 +02:00
Alessio Bogon
5a7b34423c
Fix yaml
2023-07-23 13:22:10 +02:00
Alessio Bogon
257155610b
Use dotted tox factors, now that they are available
2023-07-23 13:15:40 +02:00
Alessio Bogon
3c40550cd5
We are ahead of our time
2023-07-23 13:09:39 +02:00
Alessio Bogon
d1056fa857
Add py3.13
2023-07-23 13:08:20 +02:00