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
+23-18Lines changed: 23 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,18 +22,18 @@ In general you should always perform the following steps when contributing.
22
22
We ask that you put some effort into the readability of your code.
23
23
We are, however, always happy to help if there is an issue.
24
24
25
-
We use linting as part of our ci/cd for the python code.
25
+
We use linting as part of our ci/cd for the python code.
26
26
That means your code will be checked automatically, and you must make sure it conforms to certain rules.
27
27
28
28
Currently no linting or automatic checks of C++ code are implemented.
29
29
Although we do not have a well-defined style guide for C++, we always appreciate readable and well-formatted code.
30
30
31
31
### Technical details on linting
32
32
33
-
we use `flake8` and `black` for linting.
33
+
we use `flake8` and `black` for linting.
34
34
To run the linting locally before making your pull request, or before making a commit, you can do the following.
35
35
36
-
ensure `flake8` and `black` are installed:
36
+
ensure `flake8` and `black` are installed:
37
37
38
38
```
39
39
python -m pip install -q flake8 black
@@ -64,7 +64,7 @@ For that reason, whenever you make a change you should consider whether this req
64
64
65
65
If the change is user-facing it almost certainly does require a documentation update.
66
66
67
-
Documentation is **very important** to us.
67
+
Documentation is **very important** to us.
68
68
Therefore, we will be meticulous and make sure it is done well!
69
69
However, we don't want to put extra burden on you, so we are happy to help and will make our own edits and updates to improve the documentation of your change.
70
70
@@ -105,32 +105,32 @@ mike deploy <version> <alias>
105
105
106
106
Note that this will only affect your *local* copy of the gh-pages documentation. In order to view the pages locally you can use `mike serve` instead of `mkdocs serve`.
107
107
108
-
**NOTE:** mkdocs builds that use internal links (or images, etc.) with absolute paths will work for local deployment, but will break when deployed to the public documentations pages.
109
-
Please ensure you use relative paths. Currently, this is the only known feature where the behvaiour differs between local mkdocs and public page deployment.
108
+
**NOTE:** mkdocs builds that use internal links (or images, etc.) with absolute paths will work for local deployment, but will break when deployed to the public documentations pages.
109
+
Please ensure you use relative paths. Currently, this is the only known feature where the behvaiour differs between local mkdocs and public page deployment.
110
110
If you'd like to test the deployment directly, the suggested method is to set up a docs page using your personal github account; this should mimic the exact settings of the official page.
111
111
112
-
## Github Actions
112
+
## Github Actions
113
113
114
-
There are several automated processes defined in the [`.github/workflows`](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/tree/main/.github/workflows) folder which are triggered for every pull request or when a new commit is pushed into the `main` branch.
114
+
There are several automated processes defined in the [`.github/workflows`](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/tree/main/.github/workflows) folder which are triggered for every pull request or when a new commit is pushed into the `main` branch.
115
115
116
-
-`CI with CVMFS` workflow defined in [.github/workflows/cvmfs-ci.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/cvmfs-ci.yml) compiles <spanstyle="font-variant:small-caps;">Combine</span> with the CMSSW which is setup from `cvmfs`. This will also run several test <spanstyle="font-variant:small-caps;">Combine</span> commands using tutorial datacards contained in the repository.
116
+
-`CI with CVMFS` workflow defined in [.github/workflows/cvmfs-ci.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/cvmfs-ci.yml) compiles <spanstyle="font-variant:small-caps;">Combine</span> with the CMSSW which is setup from `cvmfs`. This will also run several test <spanstyle="font-variant:small-caps;">Combine</span> commands using tutorial datacards contained in the repository.
117
117
-`CI/CD` workflow defined in [.github/workflows/ci.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/ci.yml) runs:
118
-
118
+
119
119
1.[Linting checks](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/ci.yml#L11) with`flake8` and `black`.
120
-
2. <spanstyle="font-variant:small-caps;">Combine</span> compilation using conda environment with several combinations of (ROOT, python) versions: (6.26.4, 3.10), (6.24,3.9), (6.22, 3.9) and (6.22, 2.7.18)
121
-
120
+
2. <spanstyle="font-variant:small-caps;">Combine</span> compilation using conda environment with several combinations of (ROOT, python) versions: (6.26.4, 3.10), (6.24,3.9), (6.22, 3.9) and (6.22, 2.7.18)
121
+
122
122
-`Docs` workflow defined in [.github/workflows/docs.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/docs.yml) manages the documentation deployment with `mike` as described above.
123
123
124
-
In addition there are two conditional workflows that can be triggered with [github labels](https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels):
124
+
In addition there are two conditional workflows that can be triggered with [github labels](https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels):
125
125
126
-
-`trigger gitlab job` workflow defined in [.github/workflows/gitlabci.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/gitlabci.yml) can be triggered with the "safe to test" label. Please note that this gitlab workflow uses `CMSSW_10_2_13`, therefore it might fail with later versions of <spanstyle="font-variant:small-caps;">Combine</span> and it is likely to be deprecated soon.
126
+
-`trigger gitlab job` workflow defined in [.github/workflows/gitlabci.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/gitlabci.yml) can be triggered with the "safe to test" label. Please note that this gitlab workflow uses `CMSSW_10_2_13`, therefore it might fail with later versions of <spanstyle="font-variant:small-caps;">Combine</span> and it is likely to be deprecated soon.
127
127
128
-
-`Port to <branch>` workflows defined in [.github/workflows/port_to_branch.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/port_to_branch.yml), e.g. the `Port to 112x-comb2022` can be triggered with the "port to 112x-comb2022" label to port the changes from a pull request to the `112x-comb2022` branch and create a new pull request.
128
+
-`Port to <branch>` workflows defined in [.github/workflows/port_to_branch.yml](https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/.github/workflows/port_to_branch.yml), e.g. the `Port to 112x-comb2022` can be triggered with the "port to 112x-comb2022" label to port the changes from a pull request to the `112x-comb2022` branch and create a new pull request.
129
129
130
130
131
131
## Big Contributions
132
132
133
-
We welcome large contributions to <spanstyle="font-variant:small-caps;">Combine</span>.
133
+
We welcome large contributions to <spanstyle="font-variant:small-caps;">Combine</span>.
134
134
Note, however, that we also follow long term planning, and there is a dedicated group stewarding the overall direction and development of the code.
135
135
136
136
This means that the code development should fit in with our long term vision;
@@ -161,8 +161,13 @@ When creating a new release, follow this checklist to ensure version strings are
0 commit comments