From d5a81471dd2600582de7db4907ffa77732ae62fe Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Mon, 23 Oct 2023 11:23:14 -0400 Subject: [PATCH] style: fix pre-commit errors --- README.md | 2 +- src/simple_github/__init__.py | 2 +- taskcluster/scripts/codecov-upload.py | 4 +++- test/conftest.py | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9a694e2..194fca6 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ of a file: ```python query = """ - query getFileContents { + query getFileContents { repository(owner: "mozilla-releng", name: "simple-github") { object(expression: "HEAD:README.md") { ... on Blob { diff --git a/src/simple_github/__init__.py b/src/simple_github/__init__.py index 351ac55..45cb3d4 100644 --- a/src/simple_github/__init__.py +++ b/src/simple_github/__init__.py @@ -1,7 +1,7 @@ from typing import List, Optional, Union -from .client import Client from .auth import AppAuth, AppInstallationAuth, TokenAuth +from .client import Client def AppClient( diff --git a/taskcluster/scripts/codecov-upload.py b/taskcluster/scripts/codecov-upload.py index 5cf9415..0a504c8 100644 --- a/taskcluster/scripts/codecov-upload.py +++ b/taskcluster/scripts/codecov-upload.py @@ -17,7 +17,9 @@ def fetch_secret(secret_name): return r.json()["secret"] -token = fetch_secret("project/releng/mozilla/simple-github-client/build/level-1/ci")["codecov_api_token"] +token = fetch_secret("project/releng/mozilla/simple-github-client/build/level-1/ci")[ + "codecov_api_token" +] uploader = FETCHES_DIR / "codecov" uploader.chmod(uploader.stat().st_mode | stat.S_IEXEC) subprocess.run( diff --git a/test/conftest.py b/test/conftest.py index a067788..f73b9c6 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,4 +1,3 @@ -import base64 from pathlib import Path import pytest