Skip to content

Commit ca92301

Browse files
authored
Merge pull request #219 from python-openapi/feature/deptry
deptry added
2 parents eac56f5 + dacee10 commit ca92301

File tree

5 files changed

+44
-13
lines changed

5 files changed

+44
-13
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: timeout 10s poetry run pip --version || rm -rf .venv
3939

4040
- name: Install dependencies
41-
run: poetry install -E docs
41+
run: poetry install --with docs
4242

4343
- name: Build documentation
4444
run: |

.github/workflows/python-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: timeout 10s poetry run pip --version || rm -rf .venv
4949

5050
- name: Install dependencies
51-
run: poetry install -E requests
51+
run: poetry install --all-extras
5252

5353
- name: Test
5454
env:
@@ -58,5 +58,9 @@ jobs:
5858
- name: Static type check
5959
run: poetry run mypy
6060

61+
- name: Check dependencies
62+
run: poetry run deptry .
63+
if: ${{ matrix.python-version != '3.7' }}
64+
6165
- name: Upload coverage
6266
uses: codecov/codecov-action@v1

openapi_spec_validator/validation/protocols.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
from typing import TYPE_CHECKING
32
from typing import Any
43
from typing import Hashable
54
from typing import Iterator

poetry.lock

Lines changed: 36 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ include = [
5151
jsonschema = ">=4.0.0,<4.18.0"
5252
openapi-schema-validator = "^0.4.2"
5353
python = "^3.7.0"
54-
requests = {version = "*", optional = true}
5554
importlib-resources = {version = "^5.8.0", python = "<3.9" }
55+
typing-extensions = "^4.3.0"
5656
jsonschema-spec = "^0.1.1"
5757
lazy-object-proxy = "^1.7.1"
58-
sphinx = {version = "^5.3.0", optional = true}
59-
sphinx-immaterial = {version = "^0.11.0", optional = true}
6058

6159
[tool.poetry.extras]
6260
dev = ["pre-commit"]
@@ -73,6 +71,7 @@ mypy = "^0.971"
7371
isort = "^5.11.5"
7472
black = "^22.8.0"
7573
flynt = "^0.76"
74+
deptry = { version = "^0.11.0", python = ">=3.8" }
7675

7776
[tool.poetry.scripts]
7877
openapi-spec-validator = "openapi_spec_validator.__main__:main"

0 commit comments

Comments
 (0)