Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Tests

on:
push:
branches: [ main, v0.2 ]
branches: [ main, v0.2, 0.2.1 ]
pull_request:
branches: [ main, v0.2 ]
branches: [ main, v0.2, 0.2.1 ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- name: Checkout code
Expand Down Expand Up @@ -51,6 +51,10 @@ jobs:
run: |
python tests/test_security.py

- name: Run script generation security tests
run: |
python tests/test_script_gen_security.py

- name: Run error handling tests
run: |
python tests/test_error_handling.py
Expand Down
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ dmypy.json
# pyright
.pyright/

# Testing
.pytest_cache/
.coverage
.coverage.*
htmlcov/
.tox/

# Jupyter Notebook
.ipynb_checkpoints

Expand All @@ -64,9 +71,19 @@ dmypy.json
legacy/
*.legacy

# Development features (not ready for release)
coldpress/distributed/
examples/pytorch_coldpress_run/

# Generated output directories
output/
manifests/

# User-specific files
users/test.yaml

# Documentation
docs/
#README.md
CHANGELOG.md
CLAUDE.md
50 changes: 49 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,58 @@
# Generated by: Claude Sonnet 4.5
# Pre-commit hooks for Coldpress
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
# Run the linter
- id: ruff
args: [--fix]
exclude: ^(venv/|legacy/)
# Run the formatter
- id: ruff-format
args: [--check]
exclude: ^(venv/|legacy/)

- repo: local
hooks:
# Run validation tests
- id: test-validation
name: validation tests
entry: python tests/test_validation.py
language: system
pass_filenames: false
always_run: true

# Run security tests
- id: test-security
name: security tests
entry: python tests/test_security.py
language: system
pass_filenames: false
always_run: true

# Run script generation security tests
- id: test-script-gen-security
name: script generation security tests
entry: python tests/test_script_gen_security.py
language: system
pass_filenames: false
always_run: true

# Run label tests
- id: test-labels
name: label tests
entry: python tests/test_labels.py
language: system
pass_filenames: false
always_run: true

# Run error handling tests
- id: test-error-handling
name: error handling tests
entry: python tests/test_error_handling.py
language: system
pass_filenames: false
always_run: true
Loading
Loading