Description
What is your issue?
Here's the output from the Scientific Python Repo Review tool.
There's an online version here.
On mac I run
pipx run 'sp-repo-review[cli]' --format html --show err gh:pydata/xarray@main | pbcopy
A lot of these seem fairly easy to fix. I'll note that there's a large number of mypy
config suggestions.
General
- Detected build backend:
setuptools.build_meta
- Detected license(s): Apache Software License
? | Name | Description |
---|---|---|
❌ | PY007 |
Supports an easy task runner (nox or tox)
Projects must have a |
PyProject
See #8239 (comment)
? | Name | Description |
---|---|---|
❌ | PP305 |
Specifies xfail_strict
|
❌ | PP308 |
Specifies useful pytest summary
|
Pre-commit
? | Name | Description |
---|---|---|
❌ | PC110 |
Uses black
Use |
❌ | PC160 |
Uses codespell
Must have |
❌ | PC170 |
Uses PyGrep hooks (only needed if RST present)
Must have |
❌ | PC180 |
Uses prettier
Must have |
❌ | PC191 |
Ruff show fixes if fixes enabled
If |
❌ | PC901 |
Custom pre-commit CI message
Should have something like this in
|
MyPy
? | Name | Description |
---|---|---|
❌ | MY101 |
MyPy strict mode
Must have
|
❌ | MY103 |
MyPy warn unreachable
Must have
|
❌ | MY104 |
MyPy enables ignore-without-code
Must have
|
❌ | MY105 |
MyPy enables redundant-expr
Must have
|
❌ | MY106 |
MyPy enables truthy-bool
Must have
|
Ruff
? | Name | Description |
---|---|---|
❌ | RF101 |
Bugbear must be selected
Must select the flake8-bugbear
|