Skip to content

Commit

Permalink
Merge pull request #260 from tpvasconcelos/239-community-health
Browse files Browse the repository at this point in the history
Refactor community health files
  • Loading branch information
tpvasconcelos authored Oct 27, 2024
2 parents 29c27c3 + 13d3579 commit 6774622
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 49 deletions.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [ tpvasconcelos ]
5 changes: 5 additions & 0 deletions .github/GOVERNANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Governance

Thank you for your interest in ridgeplot! 🚀

For more details, please refer to our [contributing guidelines](https://ridgeplot.readthedocs.io/en/latest/development/contributing.html) and our standard [Code of Conduct](https://github.com/tpvasconcelos/ridgeplot?tab=coc-ov-file#readme).
41 changes: 41 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## Description

<!--
Please try to include a summary of your changes here.
-->

## Related issues

<!--
If you're addressing an existing issue, please reference it here.
You can use keywords like "closes", "fixes", or "resolves" to automatically close the issue when the PR is merged.
-->

## PR check list

<!--
Sorry for the long list!
Please try to tick all boxes below, even the ones that don't apply to your PR.
This will let us know that at least you've considered these points.
If you have any questions at all, don't hesitate to ask. We're here to help!
The checklist below is only here to help you, not to scare you away! 🤓
-->

- [ ] Read the [contributing guidelines](https://ridgeplot.readthedocs.io/en/latest/development/contributing.html).
- You don't have to read the whole thing, but it's a good idea to skim it. And definitely take a look at it if you're experiencing any issues getting your local environment up and running.
- [ ] Provided the relevant details in the PR's description.
- [ ] Referenced relevant issues in the PR's description.
- [ ] Added tests for all my changes.
- The CI will fail unless 100% of all new code is covered by the tests.
- [ ] Updated the docs for relevant changes.
- [ ] New modules (or renamed ones) are included in `docs/api/internal/`.
- [ ] New public functions/classes/variables are documented in `docs/api/index.rst`.
- [ ] Added the appropriate `versionadded`, `versionchanged`, or `deprecated` [directives](http://www.sphinx-doc.org/en/stable/markup/para.html#directive-versionadded) to docstrings.
- The version should be the next release version, which you can infer by bumping the minor version in `MAJOR.MINOR.PATCH` (e.g., if the current version is `0.2.3`, the next release will be `0.3.0`).
- [ ] Changes are documented in `docs/reference/changelog.md`.
- Please try to follow the conventions laid out in the file. In doubt, just ask!
- [ ] Consider granting [push permissions to your PR's branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork), so maintainers can help you out if needed.
- [ ] The CI check are all passing, or I'm working on fixing them!
- [ ] I have reviewed my own code! 🤠
13 changes: 13 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Support

Thank you for your interest in ridgeplot! 🚀

I hope you can find the help you need in the following resources:

- If you have any questions on how to use ridgeplot, please check our [getting started](https://ridgeplot.readthedocs.io/en/stable/getting_started/getting_started.html) guide first.
- The API reference for the `ridgeplot()` function can be found [here](https://ridgeplot.readthedocs.io/en/stable/api/public/ridgeplot.ridgeplot.html).
- For broader discussions, questions, or general feedback, please head over to our [GitHub Discussions](https://github.com/tpvasconcelos/ridgeplot/discussions) page.
- If you have found an issue or would like to request a new feature, please [open an issue](https://github.com/tpvasconcelos/ridgeplot/issues/new/choose) on our GitHub repository.
- If you would like to contribute to the project, please check our [contributing guidelines](https://ridgeplot.readthedocs.io/en/stable/development/contributing.html).

Our response times may vary, but we'll get back to you as soon as we can!
6 changes: 1 addition & 5 deletions .github/workflows/greet-new-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
Our response times may vary, but we'll get back to you as soon as we can!
To help us help you, please make sure you have:
* Followed our [contributing guidelines](https://ridgeplot.readthedocs.io/en/latest/development/contributing.html).
* Provided all the necessary information in your pull request's description.
* All CI check are passing.
* You have reviewed your own code! 🤠
To help us help you, please make sure you have ticked all the boxes in the pull request template.
Welcome aboard! 🚀
2 changes: 1 addition & 1 deletion docs/development/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ Here is a quick overview of ~~all~~ most of the CI tools and software used in th

## Code of Conduct

Please remember to read and follow our standard {repo-file}`Code of Conduct <CODE_OF_CONDUCT.md>`. 🤝
Please remember to read and follow our standard [Code of Conduct](https://github.com/tpvasconcelos/ridgeplot?tab=coc-ov-file#readme). 🤝
85 changes: 43 additions & 42 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,34 @@ Unreleased changes

### Deprecations

- Rename `coloralpha` to `opacity` for consistently with Plotly Express and deprecate the old parameter name. ({gh-pr}`245`)
- Rename `linewidth` to `line_width` for consistency with Plotly's API and deprecate the old parameter name. ({gh-pr}`253`)
- Rename `coloralpha` to `opacity` for consistently with Plotly Express and deprecate the old parameter name ({gh-pr}`245`)
- Rename `linewidth` to `line_width` for consistency with Plotly's API and deprecate the old parameter name ({gh-pr}`253`)

### Dependencies

- The new minimum version of Plotly is `5.20` to leverage the new `fillgradient` feature. ({gh-pr}`244`)
- The new minimum version of Plotly is `5.20` to leverage the new `fillgradient` feature ({gh-pr}`244`)

### Optimizations

- Importing statsmodels, scipy, and numpy can be slow, so we now only import the `ridgeplot._kde` module when the user needs this functionality. ({gh-pr}`242`)
- Importing statsmodels, scipy, and numpy can be slow, so we now only import the `ridgeplot._kde` module when the user needs this functionality ({gh-pr}`242`)

### Documentation

- Update examples in the getting-started guide to reflect the new default colormode ({gh-pr}`244`)
- Update the `plotly.min.js` version from `2.27` to `2.35.2` to leverage the `fillgradient` feature. ({gh-pr}`244`)
- Fix the API reference docs for the internal `ridgeplot._color` module. ({gh-pr}`244`)
- Tighten margins in generated examples. ({gh-pr}`257`)
- Update the `plotly.min.js` version from `2.27` to `2.35.2` to leverage the `fillgradient` feature ({gh-pr}`244`)
- Fix the API reference docs for the internal `ridgeplot._color` module ({gh-pr}`244`)
- Tighten margins in generated examples ({gh-pr}`257`)

### Miscellaneous

- Add the reference jupyter notebook used to generate the ridgeplot logo. ({gh-pr}`242`)
- Update ridgeplot's logo to use Plotly's official colors. ({gh-pr}`243`)
- Add the reference jupyter notebook used to generate the ridgeplot logo ({gh-pr}`242`)
- Update ridgeplot's logo to use Plotly's official colors ({gh-pr}`243`)

### Internal

- Simplify and refactor `interpolate_color` to not depend on `px.colors.find_intermediate_color` ({gh-pr}`253`)
- Improve type narrowing using `typing.TypeIs` ({gh-pr}`259`)
- Refactor community health files ({gh-pr}`260`)

---

Expand All @@ -57,7 +58,7 @@ Unreleased changes
### Features

- Add support for named CSS colors ({gh-pr}`229`)
- Allow users to define color scales as a collection of colors (`Collection[Color]`) ({gh-pr}`231`)
- Allow users to define color scales as a collection of colors. (`Collection[Color]`) ({gh-pr}`231`)
- Dynamically infer the default colorscale from the active Plotly template ({gh-pr}`237`)


Expand Down Expand Up @@ -123,7 +124,7 @@ Unreleased changes

### Breaking changes

- Dropped support for Python 3.8, in accordance with the official Python support policy[^1]. ({gh-pr}`204`)
- Dropped support for Python 3.8, in accordance with the official Python support policy[^1] ({gh-pr}`204`)
- Removed deprecated function `get_all_colorscale_names()` in favor of `list_all_colorscale_names()` ({gh-pr}`200`)

### CI/CD
Expand All @@ -140,7 +141,7 @@ Unreleased changes

### Breaking changes

- Dropped support for `statsmodels==0.14.2` due to import-time issue. See {gh-issue}`197` for more details. ({gh-pr}`198`)
- Dropped support for `statsmodels==0.14.2` due to import-time issue. See {gh-issue}`197` for more details ({gh-pr}`198`)

### CI/CD

Expand Down Expand Up @@ -179,28 +180,28 @@ This release contains a number of improvements to the docs, API reference, CI/CD

### Breaking changes

- Dropped support for Python 3.7, in accordance with the official Python support policy[^1]. ({gh-pr}`154`)
- Dropped support for Python 3.7, in accordance with the official Python support policy[^1] ({gh-pr}`154`)

### Features

- Add hoverinfo by default to the Plotly traces. ({gh-pr}`174`)
- Add hoverinfo by default to the Plotly traces ({gh-pr}`174`)

### Documentation

- Use the `{raw} html :file: _static/charts/<PLOT-ID>.html` directive to load the interactive Plotly graphs in the generated Sphinx docs. The generated HTML artefacts only include a `<div>` wrapper block now and the plotly.min.js is now vendored and automatically loaded via the `html_js_files` Sphinx config. ({gh-pr}`132`)
- Small adjustments to the example plots in the documentation. ({gh-pr}`132`)
- Reformat markdown files, removing all line breaks. ({gh-pr}`132`)
- Use the `{raw} html :file: _static/charts/<PLOT-ID>.html` directive to load the interactive Plotly graphs in the generated Sphinx docs. The generated HTML artefacts only include a `<div>` wrapper block now and the plotly.min.js is now vendored and automatically loaded via the `html_js_files` Sphinx config ({gh-pr}`132`)
- Small adjustments to the example plots in the documentation ({gh-pr}`132`)
- Reformat markdown files, removing all line breaks ({gh-pr}`132`)

### Internals

- Define a `ridgeplot._missing.MISSING` sentinel object for internal use (this replaces the multiple module-level `_MISSING = object()` sentinels). ({gh-pr}`154`)
- Add an internal `extras/` directory to place helper modules and packages used in different CI tasks. ({gh-pr}`154` and {gh-pr}`161`)
- Define a `ridgeplot._missing.MISSING` sentinel object for internal use (this replaces the multiple module-level `_MISSING = object()` sentinels) ({gh-pr}`154`)
- Add an internal `extras/` directory to place helper modules and packages used in different CI tasks ({gh-pr}`154` and {gh-pr}`161`)

### CI/CD

- Replace `isort`, `flake8`, and `pyupgrade` with `ruff`. ({gh-pr}`131`)
- Add regression tests for the figure artifacts generated by the examples in `ridgeplot_examples`. ({gh-pr}`154`)
- Remove the Python locked dependency files. ({gh-pr}`163`)
- Replace `isort`, `flake8`, and `pyupgrade` with `ruff` ({gh-pr}`131`)
- Add regression tests for the figure artifacts generated by the examples in `ridgeplot_examples` ({gh-pr}`154`)
- Remove the Python locked dependency files ({gh-pr}`163`)

---

Expand All @@ -216,25 +217,25 @@ This release contains a number of improvements to the docs, API reference, CI/CD

### Deprecations

- The `colormode='index'` value has been deprecated in favor of `colormode='row-index'`, which provides the same functionality but is more explicit and allows to distinguish between the `'row-index'` and `'trace-index'` modes. ({gh-pr}`114`)
- The `show_annotations` argument has been deprecated in favor of `show_yticklabels`. ({gh-pr}`114`)
- The `get_all_colorscale_names()` function has been deprecated in favor of `list_all_colorscale_names()`. ({gh-pr}`114`)
- The `colormode='index'` value has been deprecated in favor of `colormode='row-index'`, which provides the same functionality but is more explicit and allows to distinguish between the `'row-index'` and `'trace-index'` modes ({gh-pr}`114`)
- The `show_annotations` argument has been deprecated in favor of `show_yticklabels` ({gh-pr}`114`)
- The `get_all_colorscale_names()` function has been deprecated in favor of `list_all_colorscale_names()` ({gh-pr}`114`)

### Features

- Add functionality to allow plotting of multiple traces per row. ({gh-pr}`114`)
- Add `ridgeplot.datasets.load_lincoln_weather()` helper function to load the "Lincoln Weather" toy dataset. ({gh-pr}`114`)
- Add more versions of the _probly_ dataset (`"wadefagen"` and `"illinois"`). ({gh-pr}`114`)
- Add functionality to allow plotting of multiple traces per row ({gh-pr}`114`)
- Add `ridgeplot.datasets.load_lincoln_weather()` helper function to load the "Lincoln Weather" toy dataset ({gh-pr}`114`)
- Add more versions of the _probly_ dataset (`"wadefagen"` and `"illinois"`) ({gh-pr}`114`)
- Add support for Python 3.11.

### Documentation

- Major update to the documentation, including more examples, interactive plots, script to generate the HTML and WebP images from the example scripts, improved API reference, and more. ({gh-pr}`114`)
- Major update to the documentation, including more examples, interactive plots, script to generate the HTML and WebP images from the example scripts, improved API reference, and more ({gh-pr}`114`)

### Internal

- Remove `mdformat` from the automated CI checks. It can still be triggered manually. ({gh-pr}`114`)
- Improved type annotations and type checking. ({gh-pr}`114`)
- Remove `mdformat` from the automated CI checks. It can still be triggered manually ({gh-pr}`114`)
- Improved type annotations and type checking ({gh-pr}`114`)

---

Expand All @@ -243,21 +244,21 @@ This release contains a number of improvements to the docs, API reference, CI/CD

### Features

- Add `ridgeplot.datasets.load_probly()` helper function to load the `probly` toy dataset. The `probly.csv` file is now included in the package under `ridgeplot/datasets/data/`. ({gh-pr}`80`)
- Add `ridgeplot.datasets.load_probly()` helper function to load the `probly` toy dataset. The `probly.csv` file is now included in the package under `ridgeplot/datasets/data/` ({gh-pr}`80`)

### Documentation

- Change to numpydoc style docstrings. ({gh-pr}`81`)
- Add a robots.txt to the docs site. ({gh-pr}`81`)
- Auto-generate a site map for the docs site using `sphinx_sitemap`. ({gh-pr}`81`)
- Change the sphinx theme to `furo`. ({gh-pr}`81`)
- Improve the internal documentation and some of these internals to the API reference. ({gh-pr}`81`)
- Change to numpydoc style docstrings ({gh-pr}`81`)
- Add a robots.txt to the docs site ({gh-pr}`81`)
- Auto-generate a site map for the docs site using `sphinx_sitemap` ({gh-pr}`81`)
- Change the sphinx theme to `furo` ({gh-pr}`81`)
- Improve the internal documentation and some of these internals to the API reference ({gh-pr}`81`)

### Internal

- Fixed and improved some type annotations, including the introduction of `ridgeplot._types` module for type aliases such as `Numeric` and `NestedNumericSequence`. ({gh-pr}`80`)
- Add the `blacken-docs` pre-commit hook and add the `pep8-naming`, `flake8-pytest-style`, `flake8-simplify`, `flake8-implicit-str-concat`, `flake8-bugbear`, `flake8-rst-docstrings`, `flake8-rst-docstrings`, etc... plugins to the `flake8` pre-commit hook. ({gh-pr}`81`)
- Cleanup and improve some type annotations. ({gh-pr}`81`)
- Fixed and improved some type annotations, including the introduction of `ridgeplot._types` module for type aliases such as `Numeric` and `NestedNumericSequence` ({gh-pr}`80`)
- Add the `blacken-docs` pre-commit hook and add the `pep8-naming`, `flake8-pytest-style`, `flake8-simplify`, `flake8-implicit-str-concat`, `flake8-bugbear`, `flake8-rst-docstrings`, `flake8-rst-docstrings`, etc... plugins to the `flake8` pre-commit hook ({gh-pr}`81`)
- Cleanup and improve some type annotations ({gh-pr}`81`)
- Update deprecated `set-output` commands (GitHub Actions) ({gh-pr}`87`)

---
Expand All @@ -266,14 +267,14 @@ This release contains a number of improvements to the docs, API reference, CI/CD
------

- Automate the release process. See .github/workflows/release.yml, which issues a new GitHub release whenever a new git tag is pushed to the main branch by extracting the release notes from the changelog.
- Fix automated release process to PyPI. ({gh-pr}`27`)
- Fix automated release process to PyPI ({gh-pr}`27`)

---

0.1.16
------

- Upgrade project structure, improve testing and CI checks, and start basic Sphinx docs. ({gh-pr}`21`)
- Upgrade project structure, improve testing and CI checks, and start basic Sphinx docs ({gh-pr}`21`)
- Implement `LazyMapping` helper to allow `ridgeplot._colors.PLOTLY_COLORSCALES` to lazy-load from `colors.json` ({gh-pr}`20`)

---
Expand Down
2 changes: 1 addition & 1 deletion src/ridgeplot/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

NormalisationOption = Literal["probability", "percent"]
"""A :data:`~typing.Literal` type that represents the normalisation options
available for the ridgeplot. See :param:`ridgeplot.ridgeplot.norm` for more
available for the ridgeplot. See :paramref:`ridgeplot.ridgeplot.norm` for more
details."""

# ========================================================
Expand Down

0 comments on commit 6774622

Please sign in to comment.