• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

roocs / clisops / 16154603223

08 Jul 2025 09:19PM UTC coverage: 86.432% (-0.7%) from 87.164%
16154603223

push

github

web-flow
Fix docstrings and add more static typing to call signatures (#439)

### What kind of change does this PR introduce?: <!--(Bug fix, feature,
docs update, etc.)-->

* Replaces `black` and `isort` and most checks done via `flake8` with
`ruff`
* All docstrings that were previously written using non-`numpydoc`
conventions have been translated.
* Call signatures have been added for many functions missing them.
* `pre-commit` checks now include `ruff`, as well as several other new
hooks, including test artifact checking and YAML linting
* Coding conventions are now set for Python3.10+
* Added an `engine` argument for `Grid.ds.to_netcdf()`.

### Does this PR introduce a breaking change?: <!--(Has there been an
API change? New dependencies?)-->

Yes. Almost all docstrings have been modified, and call signatures have
been changed in many places. Some small bugs have been dealt with. This
represents an enormous change and the documentation should benefit from
this.

`Grid.ds.to_netcdf()` now accepts an `engine` argument (default: `None`)
to allow passing a specific engine option. This is necessary in some
situations (malformed metadata in a Dataset is better handled by
NetCDF4).

### Other information: <!--(Relevant discussion threads? Outside
documentation pages?)-->

`ruff` has been developed to provide a comprehensive set of linting and
formatting tools based on existing projects in Python. The program is
built in `rust` and is extremely fast.

The docstrings were converted using AI (GitHub Copilot) and human
validation. Corrections were made manually as needed.

334 of 398 new or added lines in 28 files covered. (83.92%)

47 existing lines in 11 files now uncovered.

3096 of 3582 relevant lines covered (86.43%)

5.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.09
/clisops/parameter/base_parameter.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc