Skip to content

Commit e3dea46

Browse files
committed
fix ci and task files
1 parent 7bf7ef2 commit e3dea46

File tree

3 files changed

+3
-43
lines changed

3 files changed

+3
-43
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ jobs:
4343
poetry-version: "1.8.5"
4444
- name: "Linting: ruff"
4545
run: "poetry run invoke ruff --action lint"
46-
mypy:
47-
runs-on: "ubuntu-24.04"
48-
env:
49-
INVOKE_JDIFF_LOCAL: "True"
50-
steps:
51-
- name: "Check out repository code"
52-
uses: "actions/checkout@v4"
53-
- name: "Setup environment"
54-
uses: "networktocode/gh-action-setup-poetry-environment@v6"
55-
with:
56-
python-version: "3.13"
57-
- name: "Type-Hints: mypy"
58-
run: "poetry run invoke mypy"
59-
needs:
60-
- "ruff-format"
61-
- "ruff-lint"
6246
# Temporarily disabled due to issues with the docs build and needing best practices for NTC python builds.
6347
# check-docs-build:
6448
# runs-on: "ubuntu-24.04"
@@ -89,7 +73,6 @@ jobs:
8973
needs:
9074
- "ruff-format"
9175
- "ruff-lint"
92-
- "mypy"
9376
- "yamllint"
9477
yamllint:
9578
runs-on: "ubuntu-24.04"

jdiff/utils/jmespath_parsers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import jmespath
1313

1414

15-
def jmespath_value_parser(path: str):
15+
def jmespath_value_parser(path: str) -> str:
1616
"""
1717
Extract the jmespath value path from 'path' argument.
1818
@@ -47,7 +47,7 @@ def jmespath_value_parser(path: str):
4747
return path
4848

4949

50-
def jmespath_refkey_parser(path: str):
50+
def jmespath_refkey_parser(path: str) -> str:
5151
"""
5252
Get the jmespath reference key path from 'path' argument.
5353
@@ -131,7 +131,7 @@ def keys_values_zipper(list_of_reference_keys: List, wanted_value_with_key: List
131131
return final_result
132132

133133

134-
def multi_reference_keys(jmspath, data):
134+
def multi_reference_keys(jmspath: str, data):
135135
"""Build a list of concatenated reference keys.
136136
137137
Args:

pyproject.toml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ griffe = "1.1.1"
3838
pyyaml = "^6.0.1"
3939
pylint = "^3.1.0"
4040
yamllint = "^1.35.1"
41-
mypy = "*"
4241
invoke = "^2.2.0"
4342
toml = "^0.10.2"
4443
attrs = "^23.2.0"
@@ -141,28 +140,6 @@ testpaths = [
141140
]
142141
addopts = "-vv --doctest-modules -p no:warnings --ignore-glob='*mock*'"
143142

144-
[tool.mypy]
145-
python_version = 3.13
146-
ignore_errors = false
147-
disallow_untyped_calls = true
148-
disallow_untyped_defs = true
149-
disallow_incomplete_defs = true
150-
disallow_untyped_decorators = true
151-
check_untyped_defs = true
152-
disallow_any_generics = true
153-
ignore_missing_imports = true
154-
strict_optional = true
155-
warn_unused_ignores = true
156-
warn_return_any = true
157-
warn_unused_configs = true
158-
warn_redundant_casts = true
159-
disallow_subclassing_any = true
160-
no_implicit_optional = true
161-
implicit_reexport = true
162-
strict_equality = true
163-
exclude = ["tests/", "tasks.py"]
164-
show_error_codes = true
165-
166143
[tool.towncrier]
167144
package = "jdiff"
168145
directory = "changes"

0 commit comments

Comments
 (0)