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
+52-14
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,38 @@ We value your interest in contributing to `PyHPCC.`
4
4
5
5
Thank you
6
6
7
+
- Check the issue tab for any issues that you would like to work on
8
+
- Comment on the issue showing your interest to work on the issue
9
+
- Raise a PR request to the repository and it will be reviewed for it to be merged. For more guidelines on creating a PR check [Submitting an PR](#submitting-an-pr) section.
10
+
7
11
## Project Structure
8
12
```
9
13
.
10
14
└── pyhpcc/
11
15
├── .github # contains build, release, test and other gh actions
12
16
├── docs/ # contains files for documentation
13
17
├── examples/ # contains starter examples
18
+
├── scripts # GitHub CI/CD Poetry install script
14
19
├── src/
15
-
│ ├── pyhpcc/
16
-
│ │ ├── handlers/ # contains thor and roxie handler
│ ├── test_files/ # contains resource files needed for testing
26
+
│ └── handlers/
22
27
├── pyproject.toml # Project config
28
+
├── MAINTAINING.md
23
29
├── CONTRIBUTING.md
24
-
└── README.md
30
+
├── README.md
31
+
└── LICENSE
25
32
```
26
33
27
34
## Set up the repository locally.
28
35
## Prerequisites
29
36
Before starting to develop, make sure you install the following software:
30
37
1.[Python3](https://www.python.org/downloads/)
31
-
2.[ECL Client Tools](https://hpccsystems.com/download/): Select your operating systems to download client tools
38
+
2.[ECL Client Tools](https://hpccsystems.com/download/): Select your operating systems to download client tools (More instructions to setup client-tools is mentioned in [README.md](README.md))
In the root folder after completing the installation setup:
81
+
82
+
Run the following command. This will rebuild Sphinx documentation on changes, with hot reloading in the browser.
83
+
84
+
```bash
85
+
sphinx-autobuild docs/source docs/build # Builds the docs and creates a live server that reloads on changes
55
86
```
56
87
57
88
## Linting and Formatting
@@ -65,7 +96,8 @@ You can also install `ruff` using pip
65
96
66
97
```bash
67
98
pip install ruff
68
-
ruff check # For linting your code.
99
+
ruff check # For check any lint errors
100
+
ruff check --fix # Applies fix to resolve lint violations for safe fixes
69
101
ruff format # For formatting your code.
70
102
```
71
103
@@ -78,11 +110,17 @@ poetry run coverage run
78
110
poetry run coverage report
79
111
```
80
112
113
+
114
+
81
115
## Submitting an PR
82
116
[Create a PR](https://help.github.com/articles/creating-a-pull-request/) with the following configuration:
83
-
84
-
The base branch is the main repo's main branch.
117
+
- Create a feature branch with the name `features/<issue_id_to_be_fixed>_<short description>` from the `dev` branch
118
+
- Commit your changes and push the changes to your fork.
119
+
- Create a PR to the `dev` branch
85
120
- PR name: copy-and-paste the relevant issue name and include the issue number in front in square brackets, e.g. `[#1020] Make bash_runcommand in WorkUnitSubmit class configurable `
86
121
- PR description: mention the issue number in this format: Fixes #1020. Doing so will automatically close the related issue once the PR is merged.
87
122
- Please Ensure that "Allow edits from maintainers" is ticked.
88
-
- Please describe the changes you have made in your branch and how they resolve the issue.
123
+
- Please describe the changes you have made in your branch and how they resolve the issue.
124
+
- Ensure code code coverage is above 85% for file and overall
125
+
- Once PR is raised, check if any checks are failing. Please fix these issues. Pull Requests will not be reviewed if any checks are failing.
0 commit comments