Skip to content

Commit ebfe669

Browse files
Add contribution doc
[skip-changelog]
1 parent eeb1f84 commit ebfe669

File tree

5 files changed

+222
-1
lines changed

5 files changed

+222
-1
lines changed

CHANGELOG.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,70 @@
11
# Changelog
2+
3+
## [0.0.10](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.9...0.0.10)
4+
5+
> 30 November 2021
6+
7+
- Drop support of Python 3.6 and 3.7 (Adrien Berchet - [5bef8b0](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/5bef8b00cacb4e1c4210e8444fde3ef5ea95b7be))
8+
- Fix auto-changelog (Adrien Berchet - [5529558](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/55295589e374b9ef76730905704593c4ffefe68b))
9+
- Use luigi_tools.parameter.OptionalPathParameter for the dataset path (Adrien Berchet - [eeb1f84](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/eeb1f847016f2e1aa678c51e5a768a70b18fe36c))
10+
11+
## [data-validation-framework-v0.0.9](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.8...data-validation-framework-v0.0.9)
12+
13+
> 18 October 2021
14+
15+
- Setup auto-changelog and add authors and license (Adrien Berchet - [590c5ad](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/590c5ad92a285f088eb64bcdcbbb59a524c266b3))
16+
- Add a warning when TagResultOutputMixin is used alongside RerunMixin (Adrien Berchet - [f80f6da](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/f80f6dab1d44134a39b1dd74f17affaa65927bb6))
17+
- Export test and coverage reports to GitLab (Adrien Berchet - [c1f3b29](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/c1f3b29f281ce008a2fbd9f0a6444a644e0ce817))
18+
19+
## [data-validation-framework-v0.0.8](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.7...data-validation-framework-v0.0.8)
20+
21+
> 13 July 2021
22+
23+
- Add extra_requires feature to use regular luigi tasks in validation workflows (Alexis Arnaudon - [35518e7](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/35518e7790b3145ba354098ef9e113e4fb817ee4))
24+
- Use custom image in CI jobs (Adrien Berchet - [215a1b8](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/215a1b8fa7d887d70c561dc0fac23ce1de4e6dd0))
25+
26+
## [data-validation-framework-v0.0.7](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.6...data-validation-framework-v0.0.7)
27+
28+
> 28 June 2021
29+
30+
- Remove some warnings for exceptions in nested tasks (Adrien Berchet - [4e754ee](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/4e754ee0356b6643ee16ba6dafc4cd3ec9b099f9))
31+
32+
## [data-validation-framework-v0.0.6](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.5...data-validation-framework-v0.0.6)
33+
34+
> 28 June 2021
35+
36+
- Add todo extension to Sphinx and fix ret_code handling for SetValidationTask (Adrien Berchet - [529200b](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/529200bc6f7091945908dbe706c82f7279037021))
37+
- Migration from gerrit to github (Adrien Berchet - [80dc073](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/80dc0737c4535c335da60d27209e5eff616eccb2))
38+
- Add auto-release job in CI (Adrien Berchet - [2317324](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/2317324341fedf020d01faedca349bc48819f9ff))
39+
40+
## [data-validation-framework-v0.0.5](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.4...data-validation-framework-v0.0.5)
41+
42+
> 19 April 2021
43+
44+
- Improve warning mechanism and add option to not capture stdout in validation function (Adrien Berchet - [ce63be9](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/ce63be90a5aa4dfc1f628461fbfcada721bb786b))
45+
- Fix: use __specifications__ instead of __doc__ to generate reports (Adrien Berchet - [0fc3f97](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/0fc3f97238faa8d0b6f8ff2f5797ef4809a4ddf5))
46+
47+
## [data-validation-framework-v0.0.4](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.3...data-validation-framework-v0.0.4)
48+
49+
> 22 March 2021
50+
51+
- Add multiprocessing feature to apply_to_df (Adrien Berchet - [c28a0c1](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/c28a0c1500c22b5c32d3b150986cf283169f1281))
52+
- Update parameter propagation (Adrien Berchet - [ed79ae5](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/ed79ae5807fa97a366e994a3191bd339272a2270))
53+
- Fix tqdm interference with prints (Adrien Berchet - [7ecf9c8](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/7ecf9c88d18cd24f925cb54c2d0b2aa70a557d14))
54+
- Fix progress bar with multiprocessing computation (Adrien Berchet - [c76bf5f](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/c76bf5f9d9f7103d608b8e8b15e1f02ceb4988e3))
55+
- External validation functions no more need to be declared as staticfunction (Adrien Berchet - [ed171c0](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/ed171c064c341f9744f52b4d9ff04e917636d048))
56+
57+
## [data-validation-framework-v0.0.3](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/compare/data-validation-framework-v0.0.2...data-validation-framework-v0.0.3)
58+
59+
> 8 March 2021
60+
61+
- Improve specification generation (Adrien Berchet - [dc79c30](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/dc79c30baf0fbf8661b162158d71e5947b8e0551))
62+
63+
## data-validation-framework-v0.0.2
64+
65+
> 3 March 2021
66+
67+
- First commit (Adrien Berchet - [43a8cee](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/43a8ceeb540f76e282c04f449bd4b149e2ab4027))
68+
- Remove test_version (Adrien Berchet - [5db162e](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/5db162e1a1ee1a187f4f234761c8c19f6f33108e))
69+
- Fix versioning (Adrien Berchet - [0755e85](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/0755e85bd5e3d31779a7a55a7fd28c1cf752f184))
70+
- Initial empty repository (Dries Verachtert - [890f91e](https://bbpgitlab.epfl.ch/neuromath/data-validation-framework/commit/890f91ee5af155e6fea2f79e118f153291fa7975))

CONTRIBUTING.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# Contributing
2+
3+
We would love for you to contribute to the luigi-tools package and help make it even better
4+
than it is today! As a contributor, here are the guidelines we would like you to follow:
5+
* [Issues and Bugs](#issue)
6+
* [Feature Requests](#feature)
7+
* [Submission Guidelines](#submit)
8+
9+
## <a name="issue"></a> Got a question or found a bug?
10+
11+
If you have a question or find a bug in the source code, you can help us by
12+
[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can
13+
[submit a Pull Request](#submit-pr) with a fix.
14+
15+
## <a name="feature"></a> Missing a Feature?
16+
17+
You can *request* a new feature by [submitting an issue](#submit-issue) to our
18+
[GitHub Repository][github]. If you would like to *implement* a new feature, please submit an
19+
issue with a proposal for your work first, to be sure that we can use it. Then
20+
[submit a Pull Request](#submit-pr) that points to this issue.
21+
22+
Please consider what kind of change it is:
23+
* For a **Major Feature**, first open an issue and outline your proposal so that it can be
24+
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
25+
and help you to craft the change so that it is successfully accepted into the project.
26+
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
27+
28+
## <a name="submit"></a> Submission Guidelines
29+
30+
### <a name="submit-issue"></a> Submitting an Issue
31+
32+
Before you submit an issue, please search the issue tracker, maybe an issue for your problem
33+
already exists and the discussion might inform you of workarounds readily available.
34+
35+
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce
36+
and confirm it. In order to reproduce bugs we will need as much information as possible, a
37+
[Minimal Working Example](https://stackoverflow.com/help/minimal-reproducible-example), and
38+
preferably be in touch with you to gather information.
39+
40+
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
41+
42+
When you wish to contribute to the code base, please consider the following guidelines:
43+
* Make a [fork](https://guides.github.com/activities/forking/) of this repository.
44+
* Make your changes in your fork, in a new git branch:
45+
```shell
46+
git checkout -b my-fix-branch main
47+
```
48+
49+
* Create your patch, **including appropriate test cases** (please note that the coverage must
50+
always be equal to 100%).
51+
* Run the full test suite, and ensure that all tests pass.
52+
* Commit your changes using a descriptive commit message.
53+
```shell
54+
git commit -a
55+
```
56+
57+
Note: the optional commit `-a` command line option will automatically **add** and **rm** edited
58+
files.
59+
* Push your branch to GitHub:
60+
```shell
61+
git push origin my-fix-branch
62+
```
63+
64+
* In GitHub, send a Pull Request to the `main` branch of the upstream repository of the relevant
65+
component.
66+
* If we suggest changes then:
67+
* Make the required updates.
68+
* Re-run the test suites to ensure tests are still passing.
69+
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
70+
71+
```shell
72+
git rebase main -i
73+
git push -f
74+
```
75+
76+
That's it! Thank you for your contribution!
77+
78+
#### After your pull request is merged
79+
80+
After your pull request is merged, you can safely delete your branch and pull the changes from the
81+
main (upstream) repository:
82+
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
83+
```shell
84+
git push origin --delete my-fix-branch
85+
```
86+
87+
* Check out the main branch:
88+
```shell
89+
git checkout main
90+
```
91+
92+
* Delete the local branch:
93+
```shell
94+
git branch -D my-fix-branch
95+
```
96+
97+
* Update your main with the latest upstream version:
98+
```shell
99+
git pull --ff upstream main
100+
```
101+
102+
### <a name="release"></a> Releasing a new version
103+
104+
Releasing a new version can only be done by the maintainers.
105+
106+
The release process is the following:
107+
* Checkout the main branch and ensure your local version is up to date:
108+
```shell
109+
git checkout main
110+
git pull
111+
```
112+
113+
* Create a new branch locally:
114+
```shell
115+
git checkout -b release_X.Y.Z
116+
```
117+
118+
* Create a new temporary tag locally:
119+
```shell
120+
git tag X.Y.Z
121+
```
122+
123+
* Update the CHANGELOG file using auto-changelog:
124+
```shell
125+
auto-changelog
126+
```
127+
128+
* Commit the new changelog and remove the tag:
129+
```shell
130+
git commit -m "Release X.Y.Z"
131+
git tag -d X.Y.Z
132+
git push origin
133+
```
134+
135+
* Open a new pull request from this branch and merge it.
136+
* Checkout the main branch and update it:
137+
```shell
138+
git checkout main
139+
git pull
140+
```
141+
142+
* Create the final tag and push it:
143+
```shell
144+
git tag X.Y.Z
145+
git push origin X.Y.Z
146+
```
147+
148+
After these steps the CI should automatically build the wheel and push it to pypi.
149+
150+
[github]: https://github.com/BlueBrain/data-validation-framework

doc/source/contributing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. mdinclude:: ../../CONTRIBUTING.md

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
Home <self>
99
api
1010
changelog
11+
contributing

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BLACK
22
[tool.black]
33
line-length = 100
4-
target-version = ["py36"]
4+
target-version = ["py38"]
55

66
# PYLINT
77
[tool.pylint.messages-control]

0 commit comments

Comments
 (0)