Reformat Python code for 2023.03 release (#6294)

* run yapf

* run isort

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
This commit is contained in:
Ric
2023-04-28 00:53:56 -04:00
committed by GitHub
parent 58d135a874
commit 880a8e5725
523 changed files with 22586 additions and 21694 deletions

View File

@@ -7,8 +7,8 @@ becomes this
%template(OnBitProjSimilarityEBV) OnBitProjSimilarity<ExplicitBitVect,ExplicitBitVect>;
"""
import re
template_match = re.compile(r"""template\s*\<(.+)\>\s*.*\s+(\w+)\s*\(.*""")

View File

@@ -9,11 +9,11 @@ files don't have that section and for now this program can't handle them without
by hand.
"""
from BeautifulSoup import *
import os
import re
from BeautifulSoup import *
def list_class_files(dir):
return [
@@ -306,8 +306,8 @@ Notes:
'''
_renote = re.compile(r'^\w*(Notes?[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
_reparam = re.compile(r'^\w*(Param(?:eter)?s?[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I |
re.DOTALL))
_reparam = re.compile(r'^\w*(Param(?:eter)?s?[:]?)(?:.*?$)(.*?)((^\w)|\Z)',
flags=(re.M | re.I | re.DOTALL))
_rereturn = re.compile(r'^\w*(Returns[:])(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
_rereturn2 = re.compile(r'^\w*(Returns)\s+(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
_reusage = re.compile(r'^\w*(Usage[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))