Arjan Molenaar
808d54f98d
Make override declarations more closely resemble python statements
...
Add type hints to override statements
2019-08-11 23:17:08 +02:00
Arjan Molenaar
db99bee8a3
Add type hints to model
2019-08-11 20:54:04 +02:00
Arjan Molenaar
b0ff5f7e8c
Do write the model file at the end
2019-08-11 20:51:41 +02:00
Dan Yeaw
ee030b677e
Run Flynt with upgrade option to modernize Python syntax
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-08-10 21:33:10 -04:00
Dan Yeaw
f4511a9ef5
Convert all strings to f-strings
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-08-10 21:16:17 -04:00
Dan Yeaw
fe3c19cdd5
Convert issue 53 test to Pytest
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-01 20:59:16 -04:00
Dan Yeaw
369f939d4d
Convert element dispatcher to Pytest
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-06-30 22:09:25 -04:00
Dan Yeaw
3d0b350f64
Convert file manager, main window, and gen uml to Pytest
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-06-17 21:44:51 -04:00
Dan Yeaw
17ea5a4a4b
Convert to Pytest for multidispatch, xmlwriter, and gen_uml
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-06-16 16:15:13 -04:00
Arjan Molenaar
c89862cf3d
Move i18n and model command in separate packages
2019-06-14 22:31:02 +02:00
Arjan Molenaar
17c319d4bb
Use importlib_metadata instead of pkg_resources
...
We're no longer depending on setuptools.
2019-06-07 23:51:31 +02:00
Arjan Molenaar
58125eeb83
Change assert(Not)Same calls to simple asserts
...
PyTest gives enough context.
2019-06-03 23:40:40 +02:00
Dan Yeaw
913cdf334e
Change assert statements to pytest format
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-05-25 22:41:46 -04:00
Arjan Molenaar
363600f463
Make imports more specific
...
Do not import from gaphor.diagram.items, but from their specific modules/packages.
2019-05-20 22:39:01 +02:00
Arjan Molenaar
24c6de509a
Import all diagram specific property pages, connectors, etc.into their respective diagram package
2019-05-10 22:59:32 +02:00
Arjan Molenaar
494a871790
Replace @component.adapter by @event_handler
...
This should easy transitioning away from zope.component.
2019-05-05 21:46:09 +02:00
Arjan Molenaar
d3db2205e1
In Python3, classes no longer need to explicitly inherit from object
2019-05-05 21:46:08 +02:00
Arjan Molenaar
67d3739e8f
Cleanup on behalf of IConnect
2019-05-04 09:12:32 +02:00
Arjan Molenaar
04fd5df027
Start afresh with the namespace model
...
* Use a TreeStore, instead of the now obsolete Gtk.GenericTreeModel
* Removed old NamespaceTreeModel
* Remove NamespaceTreeModel tests since they're not clear and use PyTest
2019-04-10 14:15:01 +02:00
Arjan Molenaar
553cc84a62
Remove comment, no longer applicable
2019-03-23 20:43:01 +01:00
Arjan Molenaar
c195482ed2
Fix formatting
2019-03-11 21:51:32 +01:00
Arjan Molenaar
815e1c5454
Restructure transaction test
...
This way there are no "left overs" that cause other tests to fail.
2019-03-11 20:32:44 +01:00
Arjan Molenaar
abb7db5972
Remove unused test diagrams
2019-03-10 22:56:28 +01:00
Arjan Molenaar
067e046a8d
Update Gaphor file for e2e test case
2019-03-10 22:38:24 +01:00
Arjan Molenaar
a6e523a8df
Simplify file loading
2019-03-03 22:14:52 +01:00
Arjan Molenaar
e7ecd1dfa0
Re-save test model for gen_uml test
2019-03-03 22:14:52 +01:00
Arjan Molenaar
f1a27bfa7e
Restore test_gen_uml to its former glory
2019-03-03 22:14:52 +01:00
Dan Yeaw
f55e582299
Remove futurize dependency, drop support for Python 2
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-02-23 22:06:02 -05:00
Dan Yeaw
1c72d3010b
Replace zope.component.adapts with decorator, remove vim setting comment
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-02-17 13:21:50 -05:00
Dan Yeaw
0b854fc522
Run black on all files to fix formatting
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-11-24 21:31:18 -05:00
Arjan Molenaar
286156bb3a
More gaphor.misc fixes
2018-11-23 22:44:52 +01:00
Arjan Molenaar
fb04d4632d
Fix assert warnings, whitespace
2018-11-22 23:14:07 +01:00
Dan Yeaw
337ea579d0
Import Gtk and GObject correctly
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-11-18 12:09:27 -05:00
Dan Yeaw
43a1618c3b
Run pygi-convert PyGObject conversion script
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-10-06 21:15:16 -04:00
Dan Yeaw
e66b458a2b
Futurize run 2: fix dict, update items, keys, and values
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-29 22:28:43 -04:00
Dan Yeaw
66b74c922c
Remove logging builtin dict attribute to futurize, cleanup imports
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-21 22:26:36 -04:00
Dan Yeaw
66a8480f0c
Futurize: import future builtins
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-21 21:17:00 -04:00
Dan Yeaw
146ed7818b
Revert "Migrated codebase to be compatible with Python3 using python-modernize. Changed import statements to fix recursive imports, renamed uses of "UML" to uml2 and modelfactory which are the actual module names, and removed some of the unused import statements."
...
This reverts commit d7c8653
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-21 13:46:40 -04:00
Dan Yeaw
385d249b7a
Correct wrong short license on each source file
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-01-13 18:33:50 -05:00
danyeaw
68cb1d3229
Added license preamble and copyright, closes #10 .
2017-05-12 22:03:34 -04:00
danyeaw
ffabc82351
Ran python-modernize on files outside of gaphor. Updated formatting.
2017-04-30 21:23:46 -04:00
danyeaw
b705df38d6
Revert "Reformatted all code to match PEP8, optimized imports."
...
This reverts commit 244be6b6472b6ad9a9b27a32267e4d4a093d56bb.
2017-04-29 21:58:43 -04:00
danyeaw
244be6b647
Reformatted all code to match PEP8, optimized imports.
2017-04-29 21:24:12 -04:00
danyeaw
4a31654690
More import updates to change UML to uml2
2017-04-26 22:13:28 -04:00
danyeaw
d7c86533c3
Migrated codebase to be compatible with Python3 using python-modernize. Changed import statements to fix recursive imports, renamed uses of "UML" to uml2 and modelfactory which are the actual module names, and removed some of the unused import statements.
2017-04-24 20:59:16 -04:00
Arjan Molenaar
2e29868a92
Analyzed and resolved:#53. Now can savely delete package with stereotype
...
definitions.
2010-06-16 19:11:28 +02:00
Arjan Molenaar
a7083dc845
Added test case for unlink issue (solved already in gaphas)
2010-03-08 07:22:56 +01:00
Arjan Molenaar
e4e1c7ef9b
Fix unit tests, cleanup.
2010-02-18 08:17:12 +01:00
Arjan Molenaar
d83baff040
Let TestCase.connect use the DiagramItemConnector aspect.
...
Added testcase that exhibits errorous undo of connected items.
2010-02-11 06:42:27 +01:00
Arjan Molenaar
78e38aa3d8
Added event_dispatcher to default set of services. Changed file format to unix.
2010-02-10 08:25:22 +01:00