Bruno Oliveira
6b02b353d2
Merge pull request #743 from pytest-dev/pre-commit-ci-update-config
2021-12-27 09:29:49 -03:00
Bruno Oliveira
18143275c6
Remove obsolete skip based on java (no longer supported)
2021-12-27 08:05:46 -03:00
Bruno Oliveira
d21f59fea7
Fix typing errors after updating mypy
2021-12-27 08:05:01 -03:00
pre-commit-ci[bot]
82ecdea0c2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.920](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.920 )
2021-12-20 20:42:50 +00:00
Bruno Oliveira
f9f8a765ba
Merge pull request #741 from nicoddemus/release-2.5.0
2021-12-10 08:45:48 -03:00
Bruno Oliveira
13f39349c6
Remove unnecessary skip from test_logfinish_hook as we require pytest>=6.2
build / build (ubuntu-latest, 3.10-dev, py310-pytestlatest) (push) Failing after 2s
build / build (ubuntu-latest, 3.6, py36-pytestlatest) (push) Failing after 2s
build / build (ubuntu-latest, 3.7, py37-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-psutil) (push) Failing after 2s
build / build (ubuntu-latest, 3.8, py38-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-pytestmain) (push) Failing after 2s
build / build (ubuntu-latest, 3.8, py38-setproctitle) (push) Failing after 2s
build / build (ubuntu-latest, 3.9, py39-pytestlatest) (push) Failing after 3s
build / build (windows-latest, 3.10-dev, py310-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.6, py36-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.7, py37-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-psutil) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestmain) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-setproctitle) (push) Has been cancelled
build / build (windows-latest, 3.9, py39-pytestlatest) (push) Has been cancelled
build / deploy (push) Has been cancelled
v2.5.0
2021-12-10 08:32:32 -03:00
Bruno Oliveira
c76d5622f1
Skip test_warning_captured_deprecated_in_pytest_6 in pytest>=7.1
2021-12-10 08:31:55 -03:00
Bruno Oliveira
5f78c7155e
Fix CHANGELOG header
2021-12-10 08:19:30 -03:00
Bruno Oliveira
c8bbc03e49
Release 2.5.0
2021-12-10 08:18:22 -03:00
Bruno Oliveira
8dbf3677dc
Merge pull request #738 from pytest-dev/pre-commit-ci-update-config
2021-12-06 18:58:17 -03:00
pre-commit-ci[bot]
a25c14bef5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.11b1 → 21.12b0](https://github.com/psf/black/compare/21.11b1...21.12b0 )
2021-12-06 21:11:40 +00:00
Bruno Oliveira
110c114025
Merge pull request #734 from nicoddemus/revamp-readme
2021-12-02 10:07:49 -03:00
Bruno Oliveira
83bdbf4b95
Revamp README
...
* Use a document title.
* Show a "short and sweet" section at the beginning highlighting the main usage of the plugin.
* Add a table of contents.
* Use a dedicated howto section at the end.
* Move the OVERVIEW section to the main README.
2021-11-29 13:13:20 -03:00
Bruno Oliveira
630c1eb6f2
Merge pull request #733 from baekdohyeop/feature-loadgroup
2021-11-29 12:00:59 -03:00
baekdohyeop
62e50d0097
Address review
2021-11-29 02:59:18 +09:00
baekdohyeop
1b5d6b6db7
Add changelog
2021-11-29 02:59:18 +09:00
baekdohyeop
52a395888f
Create new dist option 'loadgroup'
2021-11-29 02:59:18 +09:00
Bruno Oliveira
6d83034bb8
Fix test_warning_captured_deprecated_in_pytest_6
...
This test started to fail in the 'py38-pytestmain' environment, the
cause being PytestRemovedIn7Warning being raised by the conftest file
of the test itself. Ignoring it is fine, the purpose of the test is to ensure
the hook is not called by pytest-xdist.
2021-11-29 02:59:18 +09:00
Bruno Oliveira
408eb1cfec
Merge pull request #732 from nicoddemus/fix-warning-captured-test
2021-11-28 11:15:04 -03:00
Bruno Oliveira
1e150204e0
Fix test_warning_captured_deprecated_in_pytest_6
...
This test started to fail in the 'py38-pytestmain' environment, the
cause being PytestRemovedIn7Warning being raised by the conftest file
of the test itself. Ignoring it is fine, the purpose of the test is to ensure
the hook is not called by pytest-xdist.
2021-11-28 10:34:14 -03:00
Bruno Oliveira
e2a9381036
Merge pull request #731 from pytest-dev/pre-commit-ci-update-config
2021-11-28 10:31:05 -03:00
pre-commit-ci[bot]
982de538c0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1 )
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1 )
2021-11-22 20:53:14 +00:00
Ran Benita
2bac85562b
Merge pull request #728 from bluetech/hookimpl-decorators
...
Add explicit pytest.hookspec/hookimpl annotations, avoid legacy tryfirst/trylast marks
2021-11-02 12:28:36 +02:00
Ran Benita
b2586c3f48
Merge pull request #727 from bluetech/deprecate-boxed
...
Deprecate `--boxed`
2021-11-02 12:28:19 +02:00
Ran Benita
b85b71cd22
Add explicit pytest.hookspec/hookimpl annotations, avoid legacy tryfirst/trylast marks
2021-11-02 09:42:00 +02:00
Ran Benita
89a3df3e20
Deprecate --boxed
...
This will allow removing the pytest-forked dependency in the future.
Refs #468 .
2021-11-02 09:38:56 +02:00
Bruno Oliveira
39eec49ddf
Merge pull request #726 from pytest-dev/pre-commit-ci-update-config
2021-11-01 19:02:26 -03:00
pre-commit-ci[bot]
bf9606c672
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0 )
2021-11-01 20:27:36 +00:00
Ran Benita
18cd9b900c
Merge pull request #725 from bluetech/docs-master
...
README,OVERVIEW: replace master -> controller
2021-11-01 18:27:19 +02:00
Bruno Oliveira
10d8198d88
Merge pull request #724 from pytest-dev/bluetech-patch-1
2021-11-01 08:08:20 -03:00
Ran Benita
475d7c4c2a
README,OVERVIEW: replace master -> controller
2021-11-01 09:36:12 +02:00
Ran Benita
0fac79b29c
README: fill in TBD version
2021-11-01 09:24:59 +02:00
Ran Benita
827909b4e1
Merge pull request #723 from bluetech/modernize
...
Modernize packaging, require pytest 6.2, prepare for pytest 7, other changes
2021-11-01 09:19:04 +02:00
Ran Benita
ae58690f3e
Avoid soft-deprecated pathlist ini type on pytest>=7
...
This allows the test suite to succeed with the legacypath plugin
blocked.
Fix #722 .
2021-11-01 09:06:32 +02:00
Ran Benita
d794b27e72
Use config._tmp_path_factory instead of config._tmpdirhandler
...
Both are private, and shouldn't be used, but not sure how to fix it
currently. But `_tmpdirhandler` will be relegated to the legacypath
plugin so should extra not be used.
2021-11-01 09:06:32 +02:00
Ran Benita
787b8d9c14
Add basic mypy linting
...
Based on pytest setup, though more lax. Currently only the tests are
annotated so only helpful for them.
Fix #721 .
2021-11-01 09:06:32 +02:00
Ran Benita
9ddb274f23
Update test suite to modern pytest
...
- Use pytest>=6.2 features (same as install_requires).
When we can require >=7, can fix some more typing omissions and
version checks.
- Replace testdir with pytester
- Replace py.test with pytest
- Replace tmpdir with tmp_path
- Remove (almost) all other uses of py
- Add some type annotations (not checked yet)
Ref #722 .
2021-11-01 09:05:28 +02:00
Ran Benita
5672d85809
Require pytest>=6.2
...
This makes things much easier in terms of typing.
pytest 6.2 has been out for a ~year so if someone updates pytest-xdist
they should also update pytest!
Fix #720 .
2021-11-01 09:04:16 +02:00
Ran Benita
999923ba97
Allow black and rst pre-commit hooks to run on any Python 3 version
...
Since py2 is dropped we don't really need to worry about this anymore.
2021-11-01 09:04:16 +02:00
Ran Benita
f51289582e
Bring back tox -e linting
...
It just runs pre-commit, and CI doesn't use i,t but I still find it
useful for local development.
2021-11-01 09:04:16 +02:00
Ran Benita
130dcdef76
Add build-system to pyproject.toml
...
So doesn't use legacy stuff.
Fix #719 .
2021-11-01 09:04:14 +02:00
Ran Benita
f8a434e349
Move metadata from setup.py to setup.cfg
...
Using https://github.com/asottile/setup-py-upgrade
Refs #719 .
2021-10-30 21:04:10 +03:00
Bruno Oliveira
b2f3d08106
Merge pull request #715 from pytest-dev/pre-commit-ci-update-config
2021-10-11 17:03:57 -03:00
pre-commit-ci[bot]
4d902461f9
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1 )
2021-10-11 19:44:07 +00:00
Bruno Oliveira
15b411e94b
Merge pull request #713 from pytest-dev/pre-commit-ci-update-config
2021-10-04 18:57:14 -03:00
pre-commit-ci[bot]
3fa5431a53
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0 )
2021-10-04 19:50:07 +00:00
Bruno Oliveira
640c85a70a
Merge pull request #710 from pytest-dev/pre-commit-ci-update-config
2021-09-27 22:52:42 -03:00
pre-commit-ci[bot]
c0ce0c0171
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0 )
2021-09-27 19:44:31 +00:00
Bruno Oliveira
9943887304
Merge pull request #708 from nicoddemus/use-modern-hook-opts
2021-09-24 10:18:39 -03:00
Bruno Oliveira
c7c7f9ef5b
Use modern options configurations for hooks
...
Noticed while reviewing https://github.com/pytest-dev/pytest/pull/9118
2021-09-24 10:09:24 -03:00