Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
$ git ls-files '*.py' | xargs autoflake --in-place --remove-all-unused-imports --ignore-init-module-imports

Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Nov 17, 2023
1 parent 07d3b64 commit 4931061
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 72 deletions.
12 changes: 0 additions & 12 deletions docs/registration_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,11 @@ import sys
import json
import pathlib
import unittest
import traceback
import contextlib
import urllib.parse
import urllib.request

import jwt
import cbor2
import cwt
import cwt.algs.ec2
import pycose
import pycose.keys.ec2
from pycose.messages import Sign1Message
from jsonschema import validate, ValidationError
import cryptography.hazmat.primitives.serialization

# TODO Remove this once we have a example flow for proper key verification
import jwcrypto.jwk

from scitt_emulator.scitt import ClaimInvalidError, CWTClaims
from scitt_emulator.verify_statement import verify_statement
Expand Down
1 change: 0 additions & 1 deletion scitt_emulator/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import httpx

import scitt_emulator.scitt as scitt
from scitt_emulator import create_statement
from scitt_emulator.tree_algs import TREE_ALGS

Expand Down
2 changes: 0 additions & 2 deletions scitt_emulator/did_helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import os
import ast
import sys
import base64
import inspect
import urllib.parse
from typing import Optional, Callable, Dict, Tuple, Union
Expand Down
20 changes: 3 additions & 17 deletions scitt_emulator/key_loader_format_did_key.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
import os
import sys
import json
import pathlib
import unittest
import traceback
import contextlib
import urllib.parse
import urllib.request
import importlib.metadata
from typing import Optional, Callable, List, Tuple

import jwt
import cbor2
from typing import List, Tuple

import cwt
import cwt.algs.ec2
import pycose
import pycose.keys.ec2
from pycose.messages import Sign1Message
from cryptography.hazmat.primitives import serialization

# TODO Remove this once we have a example flow for proper key verification
import jwcrypto.jwk

from scitt_emulator.scitt import ClaimInvalidError, CWTClaims
from scitt_emulator.did_helpers import DID_KEY_METHOD, did_web_to_url, did_key_to_cryptography_key
from scitt_emulator.did_helpers import DID_KEY_METHOD, did_key_to_cryptography_key


def key_loader_format_did_key(
Expand Down
13 changes: 1 addition & 12 deletions scitt_emulator/key_loader_format_url_referencing_oidc_issuer.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
import os
import sys
import json
import pathlib
import unittest
import traceback
import contextlib
import urllib.parse
import urllib.request
import importlib.metadata
from typing import Optional, Callable, List, Tuple
from typing import List, Tuple

import jwt
import cbor2
import cwt
import cwt.algs.ec2
import pycose
import pycose.keys.ec2
from pycose.messages import Sign1Message
from cryptography.hazmat.primitives import serialization

# TODO Remove this once we have a example flow for proper key verification
import jwcrypto.jwk

from scitt_emulator.scitt import ClaimInvalidError, CWTClaims
from scitt_emulator.did_helpers import did_web_to_url


Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
import os
import sys
import json
import pathlib
import unittest
import traceback
import contextlib
import urllib.parse
import urllib.request
import importlib.metadata
from typing import Optional, Callable, List, Tuple
from typing import List, Tuple

import jwt
import cbor2
import cwt
import cwt.algs.ec2
import pycose
import pycose.keys.ec2
from pycose.messages import Sign1Message
import cryptography.exceptions
from cryptography.hazmat.primitives import serialization

# TODO Remove this once we have a example flow for proper key verification
import jwcrypto.jwk

from scitt_emulator.scitt import ClaimInvalidError, CWTClaims
from scitt_emulator.did_helpers import did_web_to_url


Expand Down
2 changes: 0 additions & 2 deletions scitt_emulator/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# Licensed under the MIT License.
import jwt
import json
import jwcrypto.jwk
import jsonschema
from flask import jsonify
from werkzeug.wrappers import Request
from scitt_emulator.client import HttpClient

Expand Down
3 changes: 1 addition & 2 deletions scitt_emulator/rkvst.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from typing import Optional
from pathlib import Path
import json
import cbor2
from pycose.messages import CoseMessage, Sign1Message
from pycose.messages import Sign1Message
import pycose.headers
import base64
from os import getenv
Expand Down
3 changes: 1 addition & 2 deletions scitt_emulator/scitt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
from typing import Optional
from abc import ABC, abstractmethod
from pathlib import Path
import contextlib
import time
import json
import uuid

import cbor2
from pycose.messages import CoseMessage, Sign1Message
from pycose.messages import Sign1Message
import pycose.headers

from scitt_emulator.create_statement import CWTClaims
Expand Down
7 changes: 0 additions & 7 deletions scitt_emulator/verify_statement.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import os
import sys
import json
import pathlib
import unittest
import itertools
import traceback
import contextlib
import urllib.parse
import urllib.request
import importlib.metadata
from typing import Optional, Callable, List, Tuple

import jwt
import cbor2
import cwt
import cwt.algs.ec2
import pycose
Expand Down
3 changes: 0 additions & 3 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
import threading
import itertools
import subprocess
import contextlib
import urllib.parse
import unittest.mock

import pytest
import myst_parser.parsers.docutils_
import docutils.nodes
import docutils.utils
Expand Down

0 comments on commit 4931061

Please sign in to comment.