Skip to content

Commit 82e09e3

Browse files
authored
Merge pull request #3 from intellispectrum/feature/github-actions-for-python
feature: introduce GitHub actions for python and update pyproject.toml
2 parents e3b3691 + 7df9e79 commit 82e09e3

File tree

5 files changed

+265
-7
lines changed

5 files changed

+265
-7
lines changed

.github/workflows/python.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python Code Style & Linting
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [ 'main' ]
9+
paths:
10+
- 'python/**'
11+
pull_request:
12+
branches: [ '*' ]
13+
paths:
14+
- 'python/**'
15+
16+
jobs:
17+
lint:
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: ./python
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Install Ruff
27+
uses: astral-sh/ruff-action@v3
28+
29+
- name: Ruff Format
30+
run: ruff format --check --config ./pyproject.toml .
31+
32+
- name: Ruff Lint
33+
run: ruff check --config ./pyproject.toml .

python/main.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

python/pyproject.toml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
11
[project]
2-
name = "python"
2+
name = "valuecell"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "ValueCell is a community-driven, multi-agent platform for financial applications."
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = []
8+
9+
[project.optional-dependencies]
10+
dev = [
11+
"ruff",
12+
"pytest>=7.4.0",
13+
"pytest-cov>=4.1.0",
14+
"pytest-asyncio>=1.0.0",
15+
]
16+
17+
[tool.ruff]
18+
line-length = 88
19+
indent-width = 4
20+
target-version = "py312"
21+
force-exclude = true
22+
exclude = [
23+
"venv",
24+
"build",
25+
"dist",
26+
"node_modules",
27+
"site-packages",
28+
"third_party",
29+
]
30+
31+
[tool.ruff.format]
32+
quote-style = "double"
33+
indent-style = "space"
34+
skip-magic-trailing-comma = false
35+
line-ending = "auto"

0 commit comments

Comments
 (0)