Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ece92e2
configuration settings: available speaker_id, base url, default speak…
sudoping01 Jun 1, 2025
9f5a701
config init
sudoping01 Jun 1, 2025
2f81b37
main data models \n feat: add enums, request models, and API endpoint…
sudoping01 Jun 1, 2025
661f4ec
exposing data models
sudoping01 Jun 1, 2025
f07a05e
add Auth class handling getting header and validate the token (api key)
sudoping01 Jun 1, 2025
6719cd0
exposing Auth as module/
sudoping01 Jun 1, 2025
17783fd
main clients (sync and async) handling api call and allow access to s…
sudoping01 Jun 1, 2025
382b026
trancription service handling both sync and async operation with stre…
sudoping01 Jun 1, 2025
094ab01
text-to-speech service handling both sync and async operation, with s…
sudoping01 Jun 1, 2025
a8b7ab4
translation service wit sync and async operator whiout stremaing
sudoping01 Jun 1, 2025
cf21570
expose services allow issue import
sudoping01 Jun 1, 2025
6393f9a
erros handling base on code status and exceptions defined in exceptio…
sudoping01 Jun 1, 2025
a639db1
custom exceptions
sudoping01 Jun 1, 2025
a8e5b45
no logger implemented yet
sudoping01 Jun 1, 2025
e1bb1ae
expose only clients
sudoping01 Jun 1, 2025
a5c3495
cleanup
sudoping01 Jun 1, 2025
6386777
update de setup to match with the new version
sudoping01 Jun 1, 2025
55e50ce
change the version
sudoping01 Jun 1, 2025
f5d55c3
code style consistency: bash script
sudoping01 Jun 1, 2025
a05da52
development tools for code style, formatting and code consistency, al…
sudoping01 Jun 1, 2025
ba75b44
data class and constant definition
sudoping01 Jun 1, 2025
f6c0978
example of .venv
sudoping01 Jun 1, 2025
a46fcde
console print utils and some utils too
sudoping01 Jun 1, 2025
d6527a7
main entrypoint
sudoping01 Jun 1, 2025
49dcb26
Add Djelia SDK cookbook with comprehensive test suite
sudoping01 Jun 1, 2025
73f8464
Add Djelia SDK cookbook with comprehensive test suite
sudoping01 Jun 1, 2025
565e3df
comprehensive guide introduce as workshop, it serve also as a guide a…
sudoping01 Jun 1, 2025
274145c
gitignore
sudoping01 Jun 1, 2025
0c48e48
empty
sudoping01 Jun 1, 2025
944e77b
pre commit config for code style consistency
sudoping01 Jun 1, 2025
9594476
empty
sudoping01 Jun 1, 2025
e3a94c8
expose clients
sudoping01 Jun 1, 2025
c87e37d
src init
sudoping01 Jun 1, 2025
9014d6e
code quality check actionL allow code style constency, it's important…
sudoping01 Jun 1, 2025
e0861ee
formatting: isort, black, ruff
sudoping01 Jun 1, 2025
4a16964
code quality: cleanup, formatting, styling (ruff, isort, black auto fix
sudoping01 Jun 1, 2025
d99f4bc
code style: reformat incorrect import
sudoping01 Jun 1, 2025
5cfd68f
cleanup
sudoping01 Jun 1, 2025
981bf2e
Merge pull request #6 from djelia-org/code-quality
sudoping01 Jun 1, 2025
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
37 changes: 37 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Code Quality Checks
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
code-quality:
name: Code Quality Checks
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12.9"

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt

- name: Run Ruff
run: |
ruff check .

- name: Run isort
run: |
isort . --check-only
168 changes: 168 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

.vscode

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
#args: [--force-exclude=false]

- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black"]
Loading