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
To check and resolve linting issues in the codebase, run:
25
25
26
26
```console
27
-
poetry run ruff check --fix
27
+
poetry run ruff check --fix fgpyo tests
28
28
```
29
29
30
30
To check and resolve formatting issues in the codebase, run:
31
31
32
32
```console
33
-
poetry run ruff format
33
+
poetry run ruff format fgpyo tests
34
34
```
35
35
36
36
To check the unit tests in the codebase, run:
37
37
38
38
```console
39
-
poetry run pytest
39
+
poetry run pytest --cov=fgpyo --cov-report=html --cov-branch
40
40
```
41
41
42
42
To check the typing in the codebase, run:
43
43
44
44
```console
45
-
poetry run mypy
45
+
poetry run mypy fgpyo tests
46
46
```
47
47
48
-
To generate a code coverage report after testing locally, run:
48
+
To re-generate a code coverage report after testing locally, run:
49
49
50
50
```console
51
51
poetry run coverage html
@@ -57,61 +57,6 @@ To check the lock file is up to date:
57
57
poetry check --lock
58
58
```
59
59
60
-
## Shortcut Task Commands
61
-
62
-
To be able to run shortcut task commands, first install the Poetry plugin [`poethepoet`](https://poethepoet.natn.io/index.html):
63
-
64
-
```console
65
-
poetry self add 'poethepoet[poetry_plugin]'
66
-
```
67
-
68
-
> NOTE:
69
-
> Upon the release of Poetry [v2.0.0](https://github.com/orgs/python-poetry/discussions/9793#discussioncomment-11043205), Poetry will automatically support bootstrap installation of [project-specific plugins](https://github.com/python-poetry/poetry/pull/9547) and installation of the task runner will become automatic for this project.
0 commit comments