Reword the comments in the config files
Each comment is one sentence or two short ones joined by "=>", without a final period.
This commit is contained in:
parent
bca4250b4d
commit
51f68743e5
3 changed files with 11 additions and 18 deletions
|
|
@ -17,8 +17,7 @@ runs:
|
|||
r-cran-zoo \
|
||||
-y
|
||||
|
||||
# Built wheels (e.g., `rpy2`) and Python versions
|
||||
# => A new key whenever the pinned dependencies or Python versions change
|
||||
# Built wheels (e.g., `rpy2`) and Python versions, keyed by their pins
|
||||
# => Only the "lint" job in ci.yaml saves the cache
|
||||
- name: Restore the `uv` cache
|
||||
id: uv-cache
|
||||
|
|
|
|||
11
noxfile.py
11
noxfile.py
|
|
@ -299,9 +299,8 @@ def test_code(session: nox.Session) -> None:
|
|||
session.run("pytest", "--version")
|
||||
|
||||
pytest_default_args = (
|
||||
# See "[tool.coverage]" in pyproject.toml for `coverage` settings,
|
||||
# for example, branch coverage and report format,
|
||||
# and "[tool.coverage.paths]" mapping `coverage` to src/
|
||||
# See "[tool.coverage]" in pyproject.toml for the branch coverage,
|
||||
# the report format, and the mapping to src/
|
||||
"--cov",
|
||||
"--no-cov-on-fail",
|
||||
"--cov-fail-under=100",
|
||||
|
|
@ -478,10 +477,8 @@ def lock_dependencies(session: nox.Session) -> None:
|
|||
"""
|
||||
do_not_accept_arguments(session)
|
||||
|
||||
# Little hack: Create a flag in the env(ironment)
|
||||
# and call `upgrade_dependencies()` directly
|
||||
# because `session.notify()` starts sessions with a new
|
||||
# `nox.Session` object that does not have the flag set
|
||||
# `session.notify()` would start a new `nox.Session` without the flag
|
||||
# => Set the flag in the env(ironment) and call `upgrade_dependencies()` directly
|
||||
session.env["_lock_only"] = "true"
|
||||
|
||||
upgrade_dependencies(session)
|
||||
|
|
|
|||
|
|
@ -26,9 +26,8 @@ license = "MIT"
|
|||
readme = "README.md"
|
||||
|
||||
classifiers = [
|
||||
# All `SUPPORTED_PYTHONS` listed here are automatically
|
||||
# loaded by `nox`, our task runner, and made available
|
||||
# for testing in isolated environments
|
||||
# `nox` loads all `SUPPORTED_PYTHONS` listed here
|
||||
# => The test suite runs with each of them in isolated environments
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3.15",
|
||||
|
|
@ -318,8 +317,7 @@ select = [
|
|||
# "UP",
|
||||
]
|
||||
|
||||
# By default, flake8 ignores some errors.
|
||||
# Instead, do not ignore anything.
|
||||
# flake8 ignores some errors by default => Ignore nothing
|
||||
ignore = []
|
||||
|
||||
# If --ignore is passed on the command
|
||||
|
|
@ -331,7 +329,7 @@ extend-ignore = [
|
|||
"B950",
|
||||
# PEP 257 documents the arguments of `__init__()` in its own docstring
|
||||
"DOC301",
|
||||
# Comply with black's style.
|
||||
# Comply with black's style
|
||||
# Source: https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
|
||||
"E203", "W503",
|
||||
# `ruff`'s FBT003 does this better, as it allows builtins like `setattr()`
|
||||
|
|
@ -365,12 +363,11 @@ per-file-ignores = [
|
|||
"tests/*.py:ANN0,ANN2,D106,DOC106,DOC107,S101,S311",
|
||||
]
|
||||
|
||||
# Explicitly set mccabe's maximum complexity to 10 as recommended by
|
||||
# Thomas McCabe, the inventor of the McCabe complexity, and the NIST.
|
||||
# 10 as recommended by Thomas McCabe, the metric's inventor, and the NIST
|
||||
# Source: https://en.wikipedia.org/wiki/Cyclomatic_complexity#Limiting_complexity_during_development
|
||||
max-complexity = 10
|
||||
|
||||
# Comply with black's style.
|
||||
# Comply with black's style
|
||||
# Source: https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length
|
||||
max-line-length = 88
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue