|
23 | 23 |
|
24 | 24 | ### First time setup |
25 | 25 |
|
26 | | -- Install uv, as described [here](https://github.com/astral-sh/uv/#installation). |
27 | | -- `uv python install 3.10 3.11 3.12 3.13` |
| 26 | +- Install uv, as described [in their documentation](https://github.com/astral-sh/uv/#installation). |
| 27 | +- `uv python install 3.12 3.13` |
28 | 28 | - `uv self update` |
29 | 29 | - `uv sync --all-groups` |
30 | 30 | - The `.venv/` directory will now be created with all project, development and documentation dependencies installed. |
|
34 | 34 |
|
35 | 35 | - [**tox**](https://tox.wiki/) |
36 | 36 | - Creates virtual environments for CI or local pytest runs. |
37 | | - - Note that the CI does not current execute calls to the production API by default. |
| 37 | + - Note that the CI does not currently execute calls to the production API by default. |
38 | 38 | - Run `tox list` or see `tox.ini` for more info |
39 | 39 | - [**pre-commit**](https://pre-commit.com/) |
40 | 40 | - Creates virtual environments for formatting and linting tools |
41 | 41 | - Run `pre-commit run --all-files` or see `.pre-commit-config.yaml` for more info. |
42 | 42 |
|
43 | 43 | > Note: Many of the tools below are run by `pre-commit` automatically, but can also be run manually if desired. |
44 | 44 |
|
45 | | -- [**black**](https://github.com/psf/black) |
46 | | - - Whitespace formatter/code style formatter |
47 | | - - Run with `black .` |
48 | 45 | - [**ruff**](https://github.com/astral-sh/ruff) |
49 | 46 | - Linting rules from a wide variety of selectable rule sets |
50 | 47 | - See `pyproject.toml` for the rules used. |
51 | | - - See all rules (but not necessarily used in the project) availible in rust [here](https://beta.ruff.rs/docs/rules/). |
| 48 | + - See all rules (but not necessarily used in the project) [available in ruff here](https://beta.ruff.rs/docs/rules/). |
52 | 49 | - Run with `ruff check .` |
53 | 50 | - Note: When using autofixing (`ruff check . --fix`), changes may be made that require running black, which can then result in needing to run `ruff check . --fix` again. |
54 | 51 | - Consider running `black . && ruff check . --fix && black . && ruff check . --fix` to avoid this. |
|
0 commit comments