-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
962c8b8
commit a3543c9
Showing
7 changed files
with
372 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: deploy | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
architecture: "x64" | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install wheel | ||
python3 -m pip install -r requirements.txt | ||
- name: Build site | ||
run: mkdocs build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# **Changelog** 📜 | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## **[0.0.2] - 2024-06-23** | ||
### **Added** ✨ | ||
- Improved cloud masking accuracy with updated model weights. | ||
- Added new examples for both RGB and full spectral band masking. | ||
- Enhanced documentation with more detailed usage instructions. 📚 | ||
|
||
### **Fixed** 🐛 | ||
- Corrected a bug in the weight loading mechanism that caused crashes on some systems. | ||
|
||
## **[0.0.1] - 2024-06-23** | ||
### **Added** ✨ | ||
- Basic structure for `phicloudmask` with initial cloud masking functions and utilities. | ||
- Set up CI/CD pipeline with GitHub Actions for continuous integration and deployment. 🚀 | ||
- Added basic tests and coverage reports to ensure code quality. ✅ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# **Contributor covenant code of conduct** 📜 | ||
|
||
## **Our pledge** 🤝 | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 🌎🤗 | ||
|
||
## **Our standards** 📏 | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language. 😊 | ||
- Being respectful of differing viewpoints and experiences. 🤔👂 | ||
- Gracefully accepting constructive criticism. 🛠️ | ||
- Focusing on what is best for the community. 🤲 | ||
- Showing empathy towards other community members. 🥺❤️ | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or advances. 🚫💬 | ||
- Trolling, insulting/derogatory comments, and personal or political attacks. 🚫😠 | ||
- Public or private harassment. 🚫👥 | ||
- Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission. 🚫🏡 | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting. 🚫👔 | ||
|
||
## **Our responsibilities** 🛡️ | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## **Scope** 🌐 | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## **Enforcement** 🚨 | ||
|
||
<!-- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [admin@uv.es](mailto:cesar.aybar@uv.es). --> | ||
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## **Attribution** 👏 | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html> | ||
|
||
[homepage]: <https://www.contributor-covenant.org> | ||
|
||
For answers to common questions about this code of conduct, see | ||
<https://www.contributor-covenant.org/faq> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,133 +1,89 @@ | ||
# Contributing to `phicloudmask` | ||
# **Contributing to `phicloudmask`** 🤝 | ||
|
||
Contributions are welcome, and they are greatly appreciated! | ||
Every little bit helps, and credit will always be given. | ||
We welcome contributions from the community! Every contribution, no matter how small, is appreciated and credited. Here’s how you can get involved: | ||
|
||
You can contribute in many ways: | ||
## **How to contribute** 🛠️ | ||
|
||
# Types of Contributions | ||
1. **Fork the repository:** Start by forking the [phicloudmask](https://github.com/IPL-UV/phicloudmask) repository to your GitHub account. 🍴 | ||
|
||
## Report Bugs | ||
2. **Clone your fork locally:** | ||
|
||
Report bugs at https://github.com/csaybar/phicloudmask/issues | ||
```bash | ||
cd <directory_in_which_repo_should_be_created> | ||
git clone https://github.com/YOUR_GITHUB_USERNAME/phicloudmask.git | ||
cd phicloudmask | ||
``` | ||
|
||
If you are reporting a bug, please include: | ||
3. **Set up your local environment:** 🌱 | ||
|
||
- Your operating system name and version. | ||
- Any details about your local setup that might be helpful in troubleshooting. | ||
- Detailed steps to reproduce the bug. | ||
- If you're using `pyenv`, select a Python version: | ||
```bash | ||
pyenv local <x.y.z> | ||
``` | ||
- Install dependencies and activate the environment: | ||
```bash | ||
poetry install | ||
poetry shell | ||
``` | ||
- Install pre-commit hooks: | ||
```bash | ||
poetry run pre-commit install | ||
``` | ||
## Fix Bugs | ||
4. **Create a branch for your changes:** 🖋️ | ||
Look through the GitHub issues for bugs. | ||
Anything tagged with "bug" and "help wanted" is open to whoever wants to implement a fix for it. | ||
```bash | ||
git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
## Implement Features | ||
5. **Make your changes:** Develop your feature or fix, ensuring to write clear, concise commit messages and include any necessary tests. | ||
Look through the GitHub issues for features. | ||
Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it. | ||
6. **Run checks on your changes:** ✅ | ||
## Write Documentation | ||
- Run formatting checks: | ||
```bash | ||
make check | ||
``` | ||
- Run unit tests: | ||
```bash | ||
make test | ||
``` | ||
- Optionally, run tests across different Python versions using tox: | ||
```bash | ||
tox | ||
``` | ||
Cookiecutter PyPackage could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such. | ||
7. **Commit your changes and push your branch:** 🚀 | ||
## Submit Feedback | ||
```bash | ||
git add . | ||
git commit -m "Your detailed description of your changes." | ||
git push origin name-of-your-bugfix-or-feature | ||
``` | ||
The best way to send feedback is to file an issue at https://github.com/csaybar/phicloudmask/issues. | ||
8. **Submit a pull request:** Go to your repository on GitHub and create a pull request to the `main` branch of the `phicloudmask` repository. Make sure your pull request meets the following guidelines: | ||
If you are proposing a new feature: | ||
- Include tests for your changes. | ||
- Update documentation if your pull request adds functionality. | ||
- Provide a detailed description of your changes. | ||
- Explain in detail how it would work. | ||
- Keep the scope as narrow as possible, to make it easier to implement. | ||
- Remember that this is a volunteer-driven project, and that contributions | ||
are welcome :) | ||
## **Types of contributions** 📦 | ||
# Get Started! | ||
- **Report Bugs:** 🐛 Report bugs by creating an issue on the [phicloudmask GitHub repository](https://github.com/IPL-UV/phicloudmask/issues). Please include: | ||
- Your operating system name and version. | ||
- Details about your local setup that might be helpful in troubleshooting. | ||
- Detailed steps to reproduce the bug. | ||
Ready to contribute? Here's how to set up `phicloudmask` for local development. | ||
Please note this documentation assumes you already have `poetry` and `Git` installed and ready to go. | ||
- **Fix Bugs:** 🛠️ Look through the GitHub issues for bugs tagged with "bug" and "help wanted". These are open for anyone who wants to contribute a fix. | ||
1. Fork the `phicloudmask` repo on GitHub. | ||
- **Implement Features:** ✨ Help implement new features by checking issues tagged with "enhancement" and "help wanted". | ||
2. Clone your fork locally: | ||
- **Write Documentation:** 📚 `phicloudmask` can always benefit from improved documentation. You can contribute by enhancing the official documentation, writing clear docstrings, or even creating blog posts and tutorials. | ||
```bash | ||
cd <directory_in_which_repo_should_be_created> | ||
git clone git@github.com:YOUR_NAME/phicloudmask.git | ||
``` | ||
- **Submit Feedback:** 💬 Propose new features or provide feedback by filing an issue on the [phicloudmask GitHub repository](https://github.com/IPL-UV/phicloudmask/issues). | ||
- If you propose a new feature, please explain in detail how it would work and keep the scope narrow to make implementation easier. | ||
- Remember that this is a community-driven project, and every bit of feedback is valuable! | ||
3. Now we need to install the environment. Navigate into the directory | ||
## **Get Started!** 🚀 | ||
```bash | ||
cd phicloudmask | ||
``` | ||
|
||
If you are using `pyenv`, select a version to use locally. (See installed versions with `pyenv versions`) | ||
|
||
```bash | ||
pyenv local <x.y.z> | ||
``` | ||
|
||
Then, install and activate the environment with: | ||
|
||
```bash | ||
poetry install | ||
poetry shell | ||
``` | ||
|
||
4. Install pre-commit to run linters/formatters at commit time: | ||
|
||
```bash | ||
poetry run pre-commit install | ||
``` | ||
|
||
5. Create a branch for local development: | ||
|
||
```bash | ||
git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
|
||
Now you can make your changes locally. | ||
|
||
6. Don't forget to add test cases for your added functionality to the `tests` directory. | ||
|
||
7. When you're done making changes, check that your changes pass the formatting tests. | ||
|
||
```bash | ||
make check | ||
``` | ||
|
||
Now, validate that all unit tests are passing: | ||
|
||
```bash | ||
make test | ||
``` | ||
|
||
9. Before raising a pull request you should also run tox. | ||
This will run the tests across different versions of Python: | ||
|
||
```bash | ||
tox | ||
``` | ||
|
||
This requires you to have multiple versions of python installed. | ||
This step is also triggered in the CI/CD pipeline, so you could also choose to skip this step locally. | ||
|
||
10. Commit your changes and push your branch to GitHub: | ||
|
||
```bash | ||
git add . | ||
git commit -m "Your detailed description of your changes." | ||
git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
11. Submit a pull request through the GitHub website. | ||
|
||
# Pull Request Guidelines | ||
|
||
Before you submit a pull request, check that it meets these guidelines: | ||
|
||
1. The pull request should include tests. | ||
|
||
2. If the pull request adds functionality, the docs should be updated. | ||
Put your new functionality into a function with a docstring, and add the feature to the list in `README.md`. | ||
Ready to contribute? Follow the steps above to set up `phicloudmask` for local development and start making your mark on the project. We’re excited to see what you’ll contribute! |
Oops, something went wrong.