Skip to content
Merged
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: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
.*
!.gitignore
!.readthedocs.yaml
!.flake8
!.flake8_nb
!.github

# Byte / compiled / optimized
Expand Down
16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"defusedxml",
"ewokscore<5",
"reportlab",
"typing-extensions; python_version < '3.11'",
Expand All @@ -35,7 +36,7 @@ test = [
]
dev = [
"pytest >=7",
"ruff",
"ruff>=0.16.0",
"mypy",
]
doc = [
Expand All @@ -61,10 +62,21 @@ src = ["."]
line-length = 88

[tool.ruff.lint]
select = ["E", "F", "I"]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
]

[tool.ruff.lint.per-file-ignores]
"src/ewoksdraw/tests/*.py" = [
"S101" # allow asserts
]

[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["ewoksdraw"]

[tool.mypy]
ignore_missing_imports = true
Expand Down
2 changes: 1 addition & 1 deletion src/ewoksdraw/svg/svg_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from typing import Iterator
from typing import List
from typing import Union
from xml.dom import minidom
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import tostring

import xmltodict
from defusedxml import minidom

from .svg_background import SvgBackground
from .svg_element import SvgElement
Expand Down
2 changes: 1 addition & 1 deletion src/ewoksdraw/tests/test_graph_to_svg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path
from xml.etree import ElementTree

import pytest
from defusedxml import ElementTree
from ewokscore import load_graph
from ewokscore.tests.examples.graphs import get_graph
from ewokscore.tests.examples.graphs import graph_names
Expand Down
3 changes: 2 additions & 1 deletion src/ewoksdraw/tests/test_svg_path_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pathlib import Path
from xml.etree import ElementTree

from defusedxml import ElementTree

from ewoksdraw.geometry.cubic_bezier_path import CubicBezierPath
from ewoksdraw.geometry.cubic_bezier_path import CubicBezierSegment
Expand Down
Loading