You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Start by installing `uv`. Depending on your distribution, this may be as simple as:
17
+
18
+
```sh
19
+
sudo dnf -y install uv
20
+
```
21
+
22
+
If you would like to run the latest version, you can install the command using `pipx`. First, install `pipx`:
23
+
24
+
```
25
+
sudo dnf -y install pipx
26
+
```
27
+
28
+
And then use `pipx` to install `uv`:
29
+
30
+
```
31
+
pipx install uv
32
+
```
33
+
34
+
2. Next, install `pre-commit`. As with `uv`, you can install this using your system package manager:
35
+
36
+
```
37
+
sudo dnf -y install pre-commit
38
+
```
39
+
40
+
Or you can install a possibly more recent version using `pipx`:
41
+
42
+
```
43
+
pipx install pre-commit
44
+
```
45
+
46
+
47
+
### Activate pre-commit
48
+
49
+
Activate `pre-commit` for your working copy of this repository by running:
50
+
51
+
```
52
+
pre-commit install
53
+
```
54
+
55
+
This will configure `.git/hooks/pre-commit` to run the `pre-commit` tool every time you make a commit. Running these tests locally ensures that your code is clean and that tests are passing before you share your code with others. To manually run all the checks:
56
+
57
+
```
58
+
pre-commit run --all-files
59
+
```
60
+
61
+
62
+
### Install dependencies
63
+
64
+
To install the project dependencies, run:
65
+
66
+
```
67
+
uv sync --all-extras
68
+
```
69
+
70
+
### Run tests
71
+
72
+
To run just the unit tests:
73
+
74
+
```
75
+
uv run pytest
76
+
```
77
+
78
+
This will generate a test coverage report in `htmlcov/index.html`.
0 commit comments