Skip to content

Commit 0ef7d0c

Browse files
authored
Merge pull request #83 from python-openapi/feature/deptry
deptry added
2 parents 29324d3 + 4210f31 commit 0ef7d0c

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
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
@@ -46,7 +46,7 @@ jobs:
4646
run: timeout 10s poetry run pip --version || rm -rf .venv
4747

4848
- name: Install dependencies
49-
run: poetry install
49+
run: poetry install --all-extras
5050

5151
- name: Test
5252
env:
@@ -56,6 +56,10 @@ jobs:
5656
- name: Static type check
5757
run: poetry run mypy
5858

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

poetry.lock

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

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ source =["openapi_schema_validator"]
99
[tool.coverage.xml]
1010
output = "reports/coverage.xml"
1111

12+
[tool.deptry]
13+
ignore_unused = ["rfc3339-validator"]
14+
1215
[tool.mypy]
1316
files = "openapi_schema_validator"
1417
strict = true
@@ -50,9 +53,7 @@ include = [
5053
[tool.poetry.dependencies]
5154
python = "^3.7.0"
5255
jsonschema = ">=4.0.0,<4.18.0"
53-
rfc3339-validator = "*"
54-
sphinx = {version = "^5.3.0", optional = true}
55-
sphinx-immaterial = {version = "^0.11.0", optional = true}
56+
rfc3339-validator = "*" # requred by jsonschema for date-time checker
5657

5758
[tool.poetry.extras]
5859
docs = ["sphinx", "sphinx-immaterial"]
@@ -66,6 +67,7 @@ pytest-flake8 = "*"
6667
pytest-cov = "*"
6768
mypy = "^0.910"
6869
flynt = "^0.78"
70+
deptry = { version = "^0.11.0", python = ">=3.8" }
6971

7072
[tool.poetry.group.docs.dependencies]
7173
sphinx = "^5.3.0"

0 commit comments

Comments
 (0)