Skip to content

Commit 8ce183e

Browse files
authored
chore: enable dependabot for pre-commit and refresh hook pins (boto#3685)
1 parent daaf0f3 commit 8ce183e

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ updates:
99
update-types: ["version-update:semver-patch"]
1010
cooldown:
1111
default-days: 7
12+
- package-ecosystem: "pre-commit"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
cooldown:
17+
default-days: 7

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ exclude: "\
1414
)"
1515
repos:
1616
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
17-
rev: v5.0.0
17+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1818
hooks:
1919
- id: check-yaml
2020
- id: end-of-file-fixer
2121
- id: trailing-whitespace
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.12.0
23+
rev: d1b833175a5d08a925900115526febd8fe71c98e # frozen: v0.15.11
2424
hooks:
2525
- id: ruff-check
2626
args: [ --fix ]

tests/unit/docs/test_docstring.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ def test_raises_not_implemented(self):
3535

3636
def test_expandtabs(self):
3737
docstring = MockedLazyLoadedDocstring()
38-
docstring.mocked_writer_method.side_effect = (
39-
lambda section: section.write('foo\t')
38+
docstring.mocked_writer_method.side_effect = lambda section: (
39+
section.write('foo\t')
4040
)
4141
self.assertEqual('foo ', docstring.expandtabs(1))
4242

4343
def test_str(self):
4444
docstring = MockedLazyLoadedDocstring()
45-
docstring.mocked_writer_method.side_effect = (
46-
lambda section: section.write('foo')
45+
docstring.mocked_writer_method.side_effect = lambda section: (
46+
section.write('foo')
4747
)
4848
self.assertEqual('foo', str(docstring))
4949

5050
def test_repr(self):
5151
docstring = MockedLazyLoadedDocstring()
52-
docstring.mocked_writer_method.side_effect = (
53-
lambda section: section.write('foo')
52+
docstring.mocked_writer_method.side_effect = lambda section: (
53+
section.write('foo')
5454
)
5555
self.assertEqual('foo', repr(docstring))
5656

tests/unit/test_validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def test_validate_document_type_string(self):
181181
given_shapes=self.shapes,
182182
input_params={
183183
'inlineDocument': {
184-
'number': complex(1j),
184+
'number': 1j,
185185
'date': datetime(2017, 4, 27, 0, 0),
186186
'list': [invalid_document],
187187
'dict': {'foo': (1, 2, 3)},

0 commit comments

Comments
 (0)