contributing.md
This file
Path
docs/contributing.md
45 lines · 1.2 KiB · Markdown
Last changed by
Run Flask's test suite in the nightly workflow (#3768)Rowlando13before adoptioncbd7a41
History of this fileTake it
contributing.md
Contributing
This is a quick reference for Click-specific development tasks. For setting up the development environment and the general contribution workflow, see the Pallets quick reference and the detailed contributing guide.
Extra Test Environments
Click includes some extra test environments:
-
tox r -e stressruns stress tests for race conditions in Click's test runner.$ tox r -e stress -
tox r -e randomruns tests in parallel in a random order to detect test pollution.$ tox r -e random -
The nightly workflow (
.github/workflows/nightly.yaml) runs Flask's test suite againstmainandstableto catch downstream regressions.
Code Style
Avoid ternary expressions (x if cond else y): coverage
cannot measure both branches. Use an explicit if/else
block instead.
Do not add unnecessary dependencies. If a feature can be implemented with the standard library, do not pull in an external package for it.
Formatting
Wrap lines in Markdown files at 80 characters.