Skip to content

Commit

Permalink
Merge pull request #3 from idiap/types
Browse files Browse the repository at this point in the history
Add full typing support
  • Loading branch information
eginhard authored Nov 5, 2024
2 parents 3e1343a + 8fbbc9d commit 96420e8
Show file tree
Hide file tree
Showing 21 changed files with 588 additions and 421 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.21"
version: "0.4.27"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.21"
version: "0.4.27"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Set up Python
Expand All @@ -43,7 +43,7 @@ jobs:
needs: [build]
environment:
name: release
url: https://pypi.org/p/coqui-tts-coqpit
url: https://pypi.org/p/coqpit-config
permissions:
id-token: write
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
uv.lock

WadaSNR/
.idea/
*.pyc
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.0
hooks:
- id: mypy
args: [--strict]
additional_dependencies:
- "pytest"
9 changes: 0 additions & 9 deletions MANIFEST.in

This file was deleted.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

[![CI](https://github.com/idiap/coqui-ai-coqpit/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/idiap/coqui-ai-coqpit/actions/workflows/main.yml)

Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization.
Simple, light-weight and no dependency config handling through python data
classes with to/from JSON serialization/deserialization.

Currently it is being used by [🐸TTS](https://github.com/idiap/coqui-ai-TTS).
Fork of the [original, unmaintained repository](https://github.com/coqui-ai/coqpit). New PyPI package: [coqpit-config](https://pypi.org/project/coqpit-config)

Currently it is being used by [coqui-tts](https://github.com/idiap/coqui-ai-TTS).

## ❔ Why I need this
What I need from a ML configuration library...
Expand Down
3 changes: 1 addition & 2 deletions coqpit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import importlib.metadata
from dataclasses import dataclass

from coqpit.coqpit import MISSING, Coqpit, check_argument

__all__ = ["dataclass", "MISSING", "Coqpit", "check_argument"]
__all__ = ["MISSING", "Coqpit", "check_argument"]

__version__ = importlib.metadata.version("coqpit")
Loading

0 comments on commit 96420e8

Please sign in to comment.