Tweak black settings as dropped Python 3.8

This commit is contained in:
Peter J. A. Cock
2024-06-26 14:34:37 +09:00
committed by Peter Cock
parent 0e90023e3e
commit b27836ac26
2 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ repos:
rev: 24.3.0
hooks:
- id: black
args: [--check,--target-version,py38]
args: [--check,--target-version,py39]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:

View File

@ -32,9 +32,10 @@ class TestPDBMLParser(unittest.TestCase):
with warnings.catch_warnings():
warnings.simplefilter("ignore", PDBConstructionWarning)
for entry in ["1GBT"]:
with open(f"PDB/{entry}.cif") as mmcif_file, open(
f"PDB/{entry}.xml"
) as pdbml_file:
with (
open(f"PDB/{entry}.cif") as mmcif_file,
open(f"PDB/{entry}.xml") as pdbml_file,
):
mmcif_structure = mmcif_parser.get_structure(entry, mmcif_file)
pdbml_structure = pdbml_parser.get_structure(pdbml_file)
self.assertEqual(mmcif_structure, pdbml_structure)