mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 21:53:47 +08:00
Tweak black settings as dropped Python 3.8
This commit is contained in:
committed by
Peter Cock
parent
0e90023e3e
commit
b27836ac26
@ -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:
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user