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
Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f
lines 1–2why, one step back1# Contributing2Merge stable into main. (#3389)Rowlando13before adoption30a7f7c
lines 3–8why, one step back3This is a quick reference for Click-specific development4tasks. 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 back910## Extra Test Environments1112Click includes some extra test environments:13Merge stable into main. (#3389)Rowlando13before adoption30a7f7c
lines 14–15why, one step back14- `tox r -e stress` runs stress tests for race conditions15 in Click's test runner.Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f
lines 16–20why, one step back1617 ```shell-session18 $ tox r -e stress19 ```20Merge stable into main. (#3389)Rowlando13before adoption30a7f7c
lines 21–22why, one step back21- `tox r -e random` runs tests in parallel in a random22 order to detect test pollution.Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f
lines 23–27why, one step back2324 ```shell-session25 $ tox r -e random26 ```27Run Flask's test suite in the nightly workflow (#3768)Rowlando13before adoptioncbd7a41
lines 28–30why, one step back28- The nightly workflow29 (`.github/workflows/nightly.yaml`) runs Flask's test30 suite against `main` and `stable` to catch downstreamMerge stable into main. (#3389)Rowlando13before adoption30a7f7c
lines 31–45why, one step back31 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.