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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+21-13
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,15 @@ $ pre-commit install
39
39
```shell
40
40
$ pre-commit run --all-files
41
41
```
42
-
6. Commit your code to your fork's branch.
42
+
6. Run code coverage
43
+
```shell
44
+
coverage run --source podman_compose -m pytest ./pytests
45
+
python -m pytest ./tests
46
+
coverage combine
47
+
coverage report
48
+
coverage html
49
+
```
50
+
7. Commit your code to your fork's branch.
43
51
- Make sure you include a `Signed-off-by` message in your commits. Read [this guide](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) to learn how to sign your commits
44
52
- In the commit message reference the Issue ID that your code fixes and a brief description of the changes. Example: `Fixes #516: allow empty network`
45
53
7. Open a PR to `containers/podman-compose:devel` and wait for a maintainer to review your work.
@@ -48,18 +56,18 @@ $ pre-commit run --all-files
48
56
49
57
To add a command you need to add a function that is decorated
50
58
with `@cmd_run` passing the compose instance, command name and
51
-
description. the wrapped function should accept two arguments
52
-
the compose instance and the command-specific arguments (resulted
53
-
from python's `argparse`package) inside that command you can
54
-
run PodMan like this `compose.podman.run(['inspect', 'something'])`
55
-
and inside that function you can access `compose.pods`
56
-
and `compose.containers`...etc.
57
-
Here is an example
59
+
description. This function must be declared `async` the wrapped
60
+
function should accept two arguments the compose instance and
61
+
the command-specific arguments (resulted from python's `argparse`
62
+
package) inside that command you can run PodMan like this
0 commit comments