mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
`CONTRIBUTING.md` and the Vale rules link to `lancedb/docs`, which is private, so outside contributors get a 404. Fixes #5070. This copies the style guide to `docs/STYLE.md` and points the links at it. The text is the same apart from the intro, which now describes the scope from this repository's side, and the internal-names bullet, which no longer lists the names. The other three links in `CONTRIBUTING.md` went to the docs repository's README. The draft-section example is now inline. The combined preview and saved-edition corrections need the private repositories, so the guide says to ask a maintainer in the pull request instead. Replaces #5091.
34 lines
1.8 KiB
YAML
34 lines
1.8 KiB
YAML
extends: existence
|
|
message: "Avoid '%s'. Write 'LanceDB Enterprise' and describe where the operation runs directly."
|
|
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
|
|
level: warning
|
|
ignorecase: false
|
|
# Remote storage, remote URLs and a git remote are other things and stay. Class
|
|
# names such as `RemoteTable` are code, and code is never prose.
|
|
tokens:
|
|
- '[Rr]emote\s+(?:mode|tables?|connections?|databases?)'
|
|
tests:
|
|
- name: flags remote as the execution model
|
|
input: In remote mode, a remote table is opened through a remote connection.
|
|
want: |
|
|
1:4:LanceDB.RemoteExecution:Avoid 'remote mode'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
1:19:LanceDB.RemoteExecution:Avoid 'remote table'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
1:52:LanceDB.RemoteExecution:Avoid 'remote connection'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
- name: flags plurals and a heading
|
|
input: |
|
|
## Remote tables
|
|
|
|
Remote databases hold remote tables.
|
|
want: |
|
|
1:4:LanceDB.RemoteExecution:Avoid 'Remote tables'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
3:1:LanceDB.RemoteExecution:Avoid 'Remote databases'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
3:23:LanceDB.RemoteExecution:Avoid 'remote tables'. Write 'LanceDB Enterprise' and describe where the operation runs directly.
|
|
- name: leaves other remotes and code alone
|
|
input: |
|
|
Push to the git remote, read remote storage and fetch a remote URL. `open_table` returns a `RemoteTable`; see `remote table` in the API.
|
|
|
|
```python
|
|
remote_table = db.open_table("remote table")
|
|
```
|
|
want: ''
|