Skip to content

Commit 69bac99

Browse files
committed
improve support
1 parent e5d445e commit 69bac99

4 files changed

Lines changed: 4 additions & 15 deletions

File tree

.mypy.ini

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,9 @@ warn_unused_configs = true
1313
warn_unused_ignores = true
1414
warn_redundant_casts = true
1515

16-
[mypy-black]
17-
ignore_missing_imports = True
18-
19-
[mypy-jwt]
20-
ignore_missing_imports = True
21-
22-
[mypy-git]
23-
ignore_missing_imports = True
24-
2516
[mypy-keen]
2617
ignore_missing_imports = True
2718

28-
[mypy-pytest]
29-
ignore_missing_imports = True
30-
3119
[mypy-there]
3220
ignore_missing_imports = True
3321

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
hooks:
4242
- id: mypy
4343
args: ["--config-file", ".mypy.ini"]
44-
additional_dependencies: [types-requests, types-PyYAML, types-mock, tornado]
44+
additional_dependencies: [types-requests, types-PyYAML, types-mock, tornado, black, pytest, gitpython, pyjwt]
4545
stages: [manual]
4646

4747
- repo: https://github.com/sirosen/check-jsonschema

meeseeksdev/meeseeksbox/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def push_the_work(session, payload, arguments, local_config=None):
430430
"GET", f"https://api.github.com/repos/{org_name}/{repo_name}"
431431
).json()["default_branch"]
432432
repo.git.checkout(default_branch)
433-
repo.branches.workbranch.delete(repo, "workbranch", force=True)
433+
repo.branches.workbranch.delete(repo, "workbranch", force=True) # type:ignore[attr-defined]
434434
return succeeded
435435

436436

@@ -971,7 +971,7 @@ def keen_stats():
971971
# TODO comment on issue
972972
print(e)
973973
repo.git.checkout(default_branch)
974-
repo.branches.workbranch.delete(repo, "workbranch", force=True)
974+
repo.branches.workbranch.delete(repo, "workbranch", force=True) # type:ignore[attr-defined]
975975

976976
# TODO checkout the default_branch and get rid of branch
977977

meeseeksdev/meeseeksbox/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def _integration_authenticated_request(self, method, url):
175175
}
176176
)
177177

178+
assert self.rsadata is not None
178179
tok = jwt.encode(payload, key=self.rsadata, algorithm="RS256")
179180

180181
headers = {

0 commit comments

Comments
 (0)