diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9065b5e..e33c5be 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,10 +1,13 @@ -name: Lint +name: Lint (Black code style) on: [push, pull_request] jobs: - lint: + black-code-style: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: psf/black@stable + with: + version: "23.3.0" + diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ceb4853..bbfed08 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -26,6 +26,6 @@ jobs: run: sudo apt-get update -y && sudo apt-get install -y git python3-sphinx graphviz libenchant-2-2 && - sudo pip install tox + sudo pip install tox pycups - name: Test doc build run: tox -e docs diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index 4ee6026..3460fce 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -592,7 +592,6 @@ class Escpos(object): text_distance=1, center=True, ): - image_writer = ImageWriter() # Check if barcode type exists diff --git a/test/test_function_set.py b/test/test_function_set.py index 910450e..40bac64 100644 --- a/test/test_function_set.py +++ b/test/test_function_set.py @@ -255,7 +255,6 @@ def test_align_right(): def test_densities(): - for density in range(8): instance = printer.Dummy() instance.set(density=density)