Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit ea19cfe

Browse files
cleanup
1 parent d377eff commit ea19cfe

File tree

8 files changed

+10
-160
lines changed

8 files changed

+10
-160
lines changed

Makefile

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ test.integration:
4040
COVERAGE_CORE=sysmon python -m pytest --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy
4141

4242
lint:
43-
# make lint.install
44-
# make lint.run
45-
46-
make mypy-check
43+
make lint.install
44+
make lint.run
4745

4846
lint.install:
4947
echo "Installing..."
@@ -59,15 +57,6 @@ lint.check:
5957
echo "Formatting..."
6058
ruff format --check
6159

62-
63-
# Check if mypy and django-stubs are installed and run type checks
64-
mypy-check:
65-
# Install mypy and django-stubs if they aren't already installed
66-
pip show mypy > /dev/null || pip install mypy
67-
pip show django-stubs > /dev/null || pip install django-stubs
68-
# Run mypy with verbose output
69-
mypy --config-file mypy.ini .
70-
7160
build.requirements:
7261
# if docker pull succeeds, we have already build this version of
7362
# requirements.txt. Otherwise, build and push a version tagged

async_orm_checker.py

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

codecov_auth/tests/unit/views/test_bitbucket_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_get_bbs_redirect(client, settings, mocker):
3030
== "https://my.bitbucketserver.com/plugins/servlet/oauth/authorize?oauth_token=SomeToken"
3131
)
3232
client_request_mock.assert_called_with(
33-
"POST", f"{settings.BITBUCKET_SERVER_URL}/z_plugins/servlet/oauth/request-token"
33+
"POST", f"{settings.BITBUCKET_SERVER_URL}/plugins/servlet/oauth/request-token"
3434
)
3535

3636

@@ -66,11 +66,11 @@ async def fake_list_teams():
6666

6767
async def fake_api(method, url):
6868
if method == "POST" and (
69-
url.endswith("/z_plugins/servlet/oauth/access-token")
70-
or url.endswith("/z_plugins/servlet/oauth/request-token")
69+
url.endswith("/plugins/servlet/oauth/access-token")
70+
or url.endswith("/plugins/servlet/oauth/request-token")
7171
):
7272
return dict(oauth_token="SomeToken", oauth_token_secret="SomeTokenSecret")
73-
elif method == "GET" and url.endswith("/z_plugins/servlet/applinks/whoami"):
73+
elif method == "GET" and url.endswith("/plugins/servlet/applinks/whoami"):
7474
return "ThiagoCodecov"
7575
elif method == "GET" and ("/users/ThiagoCodecov" in url):
7676
return dict(

graphql_api/tests/test_temp.py

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

graphql_api/types/account/account.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def resolve_name(account: Account, info: GraphQLResolveInfo) -> str:
2121

2222

2323
@account_bindable.field("oktaConfig")
24+
@sync_to_async
2425
def resolve_okta_config(
2526
account: Account, info: GraphQLResolveInfo
2627
) -> OktaSettings | None:

graphql_api/types/plan/plan.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def resolve_trial_status(plan_service: PlanService, info) -> TrialStatus:
3636

3737

3838
@plan_bindable.field("marketingName")
39+
@sync_to_async
3940
def resolve_marketing_name(plan_service: PlanService, info) -> str:
4041
return plan_service.marketing_name
4142

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ follow_imports = silent
88
warn_no_return = False
99

1010
[mypy-*.tests.*]
11-
disallow_untyped_defs = False
11+
disallow_untyped_defs = False

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ click==8.1.7
8181
# via
8282
# celery
8383
# click-didyoumean
84-
# click-z_plugins
84+
# click-plugins
8585
# click-repl
8686
click-didyoumean==0.3.0
8787
# via celery

0 commit comments

Comments
 (0)