Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b1e1082
chore: tooling updates (deps, type markers, ignore generated output)
Aug 10, 2025
7dc4acc
feat: add OpenAPI 3.1 support (version detection, parsers, unified ge…
Aug 10, 2025
c02c968
feat: enhance model generator for 3.1 compatibility (refs, DataType e…
Aug 10, 2025
c528b86
feat: update service generator for 3.1 (multi-version types, body/res…
Aug 10, 2025
1ac713b
feat: generalize generator & api_config for 3.0+ (multi-version OpenA…
Aug 10, 2025
3badf5e
refactor: unify core models for OpenAPI 3.0/3.1 compatibility (type u…
Aug 10, 2025
75d4bf8
test: add OpenAPI 3.1 completeness & schema feature suites plus negat…
Aug 10, 2025
4a870be
tests: tighten 3.1 unsupported feature expectations to ValidationError
Aug 10, 2025
7e42154
tests: use direct ValidationError import in model generator edge test
Aug 10, 2025
e83960e
tests: remove unused var in 3.1 vs 3.0 comparison and tidy comments
Aug 10, 2025
1f4f6c7
feat: improve service generation
Aug 10, 2025
880704b
feat(templates): skip JSON parsing for 204 across httpx/requests/aioh…
Aug 10, 2025
630ffe9
chore(templates): unify 204 handling and body variable naming across …
Aug 10, 2025
c4e9faf
feat: improve model docstring header with title fallback + add test
Aug 11, 2025
a4b87d6
feat: refactor OpenAPI parser functions and enhance CI workflow
MarcoMuellner Sep 8, 2025
28f0ae8
feat: streamline import statements and enhance code readability
MarcoMuellner Sep 8, 2025
5516174
feat: update type checker to 'ty', enhance type hints, and improve co…
MarcoMuellner Sep 8, 2025
6ee3d82
feat: update type hints for optional variables and replace UTC with t…
MarcoMuellner Sep 8, 2025
a9310e1
feat: replace union operator with Union type for better type hint cla…
MarcoMuellner Sep 8, 2025
e01f7ea
feat: update OpenAPI type handling to support Reference30 and Referen…
MarcoMuellner Sep 8, 2025
039b908
feat: improve code readability by formatting conditionals and updatin…
MarcoMuellner Sep 8, 2025
8641e29
feat: update pre-commit configuration to use ruff for linting and ty …
MarcoMuellner Sep 8, 2025
2bb20e6
feat: update CI configuration to replace mypy with ty for type checki…
MarcoMuellner Sep 8, 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
8 changes: 0 additions & 8 deletions .flake8

This file was deleted.

34 changes: 26 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,34 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: 📥 Checkout code
uses: actions/checkout@v3

- name: 🐍 Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install poetry==1.3.1
- run: poetry install
- run: poetry run pytest
- run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc
- uses: codecov/codecov-action@v2

- name: 📦 Install Poetry and dependencies
run: |
pip install poetry==1.3.1
poetry install

- name: 📊 Run tests with coverage
run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc

- name: 🔍 Type checking with ty
run: poetry run ty check src/

- name: 🎨 Code formatting with black
run: poetry run black --check .

- name: 🔧 Linting
run: poetry run ruff check .

- name: 📈 Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -37,4 +55,4 @@ jobs:
flags: unittests
name: codecov-umbrella-${{ matrix.python-version }}
path_to_write_report: .codecov_report.${{ matrix.python-version }}.txt
verbose: true
verbose: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,4 @@ dmypy.json
/.idea/
/testclient/
/tests/test_result/
test_output/
18 changes: 6 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: black
Expand All @@ -14,11 +8,11 @@ repos:
types: [python]
- id: flake8
name: flake8
entry: poetry run flake8
entry: poetry run ruff check
language: system
types: [ python ]
- id: typecheck
name: typecheck
entry: poetry run ty check src/
language: system
types: [ python ]
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort (python)
14 changes: 0 additions & 14 deletions mypy.ini

This file was deleted.

5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand All @@ -8,10 +9,8 @@

import nox


try:
from nox_poetry import Session
from nox_poetry import session
from nox_poetry import Session, session
except ImportError:
message = f"""\
Nox failed to import the 'nox-poetry' package.
Expand Down
Loading
Loading