Skip to content

Commit e045dc4

Browse files
authored
Update pre-commit hooks (#9805)
* Auto-update pre-commit hooks * Supress new flake8 error * Fix codespell
1 parent 9b3d03a commit e045dc4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
77
- id: check-json
88
- id: check-merge-conflict
99
- id: check-symlinks
1010
- id: check-toml
11-
- repo: https://github.com/pycqa/isort
12-
rev: 5.13.2
11+
- repo: https://github.com/PyCQA/isort
12+
rev: 7.0.0
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/PyCQA/flake8
16-
rev: 7.0.0
16+
rev: 7.3.0
1717
hooks:
1818
- id: flake8
1919
additional_dependencies:
@@ -26,7 +26,7 @@ repos:
2626
- black==25.9.0
2727
- repo: https://github.com/codespell-project/codespell
2828
# Configuration for codespell is in .codespellrc
29-
rev: v2.2.6
29+
rev: v2.4.1
3030
hooks:
3131
- id: codespell
3232
exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js
@@ -39,6 +39,6 @@ repos:
3939
- id: pyupgrade
4040
args: ["--py310-plus", "--keep-percent-format"]
4141
- repo: https://github.com/tox-dev/pyproject-fmt
42-
rev: v2.6.0
42+
rev: v2.11.0
4343
hooks:
4444
- id: pyproject-fmt

docs/api-guide/metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The REST framework package only includes a single metadata class implementation,
6666

6767
## Creating schema endpoints
6868

69-
If you have specific requirements for creating schema endpoints that are accessed with regular `GET` requests, you might consider re-using the metadata API for doing so.
69+
If you have specific requirements for creating schema endpoints that are accessed with regular `GET` requests, you might consider reusing the metadata API for doing so.
7070

7171
For example, the following additional route could be used on a viewset to provide a linkable schema endpoint.
7272

docs/api-guide/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For example, when forcibly authenticating using a token, you might do something
9292

9393
---
9494

95-
**Note**: `force_authenticate` directly sets `request.user` to the in-memory `user` instance. If you are re-using the same `user` instance across multiple tests that update the saved `user` state, you may need to call [`refresh_from_db()`][refresh_from_db_docs] between tests.
95+
**Note**: `force_authenticate` directly sets `request.user` to the in-memory `user` instance. If you are reusing the same `user` instance across multiple tests that update the saved `user` state, you may need to call [`refresh_from_db()`][refresh_from_db_docs] between tests.
9696

9797
---
9898

docs/api-guide/validators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source:
55

66
# Validators
77

8-
> Validators can be useful for re-using validation logic between different types of fields.
8+
> Validators can be useful for reusing validation logic between different types of fields.
99
>
1010
> — [Django documentation][cite]
1111

tests/test_lazy_hyperlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def setUp(self):
3939
self.example = Example.objects.create(text='foo')
4040

4141
def test_lazy_hyperlink_names(self):
42-
global str_called
42+
global str_called # noqa: F824
4343
context = {'request': None}
4444
serializer = ExampleSerializer(self.example, context=context)
4545
JSONRenderer().render(serializer.data)

0 commit comments

Comments
 (0)