Skip to content

Commit a40c804

Browse files
authored
Merge pull request OpenInterpreter#223 from dheavy/fix/precommit-linter
Fix pre-commit linter
2 parents 65481c4 + ec1e41e commit a40c804

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+951
-622
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
2-
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.2.2"
2+
- repo: https://github.com/psf/black
3+
rev: 24.3.0 # Use the latest revision of Black
44
hooks:
5-
- id: ruff
6-
args: ["--fix"]
7-
- id: ruff-format
5+
- id: black
6+
language_version: python3
7+
args: ["software/"]
88
- repo: https://github.com/pre-commit/pre-commit-hooks
99
rev: v4.5.0
1010
hooks:

ROADMAP.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Roadmap
22

3-
Our goal is to power a billion devices with the 01OS over the next 10 years. The Cambrian explosion of AI devices.
3+
Our goal is to power a billion devices with the 01OS over the next 10 years. The Cambrian explosion of AI devices.
44

5-
We can do that with your help. Help extend the 01OS to run on new hardware, to connect with new peripherals like GPS and cameras, and add new locally running language models to unlock use-cases for this technology that no-one has even imagined yet.
5+
We can do that with your help. Help extend the 01OS to run on new hardware, to connect with new peripherals like GPS and cameras, and add new locally running language models to unlock use-cases for this technology that no-one has even imagined yet.
66

77
In the coming months, we're going to release:
88

99
- [ ] Add support for Azure and PlayHT for fast latency
1010
- [ ] An open-source language model for computer control
1111
- [ ] A react-native app for your phone
1212
- [ ] A hand-held device that runs fully offline.
13-

TASKS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- [ ] Sends to describe API
3737
- [ ] prints and returns description
3838
- [ ] Llamafile for phi-2 + moondream
39-
- [ ] test on rPi + Jetson (+android mini phone?)
39+
- [ ] test on rPi + Jetson (+android mini phone?)
4040

4141
**OS**
4242

@@ -66,7 +66,7 @@
6666

6767
**Hardware**
6868

69-
- [ ] (Hardware and software) Get the 01OS working on the **Jetson** or Pi. Pick one to move forward with.
69+
- [ ] (Hardware and software) Get the 01OS working on the **Jetson** or Pi. Pick one to move forward with.
7070
- [ ] Connect the Seeed Sense (ESP32 with Wifi, Bluetooth and a mic) to a small DAC + amplifier + speaker.
7171
- [ ] Connect the Seeed Sense to a battery.
7272
- [ ] Configure the ESP32 to be a wireless mic + speaker for the Jetson or Pi.

docs/client/setup.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ poetry run 01 --client
3434

3535
### Flags
3636

37-
- `--client`
37+
- `--client`
3838
Run client.
3939

40-
- `--client-type TEXT`
41-
Specify the client type.
40+
- `--client-type TEXT`
41+
Specify the client type.
4242
Default: `auto`.

docs/server/setup.mdx

+33-33
Original file line numberDiff line numberDiff line change
@@ -44,73 +44,73 @@ For more information, please read about <a href="/services/speech-to-text">speec
4444

4545
## CLI Flags
4646

47-
- `--server`
47+
- `--server`
4848
Run server.
4949

50-
- `--server-host TEXT`
51-
Specify the server host where the server will deploy.
50+
- `--server-host TEXT`
51+
Specify the server host where the server will deploy.
5252
Default: `0.0.0.0`.
5353

54-
- `--server-port INTEGER`
55-
Specify the server port where the server will deploy.
54+
- `--server-port INTEGER`
55+
Specify the server port where the server will deploy.
5656
Default: `10001`.
5757

58-
- `--tunnel-service TEXT`
59-
Specify the tunnel service.
58+
- `--tunnel-service TEXT`
59+
Specify the tunnel service.
6060
Default: `ngrok`.
6161

62-
- `--expose`
62+
- `--expose`
6363
Expose server to internet.
6464

65-
- `--server-url TEXT`
66-
Specify the server URL that the client should expect.
67-
Defaults to server-host and server-port.
65+
- `--server-url TEXT`
66+
Specify the server URL that the client should expect.
67+
Defaults to server-host and server-port.
6868
Default: `None`.
6969

70-
- `--llm-service TEXT`
71-
Specify the LLM service.
70+
- `--llm-service TEXT`
71+
Specify the LLM service.
7272
Default: `litellm`.
7373

74-
- `--model TEXT`
75-
Specify the model.
74+
- `--model TEXT`
75+
Specify the model.
7676
Default: `gpt-4`.
7777

78-
- `--llm-supports-vision`
78+
- `--llm-supports-vision`
7979
Specify if the LLM service supports vision.
8080

81-
- `--llm-supports-functions`
81+
- `--llm-supports-functions`
8282
Specify if the LLM service supports functions.
8383

84-
- `--context-window INTEGER`
85-
Specify the context window size.
84+
- `--context-window INTEGER`
85+
Specify the context window size.
8686
Default: `2048`.
8787

88-
- `--max-tokens INTEGER`
89-
Specify the maximum number of tokens.
88+
- `--max-tokens INTEGER`
89+
Specify the maximum number of tokens.
9090
Default: `4096`.
9191

92-
- `--temperature FLOAT`
93-
Specify the temperature for generation.
92+
- `--temperature FLOAT`
93+
Specify the temperature for generation.
9494
Default: `0.8`.
9595

96-
- `--tts-service TEXT`
97-
Specify the TTS service.
96+
- `--tts-service TEXT`
97+
Specify the TTS service.
9898
Default: `openai`.
9999

100-
- `--stt-service TEXT`
101-
Specify the STT service.
100+
- `--stt-service TEXT`
101+
Specify the STT service.
102102
Default: `openai`.
103103

104-
- `--local`
104+
- `--local`
105105
Use recommended local services for LLM, STT, and TTS.
106106

107-
- `--install-completion [bash|zsh|fish|powershell|pwsh]`
108-
Install completion for the specified shell.
107+
- `--install-completion [bash|zsh|fish|powershell|pwsh]`
108+
Install completion for the specified shell.
109109
Default: `None`.
110110

111-
- `--show-completion [bash|zsh|fish|powershell|pwsh]`
112-
Show completion for the specified shell, to copy it or customize the installation.
111+
- `--show-completion [bash|zsh|fish|powershell|pwsh]`
112+
Show completion for the specified shell, to copy it or customize the installation.
113113
Default: `None`.
114114

115-
- `--help`
115+
- `--help`
116116
Show this message and exit.

docs/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929

3030
.body {
3131
font-weight: normal;
32-
}
32+
}

hardware/light/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Please install first [PlatformIO](http://platformio.org/) open source ecosystem
2222

2323
```bash
2424
cd software/source/clients/esp32/src/client/
25-
```
25+
```
2626

2727
And build and upload the firmware with a simple command:
2828

2929
```bash
3030
pio run --target upload
31-
```
31+
```
3232

3333
## Wifi
3434

project_management/hardware/devices/jetson-nano/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

2020
![](mac-share-internet-v2.png)
2121

22-
d. Now the Jetson should have connectivity!
22+
d. Now the Jetson should have connectivity!

software/.cursorignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
_archive
22
__pycache__
33
.idea
4-

software/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ target-version = ['py311']
5454
[tool.isort]
5555
profile = "black"
5656
multi_line_output = 3
57-
include_trailing_comma = true
57+
include_trailing_comma = true

0 commit comments

Comments
 (0)