Skip to content

Commit

Permalink
Added isort and badges for readme
Browse files Browse the repository at this point in the history
  • Loading branch information
max-pfeiffer committed Sep 23, 2023
1 parent 7f401d1 commit f68e622
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ repos:
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: local
hooks:
- id: pylint
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![codecov](https://codecov.io/gh/max-pfeiffer/python-poetry/branch/main/graph/badge.svg?token=WQI2SJJLZN)](https://codecov.io/gh/max-pfeiffer/python-poetry)
![pipeline workflow](https://github.com/max-pfeiffer/python-poetry/actions/workflows/pipeline.yml/badge.svg)
![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/pfeiffermax/python-poetry?sort=semver)
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions tests/build_image/conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
from os import getenv
from time import sleep

import pytest
from python_on_whales import Builder, DockerClient
from build.utils import get_image_reference

from tests.constants import (
CONTEXT,
REGISTRY_PASSWORD,
REGISTRY_USERNAME,
)
from build.utils import get_image_reference
from tests.constants import CONTEXT, REGISTRY_PASSWORD, REGISTRY_USERNAME
from tests.registry_container import DockerRegistryContainer
from os import getenv


@pytest.fixture(scope="package")
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from python_on_whales import DockerClient, Builder
from random import randrange

import pytest
from python_on_whales import Builder, DockerClient
from semver import VersionInfo


Expand Down
3 changes: 2 additions & 1 deletion tests/publish_image/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from os import getenv

import pytest
from click.testing import CliRunner
from os import getenv


@pytest.fixture(scope="package")
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from dataclasses import dataclass
from pathlib import Path

from docker_image import reference
from python_on_whales import DockerClient
from pathlib import Path


@dataclass
Expand Down

0 comments on commit f68e622

Please sign in to comment.