Skip to content

Commit d98796b

Browse files
committed
Update README
1 parent d91b530 commit d98796b

File tree

3 files changed

+13
-24
lines changed

3 files changed

+13
-24
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ repos:
2222
symbols\ and\ spaces|
2323
)
2424
25+
- repo: https://github.com/George-Ogden/linter
26+
rev: v1.1.0
27+
hooks:
28+
- id: lint
29+
exclude: ^tests/[^/].*/test_data/
30+
2531
- repo: https://github.com/astral-sh/ruff-pre-commit
2632
rev: v0.14.4
2733
hooks:

README.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This repository provides the following pre-commit hooks:
1818
- [check-merge-conflict](#check-merge-conflict) - check for merge conflicts.
1919
- [mypy](#mypy) - run [MyPy](#https://github.com/python/mypy).
2020
- [spell-check-commit-msgs](#spell-check-commit-msgs) - check for spelling errors in commit messages.
21-
- [dict-rewrite](#dict-rewrite) - rewrite string-keyed dictionaries to use `dict`.
2221

2322
### dbg-check
2423

@@ -59,28 +58,6 @@ You can set the MyPy version in the requirements file (eg `mypy==1.17.1`), other
5958
This uses [`codespell`](https://github.com/codespell-project/codespell) under the hood, and accepts the same flags via the `args` field, but interactive mode is not supported.
6059
You need to ensure that you install the `commit-msg` hooks, which you can do with `pre-commit install -t pre-commit -t commit-msg` or adding `default_install_hook_types: ["pre-commit", "commit-msg"]` to the `.pre-commit-config.yaml` (like below).
6160

62-
### dict-rewrite
63-
64-
Make string-based dictionaries use `dict` instead of curly braces. For example,
65-
66-
```python
67-
{
68-
"a": "ascii",
69-
"r": repr,
70-
"integer": 15,
71-
}
72-
# is rewritten as
73-
dict(
74-
a="ascii",
75-
r=repr,
76-
integer=15
77-
)
78-
```
79-
80-
Use the `--fix` arg to apply the change, as well as linting files.
81-
The change may disrupt the style of the code, so consider using a formatter, such as [`ruff`](https://github.com/astral-sh/ruff/).
82-
It is possible to ignore dictionaries using `# dict-ignore`.
83-
8461
## Example Use
8562

8663
Here's a sample `.pre-commit-config.yaml`:
@@ -97,6 +74,12 @@ repos:
9774
- id: mixed-line-ending
9875
- id: trailing-whitespace
9976

77+
- repo: https://github.com/George-Ogden/linter
78+
rev: v1.1.0
79+
hooks:
80+
- id: lint
81+
exclude: ^tests/[^/].*/test_data/
82+
10083
- repo: https://github.com/George-Ogden/pre-commit-hooks/
10184
rev: v2.0.0
10285
hooks:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "Pre-Commit-Hooks"
3-
version = "1.4.3"
3+
version = "2.0.0"
44
requires-python = ">=3.9,<3.15"
55

66
[build-system]

0 commit comments

Comments
 (0)