Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML formatting (prettier) #398

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, "3.10", "3.11"]
fail-fast: false

steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
issue-manager:
runs-on: "ubuntu-latest"
steps:
- uses: "tiangolo/[email protected]"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
config: >
- uses: "tiangolo/[email protected]"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
config: >
{
"feedback requested": {
"delay": 864000,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, "3.10", "3.11"]
fail-fast: false

steps:
Expand Down
35 changes: 20 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
ci:
autoupdate_schedule: "monthly" # Like dependabot
autoupdate_schedule: "monthly" # Like dependabot
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml]
24 changes: 12 additions & 12 deletions binder/environment-dev.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: earthaccess-dev
channels:
- conda-forge
- conda-forge
dependencies:
# This environment bootstraps poetry, the actual dev environment
# is installed and managed with poetry
- python=3.9
- jupyterlab=3
- xarray>=0.19
- ipyleaflet>=0.13
- h5netcdf>=0.11
- cartopy
- pip
- pip:
- poetry
# This environment bootstraps poetry, the actual dev environment
# is installed and managed with poetry
- python=3.9
- jupyterlab=3
- xarray>=0.19
- ipyleaflet>=0.13
- h5netcdf>=0.11
- cartopy
- pip
- pip:
- poetry
34 changes: 17 additions & 17 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: earthaccess
channels:
- conda-forge
- conda-forge
dependencies:
- python=3.9
- xarray>=0.19
- dask>=2022.1
- rioxarray>=0.3
- matplotlib-base>=3.3
- cartopy>=0.18.0
- ipyleaflet>=0.15
- netcdf4>=1.5
- h5netcdf>=0.11
- h5py>=3.2
- geopandas>=0.9
- zarr>=2.9.5
- jupyterlab>=3
- hvplot
- holoviews
- panel
- python=3.9
- xarray>=0.19
- dask>=2022.1
- rioxarray>=0.3
- matplotlib-base>=3.3
- cartopy>=0.18.0
- ipyleaflet>=0.15
- netcdf4>=1.5
- h5netcdf>=0.11
- h5py>=3.2
- geopandas>=0.9
- zarr>=2.9.5
- jupyterlab>=3
- hvplot
- holoviews
- panel
62 changes: 31 additions & 31 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ site_description: Client library for NASA Earthdata APIs
site_url: https://github.com/nsidc/earthaccess

theme:
name: 'material'
name: "material"
logo: earth.png
favicon: earth.png
palette:
Expand All @@ -19,7 +19,7 @@ theme:

repo_name: nsidc/earthaccess
repo_url: https://github.com/nsidc/earthaccess
edit_uri: ''
edit_uri: ""

extra_css:
- css/styles.css
Expand All @@ -42,45 +42,45 @@ plugins:
- mkdocs-jupyter:
execute: True
ignore:
- "tutorials/dask.ipynb"
- "**/.ipynb_checkpoints/*"
- "tutorials/dask.ipynb"
- "**/.ipynb_checkpoints/*"

nav:
- OVERVIEW:
- 'Readme': 'index.md'
- 'Getting started': 'tutorials/getting-started.ipynb'
- 'Resources' : 'resources.md'
- "Readme": "index.md"
- "Getting started": "tutorials/getting-started.ipynb"
- "Resources": "resources.md"
- HOW-TO:
- 'Authenticate with Earthdata Login': 'howto/authenticate.md'
- 'Search NASA datasets using filters': 'howto/search-collections.md'
- 'Search for data using filters': 'howto/search-granules.md'
- 'Determine if a dataset is available in the cloud': 'howto/storage-location.md'
- 'Using authenticated sessions to access data': 'howto/edl.ipynb'
- 'Download data from on-prem location': 'howto/onprem.md'
- 'Direct S3 access - Open/stream files in the cloud': 'howto/cloud.md'
- "Authenticate with Earthdata Login": "howto/authenticate.md"
- "Search NASA datasets using filters": "howto/search-collections.md"
- "Search for data using filters": "howto/search-granules.md"
- "Determine if a dataset is available in the cloud": "howto/storage-location.md"
- "Using authenticated sessions to access data": "howto/edl.ipynb"
- "Download data from on-prem location": "howto/onprem.md"
- "Direct S3 access - Open/stream files in the cloud": "howto/cloud.md"
- TUTORIALS:
- 'Accesing remote NASA data with fsspec': 'tutorials/file-access.ipynb'
- 'Search and access of restricted datasets': 'tutorials/restricted-datasets.ipynb'
- 'Reproducing NASA sea level rise infographic': 'tutorials/SSL.ipynb'
- 'Accessing and visualizing EMIT data with a few lines of code': 'tutorials/emit-earthaccess.ipynb'
- "Accesing remote NASA data with fsspec": "tutorials/file-access.ipynb"
- "Search and access of restricted datasets": "tutorials/restricted-datasets.ipynb"
- "Reproducing NASA sea level rise infographic": "tutorials/SSL.ipynb"
- "Accessing and visualizing EMIT data with a few lines of code": "tutorials/emit-earthaccess.ipynb"
# - 'Distributing workloads with Dask clusters': 'tutorials/dask.ipynb'
- USER REFERENCE:
- API:
- 'Search and Access': 'user-reference/api/api.md'
- "Search and Access": "user-reference/api/api.md"
- Modules:
- Collections:
- 'Collection Queries': 'user-reference/collections/collections-query.md'
- 'Collection Results': 'user-reference/collections/collections.md'
- Granules:
- 'Granule Queries': 'user-reference/granules/granules-query.md'
- 'Granule Results': 'user-reference/granules/granules.md'
- Store:
- 'Store': 'user-reference/store/store.md'
- Auth:
- 'Auth': 'user-reference/auth/auth.md'
- Collections:
- "Collection Queries": "user-reference/collections/collections-query.md"
- "Collection Results": "user-reference/collections/collections.md"
- Granules:
- "Granule Queries": "user-reference/granules/granules-query.md"
- "Granule Results": "user-reference/granules/granules.md"
- Store:
- "Store": "user-reference/store/store.md"
- Auth:
- "Auth": "user-reference/auth/auth.md"
- Glossary:
- 'NASA Glossary': 'user-reference/glossary/nasa-glossary.md'
- 'Cloud Computing Terminology': 'user-reference/glossary/cloud-glossary.md'
- "NASA Glossary": "user-reference/glossary/nasa-glossary.md"
- "Cloud Computing Terminology": "user-reference/glossary/cloud-glossary.md"

markdown_extensions:
- admonition
Expand Down
Loading