From 78ea0780c531b1138ce58c64620701d033f43080 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:29:52 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.10.1 → 23.12.1](https://github.com/psf/black/compare/23.10.1...23.12.1) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.8) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/bugreport.yml | 2 +- .github/ISSUE_TEMPLATE/newfeature.yml | 2 +- .github/ISSUE_TEMPLATE/other.yml | 2 +- .github/dependabot.yml | 4 ++-- .github/workflows/ci.yaml | 6 +++--- .github/workflows/upstream-dev-ci.yaml | 6 +++--- .pre-commit-config.yaml | 8 +++---- codecov.yml | 4 ++-- docs/source/_static/custom.js | 30 +++++++++++++------------- readthedocs.yml | 4 ++-- xwrf/config.yaml | 10 ++++----- xwrf/unit_harmonization_map.yaml | 26 +++++++++++----------- 12 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bugreport.yml b/.github/ISSUE_TEMPLATE/bugreport.yml index 9c06cc70..67158a24 100644 --- a/.github/ISSUE_TEMPLATE/bugreport.yml +++ b/.github/ISSUE_TEMPLATE/bugreport.yml @@ -1,6 +1,6 @@ name: Bug Report description: File a bug report to help us improve -title: '[Bug]: ' +title: "[Bug]: " labels: [bug, triage] assignees: [] body: diff --git a/.github/ISSUE_TEMPLATE/newfeature.yml b/.github/ISSUE_TEMPLATE/newfeature.yml index 4413e813..ed886b16 100644 --- a/.github/ISSUE_TEMPLATE/newfeature.yml +++ b/.github/ISSUE_TEMPLATE/newfeature.yml @@ -1,6 +1,6 @@ name: New Feature description: Define a new feature to be implemented -title: '[FEATURE]: ' +title: "[FEATURE]: " labels: [enhancement] assignees: [] body: diff --git a/.github/ISSUE_TEMPLATE/other.yml b/.github/ISSUE_TEMPLATE/other.yml index b694cf5f..d834e9bf 100644 --- a/.github/ISSUE_TEMPLATE/other.yml +++ b/.github/ISSUE_TEMPLATE/other.yml @@ -1,6 +1,6 @@ name: Issue description: General Issue -title: '[MISC]: ' +title: "[MISC]: " labels: [] body: - type: markdown diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c7e6283d..ce9df8b6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,6 @@ version: 2 updates: - - package-ecosystem: 'github-actions' - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: monthly diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b8c1b290..0f2e00bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,7 @@ on: - main pull_request: schedule: - - cron: '0 0 * * *' # Daily “At 00:00” + - cron: "0 0 * * *" # Daily “At 00:00” workflow_dispatch: # allows you to trigger manually concurrency: @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v4 - name: set up conda environment @@ -34,7 +34,7 @@ jobs: bash cache-environment: true cache-downloads: true - post-cleanup: 'all' + post-cleanup: "all" create-args: >- python=${{ matrix.python-version }} diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index fdd990d7..fcfcc470 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -4,7 +4,7 @@ on: branches: - main schedule: - - cron: '0 0 * * *' # Daily “At 00:00” UTC + - cron: "0 0 * * *" # Daily “At 00:00” UTC workflow_dispatch: # allows you to trigger the workflow run manually concurrency: @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ["3.10"] steps: - uses: actions/checkout@v4 - name: set up conda environment @@ -34,7 +34,7 @@ jobs: bash cache-environment: true cache-downloads: true - post-cleanup: 'all' + post-cleanup: "all" create-args: >- python=${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 176fca1a..955b5dd5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,10 +19,10 @@ repos: hooks: - id: pyupgrade args: - - '--py38-plus' + - "--py38-plus" - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.12.1 hooks: - id: black - id: black-jupyter @@ -38,11 +38,11 @@ repos: - id: flake8 - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v4.0.0-alpha.8 hooks: - id: prettier diff --git a/codecov.yml b/codecov.yml index aa1da5f3..3961bafa 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,8 +5,8 @@ codecov: comment: false ignore: - - 'tests/*.py' - - 'setup.py' + - "tests/*.py" + - "setup.py" coverage: precision: 2 diff --git a/docs/source/_static/custom.js b/docs/source/_static/custom.js index 13a49111..42ad60c4 100644 --- a/docs/source/_static/custom.js +++ b/docs/source/_static/custom.js @@ -1,30 +1,30 @@ -console.log('RUNNING CUSTOM JAVASCRIPT') +console.log("RUNNING CUSTOM JAVASCRIPT"); function getBodyThemeName() { - var bodyTheme = document.body.dataset.theme - const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches + var bodyTheme = document.body.dataset.theme; + const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches; - if (bodyTheme === 'auto') { + if (bodyTheme === "auto") { if (prefersDark) { - bodyTheme = 'dark' + bodyTheme = "dark"; } else { - bodyTheme = 'light' + bodyTheme = "light"; } } - return bodyTheme + return bodyTheme; } -document.documentElement.setAttribute('theme', getBodyThemeName()) +document.documentElement.setAttribute("theme", getBodyThemeName()); var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { - if (mutation.type == 'attributes') { - var bodyTheme = getBodyThemeName() - console.log('document.body.dataset.theme changed to ' + bodyTheme) - document.documentElement.setAttribute('theme', bodyTheme) + if (mutation.type == "attributes") { + var bodyTheme = getBodyThemeName(); + console.log("document.body.dataset.theme changed to " + bodyTheme); + document.documentElement.setAttribute("theme", bodyTheme); } - }) -}) + }); +}); -observer.observe(document.body, { attributeFilter: ['data-theme'] }) +observer.observe(document.body, { attributeFilter: ["data-theme"] }); diff --git a/readthedocs.yml b/readthedocs.yml index 68e58958..1aed1757 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -2,6 +2,6 @@ version: 2 conda: environment: ci/environment-docs.yml build: - os: 'ubuntu-20.04' + os: "ubuntu-20.04" tools: - python: 'mambaforge-4.10' + python: "mambaforge-4.10" diff --git a/xwrf/config.yaml b/xwrf/config.yaml index 43fa67a9..a6f4a23d 100644 --- a/xwrf/config.yaml +++ b/xwrf/config.yaml @@ -33,10 +33,10 @@ time_coords: - time brackets_to_clean_from_units: - - '{' - - '}' - - '(' - - ')' + - "{" + - "}" + - "(" + - ")" cf_attribute_map: south_north: @@ -142,7 +142,7 @@ cf_attribute_map: ST: units: kelvin RH: - units: '%' + units: "%" conditional_cf_attribute_map: HYBRID_OPT==0: diff --git a/xwrf/unit_harmonization_map.yaml b/xwrf/unit_harmonization_map.yaml index 5b994a3b..a3d16b5b 100644 --- a/xwrf/unit_harmonization_map.yaml +++ b/xwrf/unit_harmonization_map.yaml @@ -14,14 +14,14 @@ W m-1 K-1: W m-2: - W m{-2} cm-3: - - '#/cm-3' -'1': + - "#/cm-3" +"1": - Dimensionless - fraction - numerical value - dimensionless - area/area - - '#' + - "#" g kg-1: - g_smoke/kg_air g m-2 s-1: @@ -32,36 +32,36 @@ h-1: - flash column-1 - Source column-1 invalid: - - '?' + - "?" - none - - '-' + - "-" - flag - category - ~? - dBz - dbZ - dBZ - - '0/1 Flag' + - "0/1 Flag" kelvin: - Kelvin kJ m-2: - KJ/m2 kg kg-1: - - '# kg kg-1' + - "# kg kg-1" - Kg Kg-1 kg kg-1 s-1: - kg kg_wet-1 s-1 kg-1: - - '#/kg-dryair' - - '# kg-1' - - '# kg(-1)' - - ' kg(-1)' + - "#/kg-dryair" + - "# kg-1" + - "# kg(-1)" + - " kg(-1)" m: - m asl - m agl - - 'meters MSL' + - "meters MSL" m s-1: - - 'm/s * area' + - "m/s * area" min: - minutes since simulation start min-1: