Skip to content

Commit e457328

Browse files
Merge pull request #115 from MarcoMuellner/feat/openapi-3-1-support
feat/openapi-3-1-support Closes #97 and #63
2 parents 9430d18 + 2bb20e6 commit e457328

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+6761
-927
lines changed

.flake8

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,34 @@ jobs:
1717
fail-fast: false
1818

1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-python@v3
20+
- name: 📥 Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: 🐍 Setup Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
2225
with:
2326
python-version: ${{ matrix.python-version }}
2427
architecture: x64
25-
- run: pip install poetry==1.3.1
26-
- run: poetry install
27-
- run: poetry run pytest
28-
- run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc
29-
- uses: codecov/codecov-action@v2
28+
29+
- name: 📦 Install Poetry and dependencies
30+
run: |
31+
pip install poetry==1.3.1
32+
poetry install
33+
34+
- name: 📊 Run tests with coverage
35+
run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc
36+
37+
- name: 🔍 Type checking with ty
38+
run: poetry run ty check src/
39+
40+
- name: 🎨 Code formatting with black
41+
run: poetry run black --check .
42+
43+
- name: 🔧 Linting
44+
run: poetry run ruff check .
45+
46+
- name: 📈 Upload coverage to Codecov
47+
uses: codecov/codecov-action@v2
3048
if: always()
3149
with:
3250
token: ${{ secrets.CODECOV_TOKEN }}
@@ -37,4 +55,4 @@ jobs:
3755
flags: unittests
3856
name: codecov-umbrella-${{ matrix.python-version }}
3957
path_to_write_report: .codecov_report.${{ matrix.python-version }}.txt
40-
verbose: true
58+
verbose: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ dmypy.json
130130
/.idea/
131131
/testclient/
132132
/tests/test_result/
133+
test_output/

.pre-commit-config.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
4-
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
82
- repo: local
93
hooks:
104
- id: black
@@ -14,11 +8,11 @@ repos:
148
types: [python]
159
- id: flake8
1610
name: flake8
17-
entry: poetry run flake8
11+
entry: poetry run ruff check
12+
language: system
13+
types: [ python ]
14+
- id: typecheck
15+
name: typecheck
16+
entry: poetry run ty check src/
1817
language: system
1918
types: [ python ]
20-
- repo: https://github.com/pycqa/isort
21-
rev: 5.11.5
22-
hooks:
23-
- id: isort
24-
name: isort (python)

mypy.ini

Lines changed: 0 additions & 14 deletions
This file was deleted.

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nox sessions."""
2+
23
import os
34
import shlex
45
import shutil
@@ -8,10 +9,8 @@
89

910
import nox
1011

11-
1212
try:
13-
from nox_poetry import Session
14-
from nox_poetry import session
13+
from nox_poetry import Session, session
1514
except ImportError:
1615
message = f"""\
1716
Nox failed to import the 'nox-poetry' package.

0 commit comments

Comments
 (0)