Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
yams
Commits
5511076db24c
Commit
86f83085
authored
Jul 28, 2021
by
Laurent Peuch
Browse files
chore(format-source): autopep8 the code
parent
6c57b1841c41
Changes
6
Hide whitespace changes
Inline
Side-by-side
.hg-format-source
0 → 100644
View file @
5511076d
{"pattern": "__pkginfo__.py", "tool": "autopep8"}
{"pattern": "docs/conf.py", "tool": "autopep8"}
{"pattern": "setup.py", "tool": "autopep8"}
{"pattern": "test/data/__init__.py", "tool": "autopep8"}
{"pattern": "test/data/dbmodel/__init__.py", "tool": "autopep8"}
{"pattern": "test/data/dbmodel/blog.py", "tool": "autopep8"}
{"pattern": "test/data/schema/Company.py", "tool": "autopep8"}
{"pattern": "test/data/schema/Dates.py", "tool": "autopep8"}
{"pattern": "test/data/schema/State.py", "tool": "autopep8"}
{"pattern": "test/data/schema/__init__.py", "tool": "autopep8"}
{"pattern": "test/data/schema/schema.py", "tool": "autopep8"}
{"pattern": "test/data/schema_post_build_callback.py", "tool": "autopep8"}
{"pattern": "test/data2/__init__.py", "tool": "autopep8"}
{"pattern": "test/data2/schema.py", "tool": "autopep8"}
{"pattern": "test/unittest_constraints.py", "tool": "autopep8"}
{"pattern": "test/unittest_diff.py", "tool": "autopep8"}
{"pattern": "test/unittest_reader.py", "tool": "autopep8"}
{"pattern": "test/unittest_schema.py", "tool": "autopep8"}
{"pattern": "test/unittest_schema2dot.py", "tool": "autopep8"}
{"pattern": "test/unittest_serialize.py", "tool": "autopep8"}
{"pattern": "test/unittest_specialization.py", "tool": "autopep8"}
{"pattern": "test/unittest_xy.py", "tool": "autopep8"}
{"pattern": "yams/__init__.py", "tool": "autopep8"}
{"pattern": "yams/_exceptions.py", "tool": "autopep8"}
{"pattern": "yams/buildobjs.py", "tool": "autopep8"}
{"pattern": "yams/constraints.py", "tool": "autopep8"}
{"pattern": "yams/diff.py", "tool": "autopep8"}
{"pattern": "yams/interfaces.py", "tool": "autopep8"}
{"pattern": "yams/reader.py", "tool": "autopep8"}
{"pattern": "yams/schema.py", "tool": "autopep8"}
{"pattern": "yams/schema2dot.py", "tool": "autopep8"}
{"pattern": "yams/serialize.py", "tool": "autopep8"}
{"pattern": "yams/tools.py", "tool": "autopep8"}
{"pattern": "yams/types.py", "tool": "autopep8"}
{"pattern": "yams/xy.py", "tool": "autopep8"}
MANIFEST.in
View file @
5511076d
...
...
@@ -17,3 +17,4 @@ include *.png
include *.svg
exclude .yamllint
exclude .cube-doctor.yml
exclude .hg-format-source
yams/buildobjs.py
View file @
5511076d
...
...
@@ -959,7 +959,6 @@ class RelationDefinition(Definition):
package
:
Optional
[
str
]
=
None
,
**
kwargs
,
)
->
None
:
"""kwargs keys must have values in _RELATION_DEFINITION_PROPERTIES()"""
if
subject
:
self
.
subject
=
subject
...
...
yams/reader.py
View file @
5511076d
...
...
@@ -147,7 +147,6 @@ class SchemaLoader:
construction_mode
:
str
=
"strict"
,
remove_unused_relation_types
:
bool
=
True
,
)
->
yams_types
.
Schema
:
"""return a schema from the schema definition read from <module_names> (a
list of (PACKAGE, module_name))
"""
...
...
yams/schema.py
View file @
5511076d
...
...
@@ -393,7 +393,6 @@ class EntitySchema(PermissionMixIn, ERSchema):
target_type
:
yams_types
.
DefinitionName
=
None
,
take_first
:
bool
=
False
,
)
->
yams_types
.
RelationDefinitionSchema
:
"""return a relation definition schema for a relation of this entity type
Notice that when target_type is not specified and the relation may lead
...
...
yams/schema2dot.py
View file @
5511076d
...
...
@@ -284,7 +284,6 @@ def schema2dot(
prophdlr
=
None
,
size
=
None
,
)
->
Any
:
"""write to the output stream a dot graph representing the given schema"""
# mypy: Incompatible types in assignment (expression has type
...
...
Write
Preview
Supports
Markdown
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