Skip to content
Myr

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 file

Take it

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 1–2why, one step back
1# Contributing
2

Merge stable into main. (#3389)Rowlando13before adoption30a7f7c

lines 3–8why, one step back
3This is a quick reference for Click-specific development
4tasks. For setting up the development environment and the5general contribution workflow, see the Pallets [quick6reference](https://palletsprojects.com/contributing/quick/)7and the [detailed contributing8guide](https://palletsprojects.com/contributing/).

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 9–13why, one step back
9
10## Extra Test Environments1112Click includes some extra test environments:13

Merge stable into main. (#3389)Rowlando13before adoption30a7f7c

lines 14–15why, one step back
14- `tox r -e stress` runs stress tests for race conditions
15 in Click's test runner.

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 16–20why, one step back
16
17 ```shell-session18 $ tox r -e stress19 ```20

Merge stable into main. (#3389)Rowlando13before adoption30a7f7c

lines 21–22why, one step back
21- `tox r -e random` runs tests in parallel in a random
22 order to detect test pollution.

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 23–27why, one step back
23
24 ```shell-session25 $ tox r -e random26 ```27

Run Flask's test suite in the nightly workflow (#3768)Rowlando13before adoptioncbd7a41

lines 28–30why, one step back
28- The nightly workflow
29 (`.github/workflows/nightly.yaml`) runs Flask's test30 suite against `main` and `stable` to catch downstream

Merge stable into main. (#3389)Rowlando13before adoption30a7f7c

lines 31–45why, one step back
31 regressions.
3233## Code Style3435Avoid ternary expressions (`x if cond else y`): coverage36cannot measure both branches. Use an explicit `if`/`else`37block instead.3839Do not add unnecessary dependencies. If a feature can be40implemented with the standard library, do not pull in an41external package for it.4243## Formatting4445Wrap lines in Markdown files at 80 characters.