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

clean-up & update #123

Merged
merged 26 commits into from
Jun 14, 2023
Merged

clean-up & update #123

merged 26 commits into from
Jun 14, 2023

Conversation

mroberge
Copy link
Owner

Latest changes mostly clean files, update the github actions, and repair compatibility with Pandas 2. It loses Python 3.7 and 3.8

mroberge and others added 26 commits June 29, 2022 23:38
Issue #118  the hf.stats function prints the incorrect url when it requests data. This fix will print the correct URL. None of the other functions in this module are affected.
fix url for stat service request
Fix docstrings so that they work again. Fixes issue #120
remove Python 3.6 from test suite
I changed how I update the version too: the version is only stored in __init__.py and setup.cfg grabs it with attr: hydrofunctions.__version__
removes 3.6
adds 3.10 & 3.11
Pandas removed .is_monotonic and replaced with .is_monotonic_increasing.
This fixes three tests and labels; plus a dataset.
fix index.week --> list(index.isocalendar().week)
Move to latest actions:
    checkout@v2 -->v3
    setup-python@v2-->v4
    codecov-actions@v1-->v3
        plus make verbose, add name
Update actions:
  checkout@v2 --> v3
  setup-python@v2 --> v4
  pypa/gh-action-pypi-publish@master
      --> release/v1
      and add verbose: true to help with twine debug
Update action version numbers:
  checkout@v2 --> v3
  setup-python@v2 --> v4
  pypa/gh-action-pypi-publish@master
    --> release/v1
    add verbose: true to help debug twine failures
These haven't been necessary for years...
Remove old cruft, such as:
  #!/usr/bin/env python
  # -*- coding: utf-8 -*-
Standardize the header for test modules and the fixtures.
Ignore long lines
3.10 gets parsed as 3.1 and then fails...
Only upload to CodeCov once; don't fail job if upload fails.
Pandas 2. requires 3.8+
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #123 (9c3904b) into master (22a4393) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
- Coverage   97.34%   97.23%   -0.12%     
==========================================
  Files          19       18       -1     
  Lines        1394     1373      -21     
==========================================
- Hits         1357     1335      -22     
- Misses         37       38       +1     
Impacted Files Coverage Δ
tests/fixtures.py 94.44% <ø> (-0.30%) ⬇️
tests/fixtures_daily_dupe.py 100.00% <ø> (ø)
tests/fixtures_data.py 100.00% <ø> (ø)
tests/fixtures_multiple_methods.py 100.00% <ø> (ø)
tests/fixtures_recent_only.py 100.00% <ø> (ø)
tests/fixtures_tzfail.py 100.00% <ø> (ø)
tests/fixtures_usgs_rdb.py 100.00% <ø> (ø)
tests/test_charts.py 99.15% <ø> (-0.02%) ⬇️
tests/test_exceptions.py 86.36% <ø> (-1.14%) ⬇️
tests/test_helpers.py 100.00% <ø> (ø)
... and 6 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mroberge mroberge merged commit 3b808ee into master Jun 14, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants