Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/pytest-dev/pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://github.com/pytest-dev/pytest

main: fix reversed collection order in Session

Since we're working with a stack (last in first out), we need to append
to it in reverse to pres...

ea57c40c438b9bb9981518b36ce70e7e445cf674 authored 12 months ago
Enable lint PGH004 - Use specific rule codes when using noqa

a182e10b06e0efd91d78f33db5c7424a2afef258 authored 12 months ago
Enable flake8-pie

d1ee6d154f0eef2c753ed6a123eec583d02ae00b authored 12 months ago
Fix ruff deprecation warning

warning: The top-level linter settings are deprecated in favour of their counterparts in the `li...

d02618d173cc0229eb85befd3efbf6132135304a authored 12 months ago
closes: 10865 Fix muted exception (#11804)

* feat: 10865

* feat: 10865 refactor code and tests

* feat: 10865 add test skip for pypy
...

9454fc38d3636b79ee657d6cacf7477eb8acee52 authored 12 months ago
Merge pull request #11947 from bluetech/hypothesis-revert

Revert "testing: temporarily disable test due to hypothesis issue (#1836)"

101328aba56f84ff8e1e58b5a2301ec0bab82d85 authored 12 months ago
Revert "testing: temporarily disable test due to hypothesis issue (#11836)"

This reverts commit 5cd0535395541d8940035418b368331318002199.

42785cca442cb747aaec707626076ab23c23b4a1 authored 12 months ago
Merge pull request #11941 from bluetech/doctest-parsefactories

doctest: fix autouse fixtures possibly not getting picked up

6c0b6c2f92b68757988cdb11499cac750ba71862 authored 12 months ago
doctest: fix autouse fixtures possibly not getting picked up

Fix #11929.

Figured out what's going on. We have the following collection tree:

```
<Dir pyspa...

