Skip to content

Commit

Permalink
Merge pull request nsidc#609 from nsidc/more-basic-checks
Browse files Browse the repository at this point in the history
More pre-commit checks from official repo
  • Loading branch information
mfisher87 authored Jul 6, 2024
2 parents 2df1da9 + a8956e1 commit 30ddd87
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
notebooks/** linguist-documentation
docs/** linguist-documentation
tests/unit/fixtures/vcr_cassettes/** linguist-documentation
tests/unit/fixtures/vcr_cassettes/** linguist-documentation
17 changes: 16 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Validate format
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
# Check for common mistakes
- id: check-added-large-files
- id: check-case-conflict
# - id: check-illegal-windows-names # TODO: Enable in next release
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch # protects `main` by default
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
Expand Down
1 change: 0 additions & 1 deletion binder/postBuild
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ set -ex

poetry config virtualenvs.create false
poetry install --no-dev

2 changes: 0 additions & 2 deletions docs/howto/access-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ And that's it in just one line of code! This same piece of code will also work f


> More examples coming soon!

2 changes: 1 addition & 1 deletion docs/howto/cloud.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Direct S3 access for cloud-based datasets

Coming soon
Coming soon
2 changes: 1 addition & 1 deletion docs/howto/search-collections.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# how to search for data collections using spatial, temporal, keyword filters

Coming soon
Coming soon
2 changes: 0 additions & 2 deletions docs/howto/search-granules.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ results = earthaccess.search_data(
```

Now that we have our results we can do multiple things: We can iterate over them to get HTTP (or S3) links, we can download the files to a local folder, or we can open these files and stream their content directly to other libraries e.g. xarray.


2 changes: 1 addition & 1 deletion docs/howto/storage-location.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Determine if a data set is on-prem or in the cloud

Coming soon
Coming soon
2 changes: 0 additions & 2 deletions docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
* [earthaccess @ AGU poster](https://docs.google.com/presentation/d/1OOSZzbHv6Ck4lzOE01FQdI4kX0VCfcVBS4pWCc7dtBo/edit?usp=sharing)

* [NSIDC Cloud Data Access Guide](https://nsidc.org/data/user-resources/help-center/nasa-earthdata-cloud-data-access-guide)


1 change: 0 additions & 1 deletion docs/user-reference/collections/collections-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
show_source: false
inherited_members: true
show_source: false

1 change: 0 additions & 1 deletion docs/user-reference/collections/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
inherited_members: true
show_root_heading: true
show_source: false

1 change: 0 additions & 1 deletion docs/user-reference/granules/granules-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
inherited_members: true
show_root_heading: true
show_source: false

3 changes: 0 additions & 3 deletions docs/user-reference/granules/granules.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@
inherited_members: true
show_root_heading: true
show_source: false



0 comments on commit 30ddd87

Please sign in to comment.