Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created contributing.md #120

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

Sakshamgupta90
Copy link
Contributor

Fix Issue #103

@Sakshamgupta90
Copy link
Contributor Author

Hi @ocefpaf, I couldn't able to understand why this pre-commit check gets failed, can you clear this out?

@ocefpaf
Copy link
Member

ocefpaf commented Jun 19, 2024

Hi @ocefpaf, I couldn't able to understand why this pre-commit check gets failed, can you clear this out?

If you click on the link it will list all the failures. They ar mostly related to long lines and we can fix them in another PR. The file you added seems to be OK.

@Sakshamgupta90
Copy link
Contributor Author

So, is the documentation written is fine enough?

CONTRIBUTING.md Outdated
@@ -0,0 +1,249 @@
# Contributors Guide

Interested in helping out the IOOS QARTOD?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QARTOD is 1 module of ioos_qc. There are others QA/QC standards implemented here.

Suggested change
Interested in helping out the IOOS QARTOD?
Interested in helping out the ioos_qc?

CONTRIBUTING.md Outdated

## Introduction

First off, thank you for considering contributing to IOOS QARTOD!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
First off, thank you for considering contributing to IOOS QARTOD!
First off, thank you for considering contributing to ioos_qc!

CONTRIBUTING.md Outdated

First off, thank you for considering contributing to IOOS QARTOD!

QARTOD is collection of utilities, scripts and tests to assist in automated quality assurance and quality control for oceanographic datasets and observing systems.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace all QARTOD references to the name to the library ioos_qc.

CONTRIBUTING.md Outdated
This can also be installed from a variety of package managers, including ``conda`` if needed.

Login to your [GitHub](https://github.com) account and make a fork of the
[IOOS_QC repository](https://github.com/ioos/ioos_qc) by clicking the "Fork" button.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is odd but the library name should be lower case.

Suggested change
[IOOS_QC repository](https://github.com/ioos/ioos_qc) by clicking the "Fork" button.
[ioos_qc repository](https://github.com/ioos/ioos_qc) by clicking the "Fork" button.

CONTRIBUTING.md Outdated

For Environment Setup:

After ``-n`` you can specify any name you'd like; here we've chosen ``ioosqc38``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
After ``-n`` you can specify any name you'd like; here we've chosen ``ioosqc38``.
After ``-n`` you can specify any name you'd like; here we've chosen ``ioosqc312`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in the documentation its, written the ioosqc38, so I guess we need to fix that as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contributing guide will replace any contributing instructions in the docs. We will remove those later in another PR. That is why I requested you to try to build it in a comment below.

CONTRIBUTING.md Outdated
**IMPORTANT**: Always activate this environment when developing and testing your changes!

```sh
conda activate ioosqc38
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
conda activate ioosqc38
conda activate ioosqc312

CONTRIBUTING.md Outdated
Finally, to run all the tests!

```sh
pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the line we have in the GitHub Actions file and use it here. We have some extra options.

CONTRIBUTING.md Outdated
Create the following environment:

```sh
conda create -y -n ioosqc38_docs python=3.8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change all references of Python 3.8 to Python 3.12

CONTRIBUTING.md Outdated
Currently there are no packages in this environment, let's change that.

```sh
conda install -y --file requirements.txt \ --file requirements-dev.txt \ --file docs/requirements.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should simplify this later but it is OK for now. We don't need so many requirements file. We should probably add those to pyproject.toml.

Suggested change
conda install -y --file requirements.txt \ --file requirements-dev.txt \ --file docs/requirements.txt
conda install --file requirements.txt --file requirements-dev.txt --file docs/requirements.txt

make html
```
Then open a browser to:
``build/html/index.html``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try building our docs? Are you familiar with sphinx? That could be a nice exercise to understand a bit more of our infrastructure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tried building the docs. And no, I am not familiar with sphinx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you succeed? If not what were to problems you faced that could be added as instructions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I got succeeded, do received some warnings, but it build successfully.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Do you want to tackle those warnings? Any missing packages that you had to install that were not in the requirement.txt file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No packages needed. And it will build automatically, nothing to tackle with.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I had to install pooch, which is not specified in any of our requirement files, and adapt an old notebook with a new syntax for erddapy. I wonder if your build ran the notebooks correctly then, you should've seen these failures.

Anyways, let's tackle the build warnings in a next PRs.

Copy link
Contributor Author

@Sakshamgupta90 Sakshamgupta90 Jun 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad!
I just tried to run one of the notebooks tests, and there it shows those module errors. Sorry for that, I thought once the build is done, everything is fine.
So, I will add those missing modules in the requirements files. Will open the PR for its same.
So sorry for that once again.

@ocefpaf ocefpaf merged commit 35a893b into ioos:main Jun 19, 2024
12 of 14 checks passed
@Sakshamgupta90 Sakshamgupta90 deleted the feature/add-contributing-file branch June 19, 2024 16:37
@ocefpaf ocefpaf mentioned this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants