Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: psf/black@22.8.0
- uses: psf/black@23.7.0
with:
options: --check --diff --target-version py36 --exclude ^/docs/source/conf\.py$
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
args: ['--target-version', 'py36']
exclude: '^docs/source/conf\.py$'

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
2 changes: 0 additions & 2 deletions src/svgutils/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def save(self, fname):
SVGFigure.save(self, fname)

def _generate_layout(self):

for i, f in enumerate(self.figures):
new_element = self._transform(f["root"], self.figures[:i])
self.append(new_element)
Expand Down Expand Up @@ -50,7 +49,6 @@ def __init__(self, nrows, row_height=None, col_width=None):
BaseTemplate.__init__(self)

def _transform(self, element, transform_list):

rows = 0

if not transform_list:
Expand Down
1 change: 0 additions & 1 deletion src/svgutils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class FigureElement(object):
"""Base class representing single figure element"""

def __init__(self, xml_element, defs=None):

self.root = xml_element

def moveto(self, x, y, scale_x=1, scale_y=None):
Expand Down
1 change: 0 additions & 1 deletion tests/test_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def test_embedded_image():


def test_text():

fig = Figure("5cm", "5cm", Text("lion"))
txt = fig.root.find(SVG + "text")

Expand Down
1 change: 0 additions & 1 deletion tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def test_svg_figure_writes_width_height_and_view_box():


def test_svg_figure__width_height_tostr():

svg_fig = transform.SVGFigure("400px", "300px")
assert b'height="300.0px"' in svg_fig.to_str()
assert b'width="400.0px"' in svg_fig.to_str()