Commit 4769d07
authored
chore: remove redundant flynt pre-commit hook (#2953)
# Rationale for this change
While working on the `ty` integration, I've been auditing the pre-commit
hooks. This PR removes the `flynt` pre-commit hook since it;s redundant
with ruff's `UP031` and `UP032` rules which are already enabled via the
`UP` selector in our `ruff.toml`.
`flynt` converts `.format()` and `%` style string formatting to
f-strings. Ruff's pyupgrade rules do the same:
- **UP031**: `printf-string-formatting`: [converts `%`
formatting](https://docs.astral.sh/ruff/rules/printf-string-formatting/)
- **UP032**: `f-string`: [converts `.format()` calls
](https://docs.astral.sh/ruff/rules/f-string/)
and both produce identical results
## Are these changes tested?
`make lint`
Manual tests:
Code: `"Hello, {}".format(name)`
- flynt: `f"Hello, {name}"`
- ruff: `f"Hello, {name}"`
## Are there any user-facing changes?
No1 parent b8b8c53 commit 4769d07
1 file changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 66 | | |
75 | 67 | | |
76 | 68 | | |
| |||
0 commit comments