From a07c2bfe826a215a1466c86deb3d0a322acbcc32 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Mon, 22 Jul 2024 22:23:31 -0700 Subject: [PATCH] CI add devdeps (#339) --- .codecov.yaml | 11 +++++++++++ .github/workflows/ci.yml | 1 + .pre-commit-config.yaml | 4 ++-- CODE_OF_CONDUCT.md | 2 +- docs/conf.py | 16 ++++++++-------- docs/nitpick-exceptions | 1 + 6 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 .codecov.yaml diff --git a/.codecov.yaml b/.codecov.yaml new file mode 100644 index 0000000..f274bef --- /dev/null +++ b/.codecov.yaml @@ -0,0 +1,11 @@ +comment: off +coverage: + status: + project: + default: + threshold: 1% + +codecov: + require_ci_to_pass: false + notify: + wait_for_ci: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c125725..7aadde3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: envs: | - windows: py310 - macos: py311 + - linux: py312-devdeps secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4152678..9cd302d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: ] exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$" - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.4.4" + rev: "v0.5.4" hooks: - id: ruff args: ["--fix", "--unsafe-fixes"] @@ -35,7 +35,7 @@ repos: - id: check-yaml - id: debug-statements - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 1ef5430..b24d6ef 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. diff --git a/docs/conf.py b/docs/conf.py index 9207a3c..9ff7986 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,16 +7,16 @@ # This needs to be done before aiapy or sunpy is imported os.environ["PARFIVE_HIDE_PROGRESS"] = "True" -import datetime # NOQA: E402 -import warnings # NOQA: E402 -from pathlib import Path # NOQA: E402 +import datetime +import warnings +from pathlib import Path -from astropy.utils.exceptions import AstropyDeprecationWarning # NOQA: E402 -from matplotlib import MatplotlibDeprecationWarning # NOQA: E402 -from sunpy.util.exceptions import SunpyDeprecationWarning, SunpyPendingDeprecationWarning # NOQA: E402 -from sunpy_sphinx_theme import PNG_ICON # NOQA: E402 +from astropy.utils.exceptions import AstropyDeprecationWarning +from matplotlib import MatplotlibDeprecationWarning +from sunpy.util.exceptions import SunpyDeprecationWarning, SunpyPendingDeprecationWarning +from sunpy_sphinx_theme import PNG_ICON -from aiapy import __version__ # NOQA: E402 +from aiapy import __version__ # -- Project information ------------------------------------------------------- project = "aiapy" diff --git a/docs/nitpick-exceptions b/docs/nitpick-exceptions index 13b8e11..166c909 100644 --- a/docs/nitpick-exceptions +++ b/docs/nitpick-exceptions @@ -14,6 +14,7 @@ py:class function py:class path-like py:class str-like py:class time-like +py:class Unit py:class Unit('%') py:class Unit('Angstrom') py:class Unit('arcsec / pix')