Bug ruff 2026 (#19)

* Updated Ruff to v0.16 and fixed for default checks 

* Nudge version and removed license classifier

---------

Co-authored-by: Jamie Hardt <jamie@squad51.us>
This commit is contained in:
Jamie Hardt
2026-09-19 16:35:56 -07:00
committed by GitHub
parent 2fc8a653cd
commit e0e3024280
39 changed files with 2031 additions and 1582 deletions
+11 -14
View File
@@ -1,28 +1,24 @@
import os
import os.path
import tempfile
import unittest
import tempfile
import sys
import os.path
import os
import glob
from ptulsconv import commands
class TestPDFExport(unittest.TestCase):
def test_report_generation(self):
"""
Setp through every text file in export_cases and make sure it can
Setp through every text file in export_cases and make sure it can
be converted into PDF docs without throwing an error
"""
files = []
files = [os.path.dirname(__file__) +
"/../export_cases/Robin Hood Spotting.txt"]
files = [os.path.dirname(__file__) + "/../export_cases/Robin Hood Spotting.txt"]
for path in files:
tempdir = tempfile.TemporaryDirectory()
os.chdir(tempdir.name)
try:
commands.convert(input_file=path, major_mode='doc')
commands.convert(input_file=path, major_mode="doc")
except Exception as e:
print("Error in test_report_generation")
print(f"File: {path}")
@@ -33,13 +29,14 @@ class TestPDFExport(unittest.TestCase):
def test_report_generation_track_markers(self):
files = []
files.append(os.path.dirname(__file__) +
"/../export_cases/Test for ptulsconv.txt")
files.append(
os.path.dirname(__file__) + "/../export_cases/Test for ptulsconv.txt"
)
for path in files:
tempdir = tempfile.TemporaryDirectory()
os.chdir(tempdir.name)
try:
commands.convert(input_file=path, major_mode='doc')
commands.convert(input_file=path, major_mode="doc")
except Exception as e:
print("Error in test_report_generation_track_markers")
print(f"File: {path}")
@@ -49,5 +46,5 @@ class TestPDFExport(unittest.TestCase):
tempdir.cleanup()
if __name__ == '__main__':
if __name__ == "__main__":
unittest.main()