|
28 | 28 | hatch env create |
29 | 29 | ``` |
30 | 30 |
|
31 | | -3. If you need to, you can link hatch's virtual environment to your IDE. |
32 | | - It's located in the `.venv` directory at the root of the project. |
| 31 | +3. If you need to, you can link a hatch virtual environment to your IDE. |
| 32 | + They can be located by name with the `env find` command: |
| 33 | +
|
| 34 | + ```shell |
| 35 | + hatch env find default |
| 36 | + ``` |
33 | 37 |
|
34 | 38 | 4. Activate the Virtual Environment |
35 | 39 |
|
|
41 | 45 |
|
42 | 46 | ### Hatch Cheat Sheet |
43 | 47 |
|
44 | | -| Command Description | Command | Notes | |
45 | | -| ------------------------------ | --------------------------- | ---------------------------------------------------------- | |
46 | | -| Run Tests | `hatch run cov` | Runs tests with `pytest` and `coverage` | |
47 | | -| Run Formatting | `hatch run lint:fmt` | Runs `ruff` code formatter | |
48 | | -| Run Linting | `hatch run lint:all` | Runs `ruff` and `mypy` linters / type checkers | |
49 | | -| Run Type Checking | `hatch run lint:typing` | Runs `mypy` type checker | |
50 | | -| Update Requirements Lock Files | `hatch run gen:reqs` | Updating lock file using `pip-compile` | |
51 | | -| Upgrade Dependencies | `hatch run gen:reqs-update` | Updating lock file using `pip-compile` and `--update` flag | |
52 | | -| Serve the Documentation | `hatch run docs:serve` | Serve the documentation using MkDocs | |
53 | | -| Run the `pre-commit` Hooks | `hatch run lint:precommit` | Runs the `pre-commit` hooks on all files | |
| 48 | +| Command Description | Command | Notes | |
| 49 | +| -------------------------- | -------------------------- | ---------------------------------------------- | |
| 50 | +| Run Tests | `hatch run cov` | Runs tests with `pytest` and `coverage` | |
| 51 | +| Run Formatting | `hatch run lint:fmt` | Runs `ruff` code formatter | |
| 52 | +| Run Linting | `hatch run lint:style` | Runs `ruff` code linter | |
| 53 | +| Run Type Checking | `hatch run lint:typing` | Runs `mypy` type checker | |
| 54 | +| Run All Static Analysis | `hatch run lint:all` | Runs `ruff` and `mypy` linters / type checkers | |
| 55 | +| Serve the Documentation | `hatch run docs:serve` | Serve the documentation using MkDocs | |
| 56 | +| Run the `pre-commit` Hooks | `hatch run lint:precommit` | Runs the `pre-commit` hooks on all files | |
54 | 57 |
|
55 | 58 | ### Hatch Explanation |
56 | 59 |
|
|
0 commit comments