This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Generator plugins and project restructure (#3)
* feat: dev push Nothing to say so far, things are getting along, but nothing's ready yet. Signed-off-by: Predeactor <predeactor0@gmail.com> * feat: some more changes Signed-off-by: Predeactor <predeactor0@gmail.com> * chore: revert "feat: some more changes" This reverts commit 74748f2. * chore: revert "feat: dev push" This reverts commit 3e81f02. The taken path was probably not correct... * feat: remove api docs (for now), meta changes & typesheds Signed-off-by: Predeactor <predeactor0@gmail.com> * feat: generator plugin, project structure reformat Here's a little list of what has been introduced in this commit: - Added plugins system for Generator - Fixed testing in VSC (Unable to launch debug session) - Reordered API docs - Removed all import in root's __init__.py - Remove contracts code structure - Remove "to_dict" methods to FileGenerator and Generator - Recreated tests to be more consistent and safe, and clearer Signed-off-by: Predeactor <predeactor0@gmail.com> * feat: separated plugin class * feat: apply requested changes Signed-off-by: Predeactor <predeactor0@gmail.com>
- Loading branch information
Julien Mauroy
committed
Sep 9, 2022
1 parent
e1a12c5
commit 8ba0343
Showing
42 changed files
with
1,342 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Launch tests", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "unittest", | ||
"justMyCode": true | ||
}, | ||
{ | ||
"type": "firefox", | ||
"request": "launch", | ||
"reAttach": true, | ||
"preLaunchTask": "[Fabricius]: Build docs", | ||
"name": "Launch docs", | ||
"file": "${workspaceFolder}/docs/build/html/index.html" | ||
} | ||
] | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch tests", | ||
"type": "python", | ||
"module": "unittest", | ||
"args": [ | ||
"--failfast" | ||
], | ||
"request": "launch", | ||
"console": "integratedTerminal", | ||
"justMyCode": true | ||
}, | ||
{ | ||
"type": "firefox", | ||
"request": "launch", | ||
"reAttach": true, | ||
"preLaunchTask": "Build docs", | ||
"name": "Launch docs", | ||
"file": "${workspaceFolder}/docs/build/html/index.html" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "[Fabricius]: Build docs", | ||
"type": "shell", | ||
"command": "poetry run make html", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs" | ||
} | ||
} | ||
] | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build docs", | ||
"type": "shell", | ||
"command": "poetry run make html", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
fabricius.generator package | ||
=========================== | ||
|
||
Submodules | ||
---------- | ||
|
||
fabricius.generator.errors module | ||
--------------------------------- | ||
|
||
.. automodule:: fabricius.generator.errors | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
fabricius.generator.file module | ||
------------------------------- | ||
|
||
.. automodule:: fabricius.generator.file | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
fabricius.generator.generator module | ||
------------------------------------ | ||
|
||
.. automodule:: fabricius.generator.generator | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
fabricius.generator.renderer module | ||
----------------------------------- | ||
|
||
.. automodule:: fabricius.generator.renderer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: fabricius.generator | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
fabricius.plugins package | ||
========================= | ||
|
||
Submodules | ||
---------- | ||
|
||
fabricius.plugins.generator module | ||
---------------------------------- | ||
|
||
.. automodule:: fabricius.plugins.generator | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: fabricius.plugins | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
fabricius package | ||
================= | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
fabricius.generator | ||
fabricius.plugins | ||
|
||
Submodules | ||
---------- | ||
|
||
fabricius.const module | ||
---------------------- | ||
|
||
.. automodule:: fabricius.const | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
fabricius.utils module | ||
---------------------- | ||
|
||
.. automodule:: fabricius.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: fabricius | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fabricius | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
fabricius |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
from importlib.metadata import version as __package_version | ||
|
||
from .const import FILE_STATE as FILE_STATE | ||
from .const import Data as Data | ||
from .errors import AlreadyCommittedError as AlreadyCommittedError | ||
from .errors import FabriciusError as FabriciusError | ||
from .errors import NoContentError as NoContentError | ||
from .errors import NoDestinationError as NoDestinationError | ||
from .file import FileGenerator as FileGenerator | ||
from .generator import Generator as Generator | ||
from .renderer import ChevronRenderer as ChevronRenderer | ||
from .renderer import PythonFormatRenderer as PythonFormatRenderer | ||
from .renderer import StringTemplateRenderer as StringTemplateRenderer | ||
from .utils import camel_case as camel_case | ||
from .utils import capital_case as capital_case | ||
from .utils import dash_case as dash_case | ||
from .utils import pascal_case as pascal_case | ||
from .utils import sentence_case as sentence_case | ||
from .utils import snake_case as snake_case | ||
|
||
__version__ = __package_version("fabricius") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.