Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reward model for json similarity #15

Merged
merged 9 commits into from
Feb 17, 2025
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
28 changes: 25 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key

- repo: local
hooks:
- id: mypy
Expand All @@ -7,7 +15,21 @@ repos:
language: system
types: [python]
pass_filenames: false


- id: ruff
name: ruff
entry: uv run ruff check . --fix
language: system
types: [python]
pass_filenames: false

- id: ruff-format
name: ruff format
entry: uv run ruff format .
language: system
types_or: [python, jupyter]
pass_filenames: false

- id: pytest
name: pytest
entry: uv run pytest
Expand All @@ -17,6 +39,6 @@ repos:

- id: check-version
name: Check version format
entry: python -c 'import sys, tomli; from packaging.version import parse; parse(tomli.load(open("pyproject.toml", "rb"))["project"]["version"])'
entry: .venv/bin/python -c 'import sys, tomli; from packaging.version import parse; parse(tomli.load(open("pyproject.toml", "rb"))["project"]["version"])'
language: system
files: ^pyproject\.toml$
files: ^pyproject\.toml$
3 changes: 1 addition & 2 deletions narrative_llm_tools/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
def main() -> None:
parser = argparse.ArgumentParser(
description=(
"Validate a .jsonl file against the Narrative Conversation "
"File Format specification."
"Validate a .jsonl file against the Narrative Conversation File Format specification."
)
)
parser.add_argument("file", help="Path to the JSONL file to validate.")
Expand Down
Empty file.
Loading