Skip to content
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
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ repos:
- id: check-yaml
- id: debug-statements

- repo: local
hooks:
- id: doubled-word
name: doubled word
language: pygrep
entry: \b([A-Za-z]+)[ \t]+\1\b
types: [text]
exclude: ^tests/data/

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion demos/hydroshare/USGS_WaterData_Samples_Examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
" A user supplied characteristic name describing one or more results.\n",
" Use `get_codes(code_service=\"observedproperty\")` for all possible inputs.\n",
"* **boundingBox**: list of four floats, optional\n",
" Filters on the the associated monitoring location's point location\n",
" Filters on the associated monitoring location's point location\n",
" by checking if it is located within the specified geographic area. \n",
" The logic is inclusive, i.e. it will include locations that overlap\n",
" with the edge of the bounding box. Values are separated by commas,\n",
Expand Down
6 changes: 3 additions & 3 deletions tests/configuration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,9 @@ def test_broken_config_does_not_break_unrelated_services(config_file):
def test_default_config_path_follows_a_changed_home(tmp_path, monkeypatch):
"""The default path derives from the home variable, so the memo watches it.

Which variable that is is platform-specific: ``ntpath.expanduser`` reads
``USERPROFILE`` and ignores ``HOME``, so setting ``HOME`` on Windows moves
nothing and this asserted against the runner's real home directory.
Which variable that is depends on the platform: ``ntpath.expanduser``
reads ``USERPROFILE`` and ignores ``HOME``, so setting ``HOME`` on Windows
moves nothing and this asserted against the runner's real home directory.
"""
home_var = "USERPROFILE" if os.name == "nt" else "HOME"
monkeypatch.delenv(configuration.CONFIG_PATH_ENV, raising=False)
Expand Down