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