Skip to content

Commit

Permalink
move to src folder? (#137)
Browse files Browse the repository at this point in the history
* move to src folder?

* move to src folder?

* move to src folder?

* move to src folder?

* move to src folder?

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* move to src folder?

* move to src folder?

* move to src folder?

* move to src folder?

* move to src folder?

* move to src folder?

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tschm and pre-commit-ci[bot] authored Jan 10, 2025
1 parent ca47eaf commit b8b6013
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 20 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,39 @@ jobs:

- uses: cvxgrp/.github/actions/uv/[email protected]

sphinx:

test:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
tests-folder: 'src/tests'

test:
jupyter:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/coverage@v2.0.0
- uses: cvxgrp/.github/actions/uv/jupyter@v2.0.0

jupyter:
runs-on: "ubuntu-latest"
pdoc:
runs-on: ubuntu-latest
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'

book:
runs-on: "ubuntu-latest"
needs: [test, sphinx, jupyter, marimo]
needs: [test, jupyter, marimo, pdoc]

permissions:
contents: write
Expand All @@ -47,4 +53,4 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/[email protected].0
- uses: cvxgrp/.github/actions/[email protected].2
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected].0
- uses: cvxgrp/.github/actions/uv/[email protected].2
with:
python-version: ${{ matrix.python-version }}
tests-folder: 'src/tests'
7 changes: 6 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
tests-folder: 'src/tests'

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
Expand All @@ -25,3 +28,5 @@ jobs:
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/[email protected]
with:
source-folder: 'src/cvx'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ and encouraged.
```python
import numpy as np

from cvx.bson import read_bson, write_bson
from src.cvx.bson import read_bson, write_bson

data = {"A": np.random.rand(50,50), "B": np.random.rand(50)}
data = {"A": np.random.rand(50, 50), "B": np.random.rand(50)}

write_bson("test.bson", data)
recovered = read_bson("test.bson")
Expand Down
4 changes: 1 addition & 3 deletions book/docs/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# API

## Sphinx

[API](https://www.cvxgrp.org/cvxbson/sphinx/)
[API](https://www.cvxgrp.org/cvxbson/pdoc/)
4 changes: 2 additions & 2 deletions book/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ and encouraged.
```python
import numpy as np

from cvx.bson import read_bson, write_bson
from src.cvx.bson import read_bson, write_bson

data = {"A": np.random.rand(50,50), "B": np.random.rand(50)}
data = {"A": np.random.rand(50, 50), "B": np.random.rand(50)}

write_bson("test.bson", data)
recovered = read_bson("test.bson")
Expand Down
2 changes: 1 addition & 1 deletion experiment/demo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import polars as pl

from cvx.bson.dataclass import Data
from src.cvx.bson.dataclass import Data


@dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["cvx"]
packages = ["src/cvx"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b8b6013

Please sign in to comment.