Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
pytest_collect_file
hook to remove deprecated path
argument (
#112) Replaced the deprecated `path` argument with `file_path: pathlib.Path` in the `pytest_collect_file` hook to address PytestRemovedIn9Warning. ``` tests/test_pytest_pycodestyle.py: 10 warnings /home/runner/work/pytest-pycodestyle/pytest-pycodestyle/src/pytest_pycodestyle.py:22: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (file_path: pathlib.Path) see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path def pytest_collect_file(file_path: pathlib.Path, path, parent): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ```
- Loading branch information