Skip to content

Commit 8968123

Browse files
committed
OS-6510: fixed pep8, added tox, package structure
1 parent ecaf408 commit 8968123

36 files changed

+1092
-874
lines changed

.github/workflows/test_pr.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint code
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install tox
25+
run: python -m pip install --upgrade pip tox
26+
- name: Tox for python ${{ matrix.python-version }}
27+
run: tox -e py
File renamed without changes.

.tox/py311/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py311",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py34/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py34",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py35/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py35",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py36/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py36",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py37/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py37",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py38/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py38",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

.tox/py39/.tox-info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ToxEnv": {
3+
"name": "py39",
4+
"type": "VirtualEnvRunner"
5+
}
6+
}

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# OptScale Client
22
## *The OptScale Client tool by Hystax*
33

4-
OptScale is a tool that hepls you to integrate [OptScale](https://my.optscale.com/) components.
4+
OptScale is a tool that helps you to integrate [OptScale](https://my.optscale.com/) components.
55

6+
Components:
7+
8+
9+
10+
11+
Basic usage:
12+
```python
13+
from optscale_client import Client
14+
15+
arcee = Client("arcee", address="127.0.0.1", port="80",token='ffffff20-aaaa-4f7b-942a-7070711faf',
16+
secret='d0d006a9-ffff-450f-aaaa-bbfb9454bbba', verify=False)
17+
print(arcee.runs_by_executor("XXXX"))
18+
```

0 commit comments

Comments
 (0)