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
12345678910111213141516171819202122232425262728293031323334353637383940414243444546# Contributing
This is a quick reference for Click-specific developmenttasks. For setting up the development environment and thegeneral contribution workflow, see the Pallets [quickreference](https://palletsprojects.com/contributing/quick/)and the [detailed contributingguide](https://palletsprojects.com/contributing/).
## Extra Test Environments
Click includes some extra test environments:
- `tox r -e stress` runs stress tests for race conditions in Click's test runner.
```shell-session $ tox r -e stress ```
- `tox r -e random` runs tests in parallel in a random order to detect test pollution.
```shell-session $ tox r -e random ```
- The nightly workflow (`.github/workflows/nightly.yaml`) runs Flask's test suite against `main` and `stable` to catch downstream regressions.
## Code Style
Avoid ternary expressions (`x if cond else y`): coveragecannot measure both branches. Use an explicit `if`/`else`block instead.
Do not add unnecessary dependencies. If a feature can beimplemented with the standard library, do not pull in anexternal package for it.
## Formatting
Wrap lines in Markdown files at 80 characters.