« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 919 ms

⬆️ Update ruff to v0.17.4 and mypy to v2.4.1, pin ruff's base rule se... · executablebooks/markdown-it-py@5e02f52

Source: https://github.com/executablebooks/markdown-it-py/commit/5e02f526b0955897a0d102ecae4cebc68762c8ac

Repository navigation

Commit 5e02f52


Browse files
pre-commit-ci[bot] authored ⬆️ Update ruff to v0.17.4 and mypy to v2.4.1, pin ruff's base rule set (#435 ) Bump the pre-commit hooks (ruff-pre-commit v0.16.7 → v0.17.4, mirrors-mypy v2.3.1 → v2.4.1), and select ruff's base rule set (E4, E7, E9, F) explicitly in [tool.ruff.lint]: ruff 0.16 widened its default set to ~400 rules. E731 is ignored for the two lambdas in rules_block/fence.py.
1 parent 4b21567 commit 5e02f52

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line number Diff line number Diff line change
@@ -24,14 +24,14 @@ repos:
24 24 - id: trailing-whitespace
25 25
26 26 - repo: https://github.com/astral-sh/ruff-pre-commit
27 - rev: v0.16.7
27 + rev: v0.17.4
28 28 hooks:
29 29 - id: ruff
30 30 args: [--fix]
31 31 - id: ruff-format
32 32
33 33 - repo: https://github.com/pre-commit/mirrors-mypy
34 - rev: v2.3.1
34 + rev: v2.4.1
35 35 hooks:
36 36 - id: mypy
37 37 additional_dependencies: [mdurl, typing-extensions]

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line number Diff line number Diff line change
@@ -95,8 +95,10 @@ exclude = [
95 95 ]
96 96
97 97 [tool.ruff.lint]
98 +# Pin the base rule set (ruff 0.16 grew its default from these 4 families to ~400 rules).
99 +select = ["E4", "E7", "E9", "F"]
98 100 extend-select = ["B0", "C4", "I", "ICN", "ISC", "N", "RUF", "SIM", "UP"]
99 -extend-ignore = ["ISC001", "ISC003", "N802", "N803", "N806", "N816", "RUF003"]
101 +extend-ignore = ["E731", "ISC001", "ISC003", "N802", "N803", "N806", "N816", "RUF003"]
100 102
101 103 [tool.ruff.lint.isort]
102 104 force-sort-within-sections = true