numcodecs
numcodecs copied to clipboard
Apply refurb suggestions
- [FURB107] Replace
try: ... except ImportError: passwithwith suppress(ImportError): ... - [FURB109] Replace
in [x, y, z]within (x, y, z) - [FURB113] Use
x.extend(...)instead of repeatedly callingx.append() - [FURB123] Replace
list(x)withx.copy()
Not fixing all of them: some are debatable and other result in less readable (by me) code.
https://github.com/dosisod/refurb
TODO:
- [ ] Unit tests and/or doctests in docstrings
- [ ]
tox -e py310passes locally - [ ] Docstrings and API docs for any new/modified user-facing classes and functions
- [x] Changes documented in docs/release.rst
- [ ]
tox -e docspasses locally - [x] GitHub Actions CI passes
- [x] Test coverage to 100% (Coveralls passes)