Skip to content

Commit

Permalink
Update pre-commit (#4995)
Browse files Browse the repository at this point in the history
`pre-commit autoupdate --freeze && pre-commit run -a`
  • Loading branch information
jonmeow authored Feb 21, 2025
1 parent d199ce3 commit 2ea2166
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# - Do some amount of testing prior to building and uploading the release.
# - Tempting to try to examine existing testing workflow, but maybe better to
# allow re-using any complex parts and do our own testing. That would, for
# allow reusing any complex parts and do our own testing. That would, for
# example, allow us to narrow or expand the set of tests uses for
# pre-release testing to potentially be different from continuous testing.
# - Some questions around what to do in the event of a failure... error? Where
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:

# Formatters should be run late so that they can re-format any prior changes.
- repo: https://github.com/psf/black
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
rev: 8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b # frozen: 25.1.0
hooks:
- id: black
- repo: local
Expand Down Expand Up @@ -135,11 +135,11 @@ repos:
files: ^.*/BUILD$
pass_filenames: false
- repo: https://github.com/PyCQA/flake8
rev: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1
rev: bddd87797f8dfc07d2a10c894776018d9bec590b # frozen: 7.1.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'f56614daa94d5cd733d3b7004c5df9caad267b4a' # frozen: v1.13.0
rev: 'f40886d54c729f533f864ed6ce584e920feb0af7' # frozen: v1.15.0
hooks:
- id: mypy
# Use setup.cfg to match the command line.
Expand All @@ -161,7 +161,7 @@ repos:
.*_test\.py
)$
- repo: https://github.com/codespell-project/codespell
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
rev: 63c8f8312b7559622c0d82815639671ae42132ac # frozen: v2.4.1
hooks:
- id: codespell
args: ['-I', '.codespell_ignore', '--uri-ignore-words-list', '*']
Expand Down
2 changes: 1 addition & 1 deletion common/raw_hashtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ class BaseImpl {
// returns `true`. If not found, returns `false`.
//
// Does not release any memory, just leaves a tombstone behind so this entry
// cannot be found and the slot can in theory be re-used.
// cannot be found and the slot can in theory be reused.
template <typename LookupKeyT>
auto EraseImpl(LookupKeyT lookup_key, KeyContextT key_context) -> bool;

Expand Down
2 changes: 1 addition & 1 deletion proposals/p0253.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ semantically meaningful port into Carbon code.

An important nuance of this goal is that it doesn't include building a complete
Carbon standard library beyond the most basic necessary types. The intent is to
exercise and show the interoperability layers of Carbon by re-using the C++
exercise and show the interoperability layers of Carbon by reusing the C++
standard library in many cases and exporting a compatible C++ API to both woff2
and RE2's current API.

Expand Down
2 changes: 1 addition & 1 deletion proposals/p0257.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ implement it) alongside raw storage for the underlying object.
The unformed state can have the same representation as valid and fully formed
states for the object (for example, an empty `Optional(T)`). While there is a
semantic difference (any operation _other_ than assignment and destruction is an
error for an unformed object), there is no problem re-using a representation
error for an unformed object), there is no problem reusing a representation
which is also used for fully formed and valid objects provided it satisfies all
three of the above constraints. The semantic restrictions remain even in this
case. Using the hypothetical `Optional(T)` API, we could imagine:
Expand Down
2 changes: 1 addition & 1 deletion proposals/p2006.md
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ outweighing the proposed option on balance.
- `const` and `var`
- Some familiarity for C++ developers given the use of `const` there.
- `const` is used by other languages in a similar way to Carbon's `let`.
- However, very concerned about re-using `const` but having it mean
- However, very concerned about reusing `const` but having it mean
something fairly different from C++ as a declaration introducer. For
example, nesting a `var` pattern within `const` might be especially
surprising.
Expand Down
6 changes: 3 additions & 3 deletions proposals/p3833.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ the full semantic modeling here:

- Not representing a user-written `typeof` style expression to compute the
type, or duplicating the `y` expression.
- Caching and re-using SemIR for immutable things like successfully resolved
name lookup. Concretely, re-using a single cached lookup of
- Caching and reusing SemIR for immutable things like successfully resolved
name lookup. Concretely, reusing a single cached lookup of
`package#Core.AddWith` would still provide the full model. And similarly,
re-using an already computed parameterization such as
reusing an already computed parameterization such as
`package#Core.AddWith(i32)` repeatedly, and the lookup of `Op` within that
parameterization.

Expand Down

0 comments on commit 2ea2166

Please sign in to comment.