Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#151)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.12.1](psf/black@23.10.1...23.12.1)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 5, 2024
1 parent 9d07ad2 commit 78ea078
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bugreport.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/newfeature.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: New Feature
description: Define a new feature to be implemented
title: '[FEATURE]: '
title: "[FEATURE]: "
labels: [enhancement]
assignees: []
body:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Issue
description: General Issue
title: '[MISC]: '
title: "[MISC]: "
labels: []
body:
- type: markdown
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -34,7 +34,7 @@ jobs:
bash
cache-environment: true
cache-downloads: true
post-cleanup: 'all'
post-cleanup: "all"
create-args: >-
python=${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -34,7 +34,7 @@ jobs:
bash
cache-environment: true
cache-downloads: true
post-cleanup: 'all'
post-cleanup: "all"
create-args: >-
python=${{ matrix.python-version }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ codecov:
comment: false

ignore:
- 'tests/*.py'
- 'setup.py'
- "tests/*.py"
- "setup.py"

coverage:
precision: 2
Expand Down
30 changes: 15 additions & 15 deletions docs/source/_static/custom.js
Original file line number Diff line number Diff line change
@@ -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"] });
4 changes: 2 additions & 2 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 5 additions & 5 deletions xwrf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ time_coords:
- time

brackets_to_clean_from_units:
- '{'
- '}'
- '('
- ')'
- "{"
- "}"
- "("
- ")"

cf_attribute_map:
south_north:
Expand Down Expand Up @@ -142,7 +142,7 @@ cf_attribute_map:
ST:
units: kelvin
RH:
units: '%'
units: "%"

conditional_cf_attribute_map:
HYBRID_OPT==0:
Expand Down
26 changes: 13 additions & 13 deletions xwrf/unit_harmonization_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 78ea078

Please sign in to comment.