Pre commit update (#2098)

codespell now sees "falsy" as a mis-spelling of either "false" or "falsely"; adding it since I think this it's occasionally used this way in programming. e.g., https://developer.mozilla.org/en-US/docs/Glossary/Falsy

Adjusts to use the new check-copyright support for lines starting with a dash.
This commit is contained in:
Jon Ross-Perkins
2022-08-25 08:56:46 -07:00
committed by GitHub
parent f957d4d87d
commit 25d824ef15
4 changed files with 9 additions and 8 deletions
+1
View File
@@ -6,6 +6,7 @@ atleast
circularly
copyable
crate
falsy
inout
pullrequest
statics
+6 -6
View File
@@ -30,7 +30,7 @@ repos:
- id: trailing-whitespace
exclude: '^(.*/fuzzer_corpus/.*|.*/testdata/.*\.golden|.*\.svg)$'
- repo: https://github.com/google/pre-commit-tool-hooks
rev: dce83c2d360921b5caa8462c3b6c39cc27e3b2ed # frozen: v1.2.3
rev: e006c8ab09f96ec32ba728b488ea5d17e1f8f6c0 # frozen: v1.2.4
hooks:
- id: check-google-doc-style
- id: markdown-toc
@@ -49,7 +49,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 50c5478ed9e10bf360335449280cf2a67f4edb7a # frozen: v2.7.1
rev: d0a4882e1c96eca274f90b273f0f809ab3d98aff # frozen: v3.0.0-alpha.0
hooks:
- id: prettier
- repo: local
@@ -106,7 +106,7 @@ repos:
files: ^.*/BUILD$
pass_filenames: false
- repo: https://github.com/PyCQA/flake8
rev: cbeb4c9c4137cff1568659fcc48e8b85cddd0c8d # frozen: 4.0.1
rev: f8e1b317742036ff11ff86356fd2b68147e169f7 # frozen: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
@@ -132,7 +132,7 @@ repos:
.*_test\.py
)$
- repo: https://github.com/codespell-project/codespell
rev: 01da43d753cdff4ea7dff952b4f5317450af31e3 # frozen: v2.1.0
rev: c6ecb9fc51571a77bc92e6c265c358aef7cb6c38 # frozen: v2.2.1
hooks:
- id: codespell
args: ['-I', '.codespell_ignore', '--uri-ignore-words-list', '*']
@@ -145,7 +145,7 @@ repos:
.*/fuzzer_corpus/.*
)$
- repo: https://github.com/google/pre-commit-tool-hooks
rev: dce83c2d360921b5caa8462c3b6c39cc27e3b2ed # frozen: v1.2.3
rev: e006c8ab09f96ec32ba728b488ea5d17e1f8f6c0 # frozen: v1.2.4
hooks:
- id: check-copyright
args:
@@ -168,7 +168,7 @@ repos:
- '\.(plist)$'
- '<!--'
- ''
- ' -->'
- '\-->'
- --custom_format
- '\.vim$'
- ''
+1 -1
View File
@@ -4,7 +4,7 @@
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
Exceptions. See /LICENSE for license information.
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->
-->
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+1 -1
View File
@@ -4,7 +4,7 @@
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
Exceptions. See /LICENSE for license information.
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->
-->
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">