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

More pre-commit checks from official repo #609

Merged
merged 2 commits into from
Jul 6, 2024
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 .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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
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



Loading