Skip to content

Commit a9dbbb4

Browse files
chore(deps-dev): bump ruff from 0.15.21 to 0.16.0 in the python-minor-patch group across 1 directory (#720)
1 parent 686bed3 commit a9dbbb4

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
python-version: '3.14'
4141
- name: Install pinned linters (keep in sync with pyproject [dev])
42-
run: pip install ruff==0.15.21 black==26.5.1
42+
run: pip install ruff==0.16.0 black==26.5.1
4343
- name: Ruff
4444
run: ruff check diff_diff tests
4545
- name: Black

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5656
three modes now dispatch, and `"error"` raises naming the skipped pairs.
5757

5858
### Changed
59+
- **Internal: `ruff` dev-tooling pin bumped `0.15.21` -> `0.16.0`** (Dependabot +
60+
manual `lint.yml` sync). 0.16.0 expands ruff's *default* rule selection from
61+
59 rules across 2 linter families to **413 across 38** (`B`, `PL*`, `PYI`,
62+
`RUF`, `SIM`, `UP`, ...). This repo is insulated because
63+
`[tool.ruff.lint] select = ["E", "F", "I", "W"]` is explicit: the resolved set
64+
is the same **68 rules** under both pins (17 `E`, 43 `F`, 2 `I`, 6 `W`, per
65+
`ruff check --show-settings`), and 0.16.0's three preview-to-stable promotions
66+
(`FURB164`, `FURB192`, `ISC004`) fall outside those families.
67+
`ruff check diff_diff tests` and `black --check` are clean on both pins.
68+
**That explicit `select` is load-bearing** - dropping it to inherit ruff's
69+
defaults would now enable ~7x more rules.
5970
- **`WooldridgeDiD` now raises when rank reduction removes any requested
6071
cohort×time cell**, instead of reporting the survivors under their original
6172
`ATT(g,t)` labels. Once a cell is dropped, the remaining coefficients

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ mypy diff_diff
1919
Refresh with `pip install -e ".[dev]"`. The pinned tools require
2020
Python >= 3.10 (dev tooling only; the library itself still supports
2121
Python 3.9).
22+
- `[tool.ruff.lint] select = ["E", "F", "I", "W"]` is deliberately explicit and
23+
is **load-bearing**, not a restatement of ruff's defaults. Ruff 0.16.0 expanded
24+
its default selection from 59 rules to 413 across 38 linter families; the
25+
explicit `select` is what keeps a ruff upgrade from silently enabling hundreds
26+
of new rules. Do not drop it to inherit the defaults. Widening the rule set is
27+
a deliberate PR of its own.
2228
- `[tool.ruff.lint.per-file-ignores]` entries are deliberate (trop
2329
logger-before-imports E402, honest_did math-notation `l` E741, `__init__`
2430
re-export F401, conftest import ordering E402). Do not "fix" those patterns

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dev = [
6565
# NOTE: black/mypy require Python >= 3.10 (dev tooling only; the library
6666
# floor stays 3.9).
6767
"black==26.5.1",
68-
"ruff==0.15.21",
68+
"ruff==0.16.0",
6969
"mypy==2.3.0",
7070
"maturin>=1.4,<2.0",
7171
"matplotlib>=3.5",

0 commit comments

Comments
 (0)