9cd14b4ffb1d96342a2e9d1f5cb92eab53bb5079 authored 12 months ago
build(deps): Bump django in /testing/plugins_integration (#11946)

Bumps [django](https://github.com/django/django) from 5.0 to 5.0.2.
- [Commits](https://github....

4c894f20a1df9229b871191972b48cac3d8a41d3 authored 12 months ago
doctest: don't open code the module import

Currently, `DoctestModule` does `import_path` on its own. This changes
it to use `importtestmodu...

6e5008f19f3c8fffa1ea2b980d4214d9c338b481 authored 12 months ago
Merge pull request #11932 Add pre-commit hook and fix pyproject.toml

- [pyproject-fmt] Add pre-commit hook and autofix existing
- Proper setuptools version for pypr...

b9d02c5b53b62ea4f284787f6e4a36c9973a673c authored 12 months ago
Update setuptools version to the one that support pyproject.toml

d1095426c163c8a005d0c1c81612c4cedfe698b5 authored 12 months ago
[pyproject-fmt] Add pre-commit hook and autofix existing

757778f5f611a06ae5a8ac48c5c950cb1f8fceca authored 12 months ago
Merge pull request #11930 from Pierre-Sassoulas/setup.cfg-to-pyproject.toml

Migration from ``setup.cfg`` to ``pyproject.toml``

404d31a942975c04d4a7d48e258260584930819f authored 12 months ago
Merge pull request #11935 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

0d91539614192fc90d43694fdd52d75f0e8861cb authored 12 months ago
[pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.15 → v0.2.0](https://github.com/astral-sh...

835e8032f4b856c9e6d606dc909bde45281bdfb7 authored 12 months ago
[pyproject.toml] Moving 'package_data' (py.typed) from setup.cfg

c76ea72331f6c45e248b92be8233188ecd2347b7 authored 12 months ago
[pyproject.toml] Remove setup_requires / package_dir in setup.cfg already exists

dab1583ce1ad9c08b64fefc632c9e3d900d4c3dd authored 12 months ago
[pyproject.toml] Translate dynamic option to pyproject.toml

411c2cbf9d8f1e18aa4b7e53ff3d60790beacf1d authored 12 months ago
[pyproject.toml] Translate 'metadata:platforms' to pyproject.toml

c3583dee0b274af84b56e70f270d3a42d0ce2463 authored 12 months ago
[pyproject.toml] Move information from setup.cfg to pyproject.toml

a1d99e4bdd6effa2f2c9a50a2f4712e7fe1823d2 authored 12 months ago
Merge pull request #11918 from pytest-dev/update-plugin-list/patch-20b18f0f9

[automated] Update plugin list

aaa9ca7327de16ca07e5d169e4cf1ad5d810d1da authored 12 months ago
Merge pull request #11923 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-django-4.8.0

build(deps): Bump pytest-django from 4.7.0 to 4.8.0 in /testing/plugins_integration

29094983d7a987d9cde776f3a3bc7a2e401954c8 authored 12 months ago
Merge pull request #11925 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-sugar-1.0.0

build(deps): Bump pytest-sugar from 0.9.7 to 1.0.0 in /testing/plugins_integration

b8e56557c6c1fdc5e3b4b7dfa5e9adb7586c9699 authored 12 months ago
Merge pull request #11928 from bluetech/setup-cfg-cleanups

Some setup.cfg cleanups

304ccb4ad75d71d109cac59b3bc838346462919e authored 12 months ago
setup.cfg: remove `zip_safe`

The setuptools docs say it's obsolete and no longer needed:
https://setuptools.pypa.io/en/latest...

90634a6060a21e8e8209ed96dc032e4a4258eabe authored 12 months ago
setup.cfg: remove redundant `packages`/`py_modules`

The `package_dir` already achieves this.

ccbae95ad4fd69b0b006272aa3cc65090bdb674d authored 12 months ago
setup.cfg: remove `[devpi:upload]` section

Not needed since bfe2cbe875f81bd8e333796d2594a9cd36806374.

cd9b2410472076652499512567ea40815f67654a authored 12 months ago
setup.cfg: remove `[check-manifest]` section

Not used since 731c35fcabef1e145e8049e1bf565a7c18ca328d.

5c67cb2cf57e50680ebdc5591b38dc2ab23834e4 authored 12 months ago
setup.cfg: remove `[build_sphinx]` section

Legacy thing that is no longer needed.

2fc7926bae8774f1a929752525b6ec1b95ea15e5 authored 12 months ago
setup.cfg: move mypy configuration from setup.cfg to pyproject.toml

TOML is a nicer format than the INI format setup.cfg uses.

79de84941a50eda7a6f0511cb0ce7a63776e4563 authored 12 months ago
Merge pull request #11914 - Activate flake8-bugbear and flake8-pyi

0d1f4c63fad83b02d0619976e008eec1ee8eff9c authored 12 months ago
build(deps): Bump pytest-sugar in /testing/plugins_integration

Bumps [pytest-sugar](https://github.com/Teemu/pytest-sugar) from 0.9.7 to 1.0.0.
- [Release note...

2d4e27daf2efa41328c51c833fa8f8b6e75b4b96 authored 12 months ago
build(deps): Bump pytest-django in /testing/plugins_integration

Bumps [pytest-django](https://github.com/pytest-dev/pytest-django) from 4.7.0 to 4.8.0.
- [Relea...

2e50788b6d749d3c30b3f32e828d7e2fd909117e authored 12 months ago
[flake8-bugbear] Remove hidden global state to import only once

3101c026b96e15f155aa95e3e3321dbee586643c authored 12 months ago
[flake8-bugbear] Fix all the useless expressions that are justified

52fba25ff94f01e510ff5e7f52da5bb74a32669e authored 12 months ago
[flake8-bugbear] noqa B023 not bound by design

4eb246d4e15de8e6d089d35c30d1102fb4f46032 authored 12 months ago
[flake8-bugbear] noqa all the useless comparison that are justified

e7bab63537ab66f2f750e72627c8fef3ccfddc9f authored 12 months ago
[flake8-bugbear] Fixes a B017 we can actually fix and noqa the two others

41ff3584d78091bf2753bb084b1f5ec8a97c3f51 authored 12 months ago
[flake8-bugbear] Remove misleading multiple characters in lstrip

See https://pylint.readthedocs.io/en/stable/user_guide/messages/error/bad-str-strip-call.html

b62d4b352748729c9e36f450226d191335177730 authored 12 months ago
[flake8-bugbear] Re-raise all exceptions with proper exception chaining

fcb818b73ca7bd0d005cec8f9b5aba47c4876de3 authored 12 months ago
[flake8-pyi] Add checks for flake8-pyi and fix existing

e193a263c70549815377158dd0ddc9e325f6dfcf authored 12 months ago
[flake8-bugbear] Add checks from flake8 bugbear

7eef4619d591e0720d20a770dd0f837a389ef415 authored 12 months ago
Merge pull request #11915 from bluetech/compat-string-types

compat: a couple of minor cleanups

e28f35c296c56a3cc37e469914da407e4fe8e134 authored 12 months ago
[automated] Update plugin list

b28bb01c4ee2933847b53916164dedba69be2107 authored 12 months ago
compat: inline helpers into `ascii_escaped`

The helpers don't add much.

3ba40954007d56b0f0cef251660c127fe6540137 authored 12 months ago
compat: get rid of STRING_TYPES

I think it only obfuscates the code, also calling `bytes` a string type
is pretty misleading in ...

99e8129ba361fe81e72f4fb2fb127de0f0447d05 authored 12 months ago
Merge pull request #11913 from bluetech/ruff-version-ignore

Ignore isort on _version.py

20b18f0f9a3f752726c54c812f021f8b7a342377 authored 12 months ago
Ignore isort on _version.py

The file is generated. This makes `ruff src/` run cleanly (when not
running through pre-commit).

cb5f7388581228530d554f7b559b986bf1a0d474 authored 12 months ago
Merge pull request #11912 from Pierre-Sassoulas/activate-ruff-checks

[pre-commit] Activate ruff checks and fix existing issues

5be64c31cbadde5fd8595922b7c2c02ac13f6d29 authored 12 months ago
[ruff] Add ruff's check and autofix existing issues

514376fe29d09945983754f2a4855583255ba5d9 authored 12 months ago
[ruff] Fix ambiguous characters found in string and comment

180a16a34414dae308a26ff69315db3de6f54e68 authored 12 months ago
[ruff] Fix all consider [*cats, garfield] instead of cats + [garfield]

233ab89f1302465e3a2708043efee9e029db5c78 authored 12 months ago
[ruff] Activate use next(iter(x)) instead of list(x)[0] and fix issue

8967c527ff0760bcaafcfc4db874a0b1e9f86316 authored 12 months ago
Merge pull request #11901 from Pierre-Sassoulas/migrate-from-isort-to-ruff

Migrate from ``autoflake``, ``black``, ``isort``, ``pyupgrade``, ``flake8`` and ``pydocstyle``, ...

bdfc5c80d8700b6e76c706ea11b3b9c8d41a8b76 authored almost 1 year ago
[.git-blame-ignore-revs] Add migration to ruff/ruff format and blacken-docs 2024's style

9ef905e7a080181cdcd8840e694cc45cfbe8b99a authored almost 1 year ago
Migrate from autoflake, black, isort, pyupgrade, flake8 and pydocstyle, to ruff

ruff is faster and handle everything we had prior.

isort configuration done based on the indica...

4588653b2497ed25976b7aaff225b889fb476756 authored almost 1 year ago
Fix a duplicate assignment in test_config.py

Taken from https://github.com/pytest-dev/pytest/pull/11885 that was closed.

046f64751bf205df695f11d298bfd87d553e1314 authored about 1 year ago
Upgrade blacken-doc to black's 2024 style (#11899)

4546d5445aaefe6a03957db028c263521dfb5c4b authored about 1 year ago
Merge pull request #11896 from nicoddemus/isort

Replace reorder-python-imports by isort due to black incompatibility

de161f87914e5e01d76564246d60ca6a9cf1b619 authored about 1 year ago
Update and rename .gitblameignore to .git-blame-ignore-revs

Seems like `.git-blame-ignore-revs` is the standard used and also automatically detected by GitH...

3be2a9d655b5b0af388971ab39893b68d703d88d authored about 1 year ago
fix incorrect example for group_contains (#11892)

e885013c6bb49e90f8b7a34583e0f249f5de9bb7 authored about 1 year ago
Run pre-commit on all files

Running pre-commit on all files after replacing reorder-python-imports by isort.

8b54596639f41dfac070030ef20394b9001fe63c authored about 1 year ago
Replace reorder-python-imports by isort due to black incompatibility

Unfortunately black and reorder-python-imports are no longer compatible, and from the looks of i...

899a6cf2cef5f74e7f85fb22ec3449fbd57a5aae authored about 1 year ago
Fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises (#11879)

Co-authored-by: Bruno Oliveira <[email protected]>
Co-authored-by: Zac Hatfield-Dodds <zac.hatfie...

407d9841428f037e0ada71f7ca028f7d1171c6db authored about 1 year ago
Add changelog entry about FixtureManager.getfixtureclosure changing (#11887)

As discussed in #11868.

21bec6cfbed7ae36478aeff956919727c2bb8641 authored about 1 year ago
Pin back pytest-asyncio to 8.0.0 compatible release (#11889)

The current version (0.23.4) explicitly does not support pytest 8 yet, so we fallback to the pre...

cb57bf50b183d62068d8f0e21ed71bdcde5fdb3a authored about 1 year ago
build(deps): Bump hynek/build-and-inspect-python-package (#11877)

Bumps [hynek/build-and-inspect-python-package](https://github.com/hynek/build-and-inspect-python...

c0dfc451861a0fbf9b9659e8f8d723ea730a5619 authored about 1 year ago
build(deps): Bump pytest-asyncio in /testing/plugins_integration (#11878)

Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.23.3 to 0.23.4.
- [...

5855f65d0fbc57c0fa3196d87c0fe2e9bc420868 authored about 1 year ago
Catch `OSError` from `getpass.getuser()` (#11875)

- Previously, `getpass.getuser()` would leak an ImportError if the
USERNAME environment varia...

14d3707818e0beaab2a3ce4f4fa95ee5a147b75e authored about 1 year ago
[automated] Update plugin list (#11867)

Co-authored-by: pytest bot <[email protected]>

8853a57532899b124578af7baa217acc26061070 authored about 1 year ago
mypy: disallow untyped defs by default (#11862)

Change our mypy configuration to disallow untyped defs by default, which ensures *new* files add...

878af85aefc5a2a255395d66a38a2136aeaeb086 authored about 1 year ago
Merge pull request #11859 from bluetech/numbered-dir-scandir

pathlib: speed up `make_numbered_dir` given a large tmp root

e7b43b2121acdbead4627b239ab066b4edba2d14 authored about 1 year ago
Merge pull request #11865 from bluetech/cherry-pick-release

Cherry pick 8.0.0 release notes

d0f427aec4c885b60fc2f5c6b0ceeaeef8ad7b8f authored about 1 year ago
Merge pull request #11864 from bluetech/release-8.0.0

Prepare release version 8.0.0

(cherry picked from commit 24c681d4eeaad22ba26c5bcf6958e0476ae37a89)

c6da0d20d2d1ebc1b69a013d9ff2555c93d890f3 authored about 1 year ago
logging: avoid rounding microsecond to `1_000_000` (#11861)

Rounding microsecond might cause it to reach `1_000_000`, which raises a TypeError.

a164ed6400b675118ba499304ba94a65b8cf9bca authored about 1 year ago
pathlib: speed up `make_numbered_dir` given a large tmp root

The function currently uses `find_suffixes` which iterates the entire
directory searching for fi...

eb9013d42c97c61e234aadff9651d4cedb83eae3 authored about 1 year ago
Merge pull request #11856 from bluetech/pluggy-unblock

config: use `pluginmanager.unblock` instead of accessing pluggy's internals

ac2cd72e5fb00257ef1f6e17b2c16336362c6234 authored about 1 year ago
config: use `pluginmanager.unblock` instead of accessing pluggy's internals

The function was added in pluggy 1.4.0.

bca4bb0738f23f79cbf21f8c36e076d12ef62468 authored about 1 year ago
Merge pull request #11854 from bluetech/runner-inline-2

runner: inline `call_runtest_hook`

2a77f8d88bac9dc1b3a86afb44bbfbd802e2ed34 authored about 1 year ago
hookspec: document conftest behavior for all hooks (#9496)

Have each hook explain how implementing it in conftests works. This is part of the functional sp...

d97295730330f7686a155dd6482405ad4a823b1d authored about 1 year ago
Mark some xfails from #10042 as non-strict (#11832)

Related to #10042, some tests in `test_debugging.py` are actually flaky and should not be consid...

44bf7a2ec0b52b60089ebd8439f64487df079214 authored about 1 year ago
runner: inline `call_runtest_hook`

- Reduce the common stacktrace by an entry - this is mostly for benefit
of devs looking at cra...

5ab8972bb5607bced7c9198296a7dd9fb35e8723 authored about 1 year ago
[automated] Update plugin list (#11848)

Co-authored-by: pytest bot <[email protected]>

21440521fac9d8702d43ef63ccdf8e035ae46bc3 authored about 1 year ago
build(deps): Bump actions/cache from 3 to 4 (#11852)

Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://...

79ae9681315fc847db36aa53ea8d5088dd61eb63 authored about 1 year ago
Merge pull request #11843 from bluetech/writing-plugins

doc/writing_plugins: correct inaccuracies re. initial conftest loading

c3fc717ff74cb8be6fb04c630b28b720d6c041ad authored about 1 year ago
Escape skip reason in junitxml (#11842)

Co-authored-by: Bruno Oliveira <[email protected]>

d71ef04f117faf97eab2d83ddba935e6ac77c3c2 authored about 1 year ago
doc/writing_plugins: correct inaccuracies re. initial conftest loading

111ad26f714b05166b473a01823be9f7a21d306d authored about 1 year ago
Merge pull request #11826 from bluetech/no-cwd

Prefer using the invocation dir over CWD

2178ee86d7c1ee93748cfb46540a6e40b4761f2d authored about 1 year ago
helpconfig: add invocation dir to debug output

The current WD is not supposed to matter, the invocation dir is what
should be relevant. But kee...

212c55218b1b7406643ba4fe7002702ff6cf2c04 authored about 1 year ago
python: use invocation dir instead of cwd in fixture-printing code

We should aim to remove all `cwd()` calls except one, otherwise things
will go bad if the workin...

a6dd90a41414173110ea143c301d3da9853449ea authored about 1 year ago
findpaths: rely on invocation_dir instead of cwd

We should aim to remove all `cwd()` calls except one, otherwise things
will go bad if the workin...

676f38d04aa7fc96ecf06235d855820aba05b83a authored about 1 year ago
config: avoid Path.cwd() call in `_set_initial_conftests`

We should aim to remove all `cwd()` calls except one, otherwise things
will go bad if the workin...

34fafe4c6b9f03107b5b925d310e875799376679 authored about 1 year ago
[DOCS] Clarify tmp_path directory location and retention (#11830)

Fixes #11789 and #11790

eefc9d47fc40a9d5971a6207689c50efb1555a95 authored about 1 year ago
Properly attach packages to the GH release notes (#11839)

Follow up to https://github.com/pytest-dev/pytest/pull/11754, noticed that the latest GitHub rel...

7fd561e4ba5dd5ae7a04c7b92b83cef8492a358d authored about 1 year ago
Merge pull request #11838 from bluetech/cherry-pick-release

Prepare release version 8.0.0rc2

da9749cd97dbbbd06e67949eb0c41f9c8f6298ef authored about 1 year ago
Merge pull request #11835 from pytest-dev/release-8.0.0rc2

Prepare release version 8.0.0rc2

(cherry picked from commit 97960bdd148972b2f26bd9b336163e590bb...

ca5bbd0a9f56c8f9b3f5a43c47ff11c360f33d0b authored about 1 year ago
testing: temporarily disable test due to hypothesis issue (#11836)

Ref: https://github.com/pytest-dev/pytest/pull/11825#issuecomment-1894094641

5cd0535395541d8940035418b368331318002199 authored about 1 year ago
Merge pull request #11825 from woutdenolf/fix_missing_fixture_issue

avoid using __file__ in pytest_plugin_registered as can be wrong on Windows

0f5aa5a7d2394334f32402532f974545e8f03d11 authored about 1 year ago