Skip to content

Commit ee3a532

Browse files
feat(build): commit message generator
stats: lines: "+161/-0 (net +161)" files: 3 complexity: "Stable complexity"
1 parent 1c8b4d5 commit ee3a532

File tree

7 files changed

+180
-3
lines changed

7 files changed

+180
-3
lines changed

.github/workflows/ci.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.10', '3.11', '3.12', '3.13']
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -e ".[dev,llm,security,semantic,graph]"
28+
29+
- name: Run tests
30+
run: |
31+
pytest tests/ -v --cov=vallm --cov-report=xml --cov-report=term
32+
33+
- name: Upload coverage
34+
uses: codecov/codecov-action@v4
35+
with:
36+
files: ./coverage.xml
37+
fail_ci_if_error: false
38+
39+
lint:
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Set up Python
46+
uses: actions/setup-python@v5
47+
with:
48+
python-version: '3.13'
49+
50+
- name: Install dependencies
51+
run: |
52+
python -m pip install --upgrade pip
53+
pip install ruff mypy
54+
pip install -e ".[dev]"
55+
56+
- name: Run ruff
57+
run: |
58+
ruff check src/vallm tests/
59+
ruff format --check src/vallm tests/
60+
61+
- name: Run mypy
62+
run: |
63+
mypy src/vallm --ignore-missing-imports
64+
65+
validate-examples:
66+
runs-on: ubuntu-latest
67+
68+
steps:
69+
- uses: actions/checkout@v4
70+
71+
- name: Set up Python
72+
uses: actions/setup-python@v5
73+
with:
74+
python-version: '3.13'
75+
76+
- name: Install dependencies
77+
run: |
78+
python -m pip install --upgrade pip
79+
pip install -e ".[dev]"
80+
81+
- name: Run batch validation
82+
run: |
83+
vallm batch ./src ./examples --recursive --include "*.py"
84+
85+
- name: Run examples (no LLM)
86+
run: |
87+
cd examples
88+
python 01_basic_validation/main.py
89+
python 02_ast_comparison/main.py
90+
python 03_security_check/main.py
91+
python 04_graph_analysis/main.py
92+
python 06_multilang_validation/main.py
93+
python 07_multi_language/main.py

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.13'
18+
19+
- name: Install build dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build twine
23+
24+
- name: Build package
25+
run: |
26+
python -m build
27+
28+
- name: Check package
29+
run: |
30+
twine check dist/*
31+
32+
- name: Publish to PyPI
33+
env:
34+
TWINE_USERNAME: __token__
35+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
36+
run: |
37+
twine upload dist/*

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- id: check-json
12+
- id: check-toml
13+
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.4.0
16+
hooks:
17+
- id: ruff
18+
args: [--fix]
19+
- id: ruff-format
20+
21+
- repo: local
22+
hooks:
23+
- id: vallm-validate
24+
name: vallm validate
25+
entry: vallm batch
26+
language: system
27+
types: [python]
28+
args: [--recursive, --include, "*.py", --fail-fast]
29+
pass_filenames: false
30+
always_run: true
31+
description: "Validate Python files with vallm"

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [0.1.6] - 2026-03-01
2+
3+
### Summary
4+
5+
feat(build): commit message generator
6+
7+
### Ci
8+
9+
- config: update ci.yml
10+
- config: update publish.yml
11+
12+
### Other
13+
14+
- config: update .pre-commit-config.yaml
15+
16+
117
## [0.1.5] - 2026-03-01
218

319
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.5
1+
0.1.6

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "vallm"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = "A complete toolkit for validating LLM-generated code"
99
readme = "README.md"
1010
license = "Apache-2.0"

src/vallm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"detect_language",
1717
]
1818

19-
__version__ = "0.1.5"
19+
__version__ = "0.1.6"

0 commit comments

Comments
 (0)