Skip to content

Commit c0de72a

Browse files
committed
init commit
1 parent dfc5813 commit c0de72a

File tree

8 files changed

+1293
-1
lines changed

8 files changed

+1293
-1
lines changed

.github/workflows/gpu.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests on GPU
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# This will trigger the workflow for pull requests to any branch
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
gpu-tests:
13+
name: python
14+
runs-on: self-hosted
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v3
23+
with:
24+
enable-cache: true
25+
cache-dependency-glob: "uv.lock"
26+
27+
- name: Set up Python
28+
run: uv python install 3.10.13
29+
30+
- name: Install the project
31+
run: uv sync --all-extras --dev
32+
- name: Run tests
33+
run: uv run pytest tests

.github/workflows/ruff.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check style
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# This will trigger the workflow for pull requests to any branch
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
ruff:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: chartboost/ruff-action@v1
17+

.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.4.4
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --fix ]
9+
# Run the formatter.
10+
- id: ruff-format

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# intellect
1+
# intellect
2+
3+
4+
## setup the project
5+
6+
```
7+
git clone git@github.com:PrimeIntellect-ai/intellect.git
8+
uv sync --extra all
9+
```
10+
11+
for dev setup:
12+
13+
```
14+
uv run pre-commit install
15+
```
16+
17+
18+
### running test
19+
20+
```
21+
uv run pytest
22+
```
23+
24+
25+

pyproject.toml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[project]
2+
name = "intellect"
3+
version = "0.1.0"
4+
description = "AGI"
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
dependencies = [
8+
"datasets>=3.0.0",
9+
]
10+
11+
12+
[build-system]
13+
requires = ["hatchling"]
14+
build-backend = "hatchling.build"
15+
16+
[tool.ruff]
17+
line-length = 120
18+
19+
[tool.uv]
20+
dev-dependencies = ["ruff>=0.5.0", "pre-commit>=3.0.0","pytest>=7.0.0", "faker>=0"]

src/intellect/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.1.0"

tests/test_version.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import intellect
2+
3+
4+
def test_version():
5+
assert intellect.__version__ == "0.1.0"

uv.lock

+1,182
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)