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
pre-commit-ci[bot]
40e9abd66b
[pre-commit.ci] pre-commit autoupdate ( #11510 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0 )
* Ignore two typing errors after updating to mypy 1.6.0
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
2023-10-23 08:05:40 -03:00
Ran Benita
04e0db7e48
Use typing.Literal without TYPE_CHECKING checks
...
Literal was added in Python 3.8 which we now require so can use it
freely.
2023-07-16 01:11:21 +03:00
Ran Benita
762bb61562
Fix couple of EncodingWarnings ( #10954 )
...
* faulthandler: fix an EncodingWarning
* _py/path: tiny change to `ensure` to silence EncodingWarning
We're not supposed to diverge here, but make this change to fix an
unavoidable EncodingWarning that is otherwise raised in pytest's test
suite. The behavior should be exactly the same besides the warning,
hopefully that won't cause confusion.
2023-04-29 11:37:22 +03:00
Daniel Scheffler
fb701b538c
Use os.sep instead of os.path.sep.
...
Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
2022-12-01 18:16:02 +01:00
Bruno Oliveira
d5466b3917
Fix typing errors after mypy update
2022-11-15 08:53:23 -03:00
Anthony Sottile
59d8f8a223
_pytest._py.path: get mypy passing
2022-10-19 21:42:40 -04:00
Anthony Sottile
ed4c18f686
_pytest._py.path: combine PathBase and LocalPath
2022-10-19 21:42:40 -04:00
Anthony Sottile
6660d45521
_pytest._py.path: combine PosixPath into LocalPath
2022-10-19 21:42:40 -04:00
Anthony Sottile
af078f3a96
_pytest._py.path: combine Checkers classes
2022-10-19 21:42:40 -04:00
Anthony Sottile
73349ef3e1
_pytest._py.path: flake8 fixes
2022-10-19 21:42:40 -04:00
Anthony Sottile
63c4d45c59
_pytest._py.path: importlib mode always available
2022-10-19 21:42:40 -04:00
Anthony Sottile
382209d9e9
_pytest._py.path: remove decorator compat
2022-10-19 16:52:26 -04:00
Anthony Sottile
00e2f1c15c
_pytest._py.path: remove _cmp compat
2022-10-19 16:52:26 -04:00
Anthony Sottile
8a151774b8
_pytest._py.path: remove fspath compat
2022-10-19 16:52:26 -04:00
Anthony Sottile
a7c1fc204b
remove other py.* accesses in _pytest._py.path
2022-10-19 16:52:26 -04:00
Anthony Sottile
965e942dfb
use getrawcode from _pytest._code
2022-10-19 16:52:26 -04:00
pre-commit-ci[bot]
49abbf2485
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-19 16:52:26 -04:00
Anthony Sottile
19dda7c9bd
vendor py.path and py.error
2022-10-19 16:52:26 -04:00