googleapis / googleapis/google-cloud-python

Update the noxfiles with performance enhancements to support debugging.

Open
#16,202 1 comment 0 reactions 1 assignee Claimed by @ohmayr View on GitHub
priority: p2 type: process
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

Update the noxfiles with performance enhancements to support debugging.

* Add `session.run('python', '-m', 'pip', 'freeze')` immediately after the last `session.install()` call in each session.
* Add `*session.posargs,` as the last item in session.run() that launch `pytest`.
This allows calls such as `nox -s unit -- -vv` to produce verbose test results OR `nox -s unit -- --lf` to only execute the tests that failed in the last session.

Consider whether a similar `*session.posargs,` would be beneficial in any of the other sessions to selectively allow us to feed args to tools like `black`, `ruff`, etc)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.