Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
b2dd0302
Commit
b2dd0302
authored
Jul 09, 2016
by
Thanassis Tsiodras
Browse files
581 type annotations remaining.
parent
6369e391
Changes
3
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
b2dd0302
PY_SRC
:=
$(
wildcard
dmt/asn2dataModel.py dmt/aadl2glueC.py dmt/smp2asn.py dmt/
*
mappers/[a-zA-Z]
*
py dmt/commonPy/[a-zA-Z]
*
py
)
PY_SRC
:=
$(
filter-out
dmt/B_mappers/antlr.main.py dmt/A_mappers/Stubs.py,
${PY_SRC}
)
PY_SRC
:=
$(
filter-out
dmt/B_mappers/antlr.main.py dmt/A_mappers/Stubs.py
dmt/B_mappers/pyside_B_mapper.py
,
${PY_SRC}
)
all
:
flake8 pylint
mypy
coverage
all
:
flake8 pylint coverage
flake8
:
@
echo
Performing syntax checks via flake8...
...
...
@@ -13,7 +13,7 @@ pylint:
mypy
:
@
echo
Performing
type
analysis via mypy...
@
mypy
--check-untyped-defs
${PY_SRC}
||
exit
1
@
mypy
--disallow-untyped-defs
--check-untyped-defs
${PY_SRC}
||
exit
1
coverage
:
@
echo
Performing coverage checks...
...
...
dmt/A_mappers/qgenada_A_mapper.py
View file @
b2dd0302
...
...
@@ -39,7 +39,8 @@ from ..commonPy.cleanupNodes import SetOfBadTypenames
from
..commonPy.asnAST
import
(
AsnBasicNode
,
AsnSequenceOrSet
,
AsnSequenceOrSetOf
,
AsnBool
,
AsnInt
,
AsnReal
,
AsnString
,
AsnEnumerated
,
AsnSequence
,
AsnSet
,
AsnChoice
,
AsnMetaMember
,
AsnSequenceOf
,
AsnSetOf
,
AsnNode
)
AsnMetaMember
,
AsnSequenceOf
,
AsnSetOf
)
from
..commonPy.asnAST
import
AsnNode
# NOQA pylint: disable=unused-import
from
..commonPy.asnParser
import
AST_Leaftypes
,
AST_Lookup
# The file written to
...
...
dmt/A_mappers/sqlalchemy_A_mapper.py
View file @
b2dd0302
...
...
@@ -24,13 +24,12 @@ Semantix's code generator A.'''
import
os
import
re
from
typing
import
Union
,
IO
,
Any
# NOQA pylint: disable=unused-import
from
typing
import
List
,
Union
,
IO
,
Any
# NOQA pylint: disable=unused-import
from
..commonPy.asnAST
import
(
AsnMetaMember
,
AsnChoice
,
AsnSet
,
AsnSequence
,
AsnSequenceOf
,
AsnSetOf
,
isSequenceVariable
,
AsnBasicNode
,
AsnSequenceOrSet
,
AsnSequenceOrSetOf
,
AsnEnumerated
,
AsnInt
,
AsnReal
,
AsnString
,
AsnNode
)
AsnSequenceOrSetOf
,
AsnEnumerated
,
AsnInt
,
AsnReal
,
AsnString
)
from
..commonPy.asnParser
import
g_names
,
g_leafTypeDict
,
CleanNameForAST
,
AST_Leaftypes
from
..commonPy.utility
import
panic
,
warn
from
..commonPy.cleanupNodes
import
SetOfBadTypenames
...
...
@@ -146,7 +145,7 @@ def FixupAstForSQLAlchemy() -> None:
g_bStartupRun
=
False
def
OnStartup
(
unused_modelingLanguage
:
str
,
asnFiles
:
Union
[
str
,
List
[
str
]],
outputDir
:
str
,
unused_badTypes
:
SetOfBadTypenames
)
->
None
:
def
OnStartup
(
unused_modelingLanguage
:
str
,
asnFiles
:
Union
[
str
,
List
[
str
]],
outputDir
:
str
,
unused_badTypes
:
SetOfBadTypenames
)
->
None
:
# pylint: disable=invalid-sequence-index
'''
SQL cannot represent unnamed inner types
e.g. this...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment