-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nc-time-axis] QA refresh linter hooks (#293)
* Updated pre-commit-config.yaml with: - trailing-whitespace hook - CI chore - global file list * Added blacken-docs hook. - Required manually disabling on @savefig lines in docs/examples.rst - Update files list to include doc/*.rst in filespre-commit-config.yaml * small update to tpyes in codespell hook * Added Ruff linter to replace black, flake8 and isort. Includes Ruff autofixes: - 11 × D212 (multi-line-summary-first-line) - 1 × RET506 (superfluous-else-raise) - 1 × RET505 (superfluous-else-return) - 1 × I001 (unsorted-imports) Added `PLR5501` to exclude list to preserve readability of TODO block in convert method * Ignores for Ruff linter * Autofixes * Added mypy linter and exceptions * Added numpydoc and exceptions * Reorder hooks alphabetically * Added sort-all hook * Added validate-pyproject hook * Added sp-repo-review hook and excludes. - Applied some fixes to [tool.pytest.ini_options] * Added references to SciTools linters Wiki * Fixed repo-review "PP304" [Sets the log level in pytest] * Fixed sp-repo-review: "GH212" [Require GHA update grouping] * Removed wheel from build (Fixes sp-repo-review "PP003") * Alphabetised pyproject.toml sections (manually) * Try to fix brocken docs build * Fixed docs build (had to make `.. blacken-docs:off` apply to whole code block * Better comment on ruff select list * Added annotations to ruff ignore list
- Loading branch information
1 parent
2cf61f9
commit bc581bf
Showing
16 changed files
with
384 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ ignore = | |
W503, | ||
# W504: line break after binary operator | ||
W504 | ||
exclude = | ||
exclude = | ||
.eggs | ||
build | ||
docs/conf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.