diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ae925227..d6e5562b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/demos/hydroshare/USGS_WaterData_Samples_Examples.ipynb b/demos/hydroshare/USGS_WaterData_Samples_Examples.ipynb index c7b90846a..804b88a7c 100644 --- a/demos/hydroshare/USGS_WaterData_Samples_Examples.ipynb +++ b/demos/hydroshare/USGS_WaterData_Samples_Examples.ipynb @@ -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", diff --git a/tests/configuration_test.py b/tests/configuration_test.py index c0b6775e3..891114fe8 100644 --- a/tests/configuration_test.py +++ b/tests/configuration_test.py @@ -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)