diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index f28ba95..eb66b54 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -15,5 +15,5 @@ jobs: # below simply check the source code and fail if they find any files that need to be # formatted. The code is not automatically reformatted like it is when running the # pre-commit hooks. - - uses: psf/black@stable + - uses: psf/black@24.2.0 - uses: isort/isort-action@v1 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 455585f..0b9ba02 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v6 with: python-version: "3.12" - name: Install deps diff --git a/.gitignore b/.gitignore index b7faf40..155a712 100644 --- a/.gitignore +++ b/.gitignore @@ -205,3 +205,4 @@ cython_debug/ marimo/_static/ marimo/_lsp/ __marimo__/ +.vscode/ diff --git a/cwmscli/usgs/__init__.py b/cwmscli/usgs/__init__.py index c42d8b4..fccce66 100644 --- a/cwmscli/usgs/__init__.py +++ b/cwmscli/usgs/__init__.py @@ -118,13 +118,15 @@ def ratingsinifileimport(filename, api_root, api_key, api_key_loc): @click.option( "-d", "--days-back-modified", - default="2", + default=2, + type=int, help="Days back from current time measurements have been modified in USGS database. Can be integer value", ) @click.option( "-c", "--days-back-collected", - default="365", + default=365, + type=int, help="Days back from current time measurements have been collected. Can be integer value", ) @office_option