You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Apply repo-review rule PP304
PP304: Sets the log level in pytest
log_cli_level should be set. This will allow logs to be displayed on failures.
* Apply repo-review rule PP305
PP305: Specifies xfail_strict
xfail_strict should be set. You can manually specify if a check should be strict when setting each xfail.
* Apply repo-review rules PP306, PP307, PP308
PP306: Specifies strict config
--strict-config should be in addopts = [...]. This forces an error if a config setting is misspelled.
PP307: Specifies strict markers
--strict-markers should be in addopts = [...]. This forces all markers to be specified in config, avoiding misspellings.
PP308: Specifies useful pytest summary
An explicit summary flag like -ra should be in addopts = [...] (print summary of all fails/errors).
* Apply ruff/pygrep-hooks rule PGH004
PGH004 Use specific rule codes when using `noqa`
PGH004 Use specific rule codes when using `ruff: noqa`
* Apply and enforce ruff rules (RUF)
Apply ruff rule RUF012:
RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Disable ruff rule RUF001
* Apply and enforce ruff/flake8-bugbear rules (B)
B007 Loop control variable not used within loop body
B028 No explicit `stacklevel` keyword argument found
B904 Within an `except` clause, raise exceptions with `raise ... from err` or
`raise ... from None` to distinguish them from errors in exception handling
B905 `zip()` without an explicit `strict=` parameter
Co-authored-by: David Stansby <[email protected]>
* Apply and enforce ruff/isort rules (I)
* Apply repo-review rule PC100
PC100: Has pre-commit-hooks
Must have https://github.com/pre-commit/pre-commit-hooks repo in .pre-commit-config.yaml
* Enforce repo-review rules
* Apply ruff/flake8-implicit-str-concat rules (ISC)
ISC001 Implicitly concatenated string literals on one line
ISC003 Explicitly concatenated string should be implicitly concatenated
* Apply ruff/refurb rules (FURB)
FURB163 Prefer `math.log10`/`math.log2` over `math.log` with a redundant base
* Fix DeprecationWarning
'pkgutil.find_loader' is deprecated and slated for removal
in Python 3.14; use importlib.util.find_spec() instead
---------
Co-authored-by: David Stansby <[email protected]>
0 commit comments