Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data] Add Vale configuration #35916

Merged
merged 86 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 83 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
5984f1e
Rename `"model_state_dict"` to `"model"`
bveeramani Nov 22, 2022
8f58490
Revert "Rename `"model_state_dict"` to `"model"`"
bveeramani Nov 22, 2022
63432eb
Merge remote-tracking branch 'upstream/master'
bveeramani Dec 5, 2022
2c33947
Merge remote-tracking branch 'upstream/master'
bveeramani Dec 6, 2022
89694a0
Merge remote-tracking branch 'upstream/master'
bveeramani Dec 19, 2022
fe60ca3
Merge remote-tracking branch 'upstream/master'
bveeramani Dec 27, 2022
d45ae9a
Merge remote-tracking branch 'upstream/master'
bveeramani Jan 2, 2023
c703dfc
Merge remote-tracking branch 'upstream/master'
bveeramani Jan 6, 2023
81dd25c
Merge remote-tracking branch 'upstream/master'
bveeramani Jan 19, 2023
fba788e
Merge remote-tracking branch 'upstream/master'
bveeramani Jan 24, 2023
de05655
Update annotations.py
bveeramani Jan 26, 2023
fd2ff91
Revert "Update annotations.py"
bveeramani Jan 26, 2023
7c3ac36
Merge remote-tracking branch 'upstream/master'
bveeramani Feb 14, 2023
9c7b546
Merge remote-tracking branch 'upstream/master'
bveeramani Feb 28, 2023
9d7a15f
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 2, 2023
4f02efe
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 2, 2023
46f43d9
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 6, 2023
a644307
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 10, 2023
e5d0bf1
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 20, 2023
fe7286c
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 21, 2023
51b3a09
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 24, 2023
79f8be9
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 28, 2023
53bede6
Merge remote-tracking branch 'upstream/master'
bveeramani Mar 28, 2023
7cec6e3
Merge remote-tracking branch 'upstream/master'
bveeramani Apr 10, 2023
9407930
Merge remote-tracking branch 'upstream/master'
bveeramani Apr 17, 2023
67ae591
Merge remote-tracking branch 'upstream/master'
bveeramani Apr 18, 2023
93414b8
Merge remote-tracking branch 'upstream/master'
bveeramani May 1, 2023
fcfa9a5
Merge remote-tracking branch 'upstream/master'
bveeramani May 2, 2023
fbfe52d
Merge remote-tracking branch 'upstream/master'
bveeramani May 3, 2023
16132de
Merge remote-tracking branch 'upstream/master'
bveeramani May 10, 2023
4302db7
Merge remote-tracking branch 'upstream/master'
bveeramani May 12, 2023
ce56268
Merge remote-tracking branch 'upstream/master'
bveeramani May 15, 2023
7ac7203
Merge remote-tracking branch 'upstream/master'
bveeramani May 16, 2023
cd2d66d
Merge remote-tracking branch 'upstream/master'
bveeramani May 19, 2023
f4ddcc9
Initial commit
bveeramani May 23, 2023
10fe686
Merge remote-tracking branch 'upstream/master'
bveeramani May 24, 2023
5959b7d
Merge remote-tracking branch 'upstream/master'
bveeramani May 25, 2023
3cd76b3
Merge remote-tracking branch 'upstream/master'
bveeramani May 26, 2023
05862e2
Update stuff
bveeramani May 31, 2023
508ff9f
Update vale.yml
bveeramani May 31, 2023
4ceee8a
Update stuff
bveeramani May 31, 2023
f602b8e
Test stuff
bveeramani May 31, 2023
2a13086
Update stuff
bveeramani May 31, 2023
7939f16
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 1, 2023
1ef4712
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 13, 2023
9a4740d
Update stuff
bveeramani Jun 13, 2023
ef035bc
Merge branch 'master' into vale
bveeramani Jun 13, 2023
603bf64
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 14, 2023
73dd0fb
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 15, 2023
edd6fa6
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 21, 2023
07aefcf
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 22, 2023
ed021f1
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 26, 2023
f0d61f1
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 29, 2023
40f488f
Merge remote-tracking branch 'upstream/master'
bveeramani Jun 30, 2023
1742f5d
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 3, 2023
d5dc07a
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 5, 2023
b9cbe98
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 7, 2023
563b3ea
Merge remote-tracking branch 'upstream/master' into vale
bveeramani Jul 10, 2023
7050c96
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 11, 2023
6b658cf
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 11, 2023
a91cd78
Update files
bveeramani Jul 11, 2023
a2a8887
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 14, 2023
193b9f4
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 17, 2023
e65c3d5
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 18, 2023
8be7eeb
Merge branch 'master' of https://github.com/ray-project/ray
bveeramani Jul 19, 2023
415ec40
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 21, 2023
f5af84f
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 25, 2023
06e0cee
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 25, 2023
2f201f5
Merge remote-tracking branch 'upstream/master'
bveeramani Jul 31, 2023
44abef4
Merge branch 'master' of https://github.com/ray-project/ray
bveeramani Jul 31, 2023
f49972a
Merge remote-tracking branch 'upstream/master'
bveeramani Aug 2, 2023
86be544
Merge remote-tracking branch 'upstream/master'
bveeramani Aug 7, 2023
91e997b
Merge branch 'master' of https://github.com/bveeramani/ray
bveeramani Aug 17, 2023
6ee9026
Resolve merge conflicts
bveeramani Aug 17, 2023
a895099
Update styles
bveeramani Aug 21, 2023
3bea9ff
Merge branch 'master' into vale
bveeramani Aug 21, 2023
bbf60f8
Update stuff
bveeramani Aug 21, 2023
e08c862
Merge branch 'vale' of https://github.com/bveeramani/ray into vale
bveeramani Aug 21, 2023
13ed8dc
Fix stuff
bveeramani Aug 21, 2023
df1b0e0
Sort files
bveeramani Aug 21, 2023
4dcf8f2
Add notes
bveeramani Aug 21, 2023
7808303
Remove whitespace
bveeramani Aug 21, 2023
f87f43e
Merge branch 'master' into vale
bveeramani Aug 21, 2023
6ac1000
Update files
bveeramani Aug 22, 2023
6e2dea9
Update files
bveeramani Aug 22, 2023
c60d7d3
Update files
bveeramani Aug 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/styles/Google/AMPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Use 'AM' or 'PM' (preceded by a space)."
link: 'https://developers.google.com/style/word-list'
level: error
nonword: true
tokens:
- '\d{1,2}[AP]M'
- '\d{1,2} ?[ap]m'
- '\d{1,2} ?[aApP]\.[mM]\.'
70 changes: 70 additions & 0 deletions .github/styles/Google/Acronyms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
extends: conditional
message: "Spell out '%s', if it's unfamiliar to the audience."
link: 'https://developers.google.com/style/abbreviations'
level: warning
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- API
- ASP
- AWS
- CLI
- CPU
- CSS
- CSV
- CUDA
- DEBUG
- DOM
- DPI
- ETL
- FAQ
- GCC
bveeramani marked this conversation as resolved.
Show resolved Hide resolved
- GDB
- GET
- GPU
- GTK
- GUI
- HTML
- HTTP
- HTTPS
- IDE
- JAR
- JSON
- JSONL
- JSX
- LESS
- LLDB
- NET
- NFS
- NOTE
- NVDA
- OSS
- PATH
- PDF
- PHP
- PNG
- POST
- RAM
- REPL
- RSA
- SCM
- SCSS
- SDK
- SQL
- SSH
- SSL
- SVG
- TBD
- TCP
- TODO
- URI
- URL
- USB
- UTF
- XML
- XSS
- YAML
- ZIP
8 changes: 8 additions & 0 deletions .github/styles/Google/Colons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: existence
message: "'%s' should be in lowercase."
link: 'https://developers.google.com/style/colons'
nonword: true
level: suggestion
scope: sentence
tokens:
- ':\s[A-Z]'
30 changes: 30 additions & 0 deletions .github/styles/Google/Contractions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: 'https://developers.google.com/style/contractions'
level: warning
ignorecase: true
action:
name: replace
swap:
are not: aren't
cannot: can't
could not: couldn't
did not: didn't
do not: don't
does not: doesn't
has not: hasn't
have not: haven't
how is: how's
is not: isn't
it is: it's
should not: shouldn't
that is: that's
they are: they're
was not: wasn't
we are: we're
we have: we've
were not: weren't
what is: what's
when is: when's
where is: where's
will not: won't
9 changes: 9 additions & 0 deletions .github/styles/Google/DateFormat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Use 'July 31, 2016' format, not '%s'."
link: 'https://developers.google.com/style/dates-times'
ignorecase: true
level: error
nonword: true
tokens:
- '\d{1,2}(?:\.|/)\d{1,2}(?:\.|/)\d{4}'
- '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'
9 changes: 9 additions & 0 deletions .github/styles/Google/Ellipses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "In general, don't use an ellipsis."
link: 'https://developers.google.com/style/ellipses'
nonword: true
level: warning
action:
name: remove
tokens:
- '\.\.\.'
12 changes: 12 additions & 0 deletions .github/styles/Google/EmDash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: existence
message: "Don't put a space before or after a dash."
link: 'https://developers.google.com/style/dashes'
nonword: true
level: error
action:
name: edit
params:
- remove
- ' '
tokens:
- '\s[—–]\s'
13 changes: 13 additions & 0 deletions .github/styles/Google/EnDash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extends: existence
message: "Use an em dash ('—') instead of '–'."
bveeramani marked this conversation as resolved.
Show resolved Hide resolved
link: 'https://developers.google.com/style/dashes'
nonword: true
level: error
action:
name: edit
params:
- replace
- '-'
- '—'
tokens:
- '–'
9 changes: 9 additions & 0 deletions .github/styles/Google/Exclamation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Don't use exclamation points in text."
link: 'https://developers.google.com/style/exclamation-points'
nonword: true
level: error
action:
name: remove
tokens:
- '\w+!(?:\s|$)'
13 changes: 13 additions & 0 deletions .github/styles/Google/FirstPerson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extends: existence
message: "Avoid first-person pronouns such as '%s'."
link: 'https://developers.google.com/style/pronouns#personal-pronouns'
ignorecase: true
level: warning
nonword: true
tokens:
- (?:^|\s)I\s
- (?:^|\s)I,\s
- \bI'm\b
- \bme\b
- \bmy\b
- \bmine\b
9 changes: 9 additions & 0 deletions .github/styles/Google/Gender.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Don't use '%s' as a gender-neutral pronoun."
link: 'https://developers.google.com/style/pronouns#gender-neutral-pronouns'
level: error
ignorecase: true
tokens:
- he/she
- s/he
- \(s\)he
47 changes: 47 additions & 0 deletions .github/styles/Google/GenderBias.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
extends: substitution
message: "Consider using '%s' instead of '%s'."
link: 'https://developers.google.com/style/inclusive-documentation'
ignorecase: true
level: error
action:
name: replace
swap:
(?:alumna|alumnus): graduate
(?:alumnae|alumni): graduates
air(?:m[ae]n|wom[ae]n): pilot(s)
anchor(?:m[ae]n|wom[ae]n): anchor(s)
authoress: author
camera(?:m[ae]n|wom[ae]n): camera operator(s)
chair(?:m[ae]n|wom[ae]n): chair(s)
congress(?:m[ae]n|wom[ae]n): member(s) of congress
door(?:m[ae]|wom[ae]n): concierge(s)
draft(?:m[ae]n|wom[ae]n): drafter(s)
fire(?:m[ae]n|wom[ae]n): firefighter(s)
fisher(?:m[ae]n|wom[ae]n): fisher(s)
fresh(?:m[ae]n|wom[ae]n): first-year student(s)
garbage(?:m[ae]n|wom[ae]n): waste collector(s)
lady lawyer: lawyer
ladylike: courteous
landlord: building manager
mail(?:m[ae]n|wom[ae]n): mail carriers
man and wife: husband and wife
man enough: strong enough
mankind: human kind
manmade: manufactured
manpower: personnel
men and girls: men and women
middle(?:m[ae]n|wom[ae]n): intermediary
news(?:m[ae]n|wom[ae]n): journalist(s)
ombuds(?:man|woman): ombuds
oneupmanship: upstaging
poetess: poet
police(?:m[ae]n|wom[ae]n): police officer(s)
repair(?:m[ae]n|wom[ae]n): technician(s)
sales(?:m[ae]n|wom[ae]n): salesperson or sales people
service(?:m[ae]n|wom[ae]n): soldier(s)
steward(?:ess)?: flight attendant
tribes(?:m[ae]n|wom[ae]n): tribe member(s)
waitress: waiter
woman doctor: doctor
woman scientist[s]?: scientist(s)
work(?:m[ae]n|wom[ae]n): worker(s)
13 changes: 13 additions & 0 deletions .github/styles/Google/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extends: existence
message: "Don't put a period at the end of a heading."
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
nonword: true
level: warning
scope: heading
action:
name: edit
params:
- remove
- '.'
tokens:
- '[a-z0-9][.]\s*$'
29 changes: 29 additions & 0 deletions .github/styles/Google/Headings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
extends: capitalization
message: "'%s' should use sentence-style capitalization."
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
level: warning
scope: heading
match: $sentence
indicators:
- ':'
exceptions:
- Azure
- CLI
- Code
- Cosmos
- Docker
- Emmet
- gRPC
- I
- Kubernetes
- Linux
- macOS
- Marketplace
- MongoDB
- REPL
- Studio
- TypeScript
- URLs
- Visual
- VS
- Windows
11 changes: 11 additions & 0 deletions .github/styles/Google/Latin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: 'https://developers.google.com/style/abbreviations'
ignorecase: true
level: error
nonword: true
action:
name: replace
swap:
'\b(?:eg|e\.g\.)(?=[\s,;])': for example
'\b(?:ie|i\.e\.)(?=[\s,;])': that is
14 changes: 14 additions & 0 deletions .github/styles/Google/LyHyphens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
extends: existence
message: "'%s' doesn't need a hyphen."
link: 'https://developers.google.com/style/hyphens'
level: error
ignorecase: false
nonword: true
action:
name: edit
params:
- replace
- '-'
- ' '
tokens:
- '\s[^\s-]+ly-'
12 changes: 12 additions & 0 deletions .github/styles/Google/OptionalPlurals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: existence
message: "Don't use plurals in parentheses such as in '%s'."
link: 'https://developers.google.com/style/plurals-parentheses'
level: error
nonword: true
action:
name: edit
params:
- remove
- '(s)'
tokens:
- '\b\w+\(s\)'
7 changes: 7 additions & 0 deletions .github/styles/Google/Ordinal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Spell out all ordinal numbers ('%s') in text."
link: 'https://developers.google.com/style/numbers'
level: error
nonword: true
tokens:
- \d+(?:st|nd|rd|th)
7 changes: 7 additions & 0 deletions .github/styles/Google/OxfordComma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Use the Oxford comma in '%s'."
link: 'https://developers.google.com/style/commas'
scope: sentence
level: warning
tokens:
- '(?:[^,]+,){1,}\s\w+\s(?:and|or)'
7 changes: 7 additions & 0 deletions .github/styles/Google/Parens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Use parentheses judiciously."
link: 'https://developers.google.com/style/parentheses'
nonword: true
level: suggestion
tokens:
- '\(.+\)'
Loading
Loading