Browse Source

Add isort, requirements-dev.txt

typer
Teran McKinney 3 months ago
parent
commit
186be252e8
  1. 2
      Makefile
  2. 2
      pyproject.toml
  3. 6
      requirements-dev.txt
  4. 6
      src/sporestack/__init__.py
  5. 8
      src/sporestack/client.py

2
Makefile

@ -1,8 +1,10 @@
format:
black .
isort .
test:
black --check .
isort --check .
flake8 .
mypy .
mypy --strict . || true

2
pyproject.toml

@ -0,0 +1,2 @@
[tool.isort]
profile = "black"

6
requirements-dev.txt

@ -0,0 +1,6 @@
black
isort
flake8
mypy
pytest
pytest-cov

6
src/sporestack/__init__.py

@ -1,8 +1,4 @@
from . import api_client
from . import client
from . import flavors
from . import validate
from . import version
from . import api_client, client, flavors, validate, version
__all__ = ["api_client", "client", "flavors", "validate"]

8
src/sporestack/client.py

@ -3,10 +3,10 @@ Cleaner interface into api_client, for the most part.
"""
import json
import sys
import secrets
import os
import logging
import os
import secrets
import sys
import time
from pathlib import Path
from typing import Any, Dict, Optional
@ -15,8 +15,8 @@ import aaargh
import pyqrcode
from . import api_client
from .flavors import all_sporestack_flavors
from .api_client import API_ENDPOINT
from .flavors import all_sporestack_flavors
from .version import __version__
cli = aaargh.App()

Loading…
Cancel
Save