-
Notifications
You must be signed in to change notification settings - Fork 0
27 Refactor project structure for Poetry and improve flowchart capability #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7b5194b
#27 updated the project to work with poetry and improved flowchart logic
Asifdotexe 9c4c14f
#27 updated the logic to fix the while loop
Asifdotexe 2021899
#27 segregated examples and assets
Asifdotexe eed2fa0
#27 refactored code and improved docstrings
Asifdotexe 6c6c277
#27 refactored the code for serpent_graphviz
Asifdotexe ef32787
#27 linted the test function
Asifdotexe 8d441a8
#27 added precommit file and added required dependencies to support it
Asifdotexe 5f45bd4
#27 perform automated linting using precommit
Asifdotexe 23f26ec
#27 performed manual linting of the files
Asifdotexe fda3153
#27 updated the pylint max char limit to 120
Asifdotexe fca49bc
#27 fixed the isort version
Asifdotexe f612159
#27 improve exception handling and filename sanitization
Asifdotexe f0f35fb
#27 fixed edge label exception handling
Asifdotexe 460d799
#27 wrote smoke testing
Asifdotexe a09b216
#27 deleted legacy serpent script
Asifdotexe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,29 @@ | ||
| name: Run Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install poetry | ||
| poetry install | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| poetry run pytest tests/ |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ venv/ | |
| __pycache__/ | ||
| .idea/ | ||
| SERPENT.egg-info/ | ||
| build/ | ||
| build/ | ||
This file contains hidden or 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,29 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v6.0.0 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| - id: check-yaml | ||
| - id: check-added-large-files | ||
|
|
||
| - repo: https://github.com/psf/black | ||
| rev: 25.9.0 | ||
| hooks: | ||
| - id: black | ||
|
|
||
| - repo: https://github.com/PyCQA/isort | ||
| rev: 5.13.2 | ||
| hooks: | ||
| - id: isort | ||
| name: isort (python) | ||
|
|
||
| - repo: https://github.com/pylint-dev/pylint | ||
| rev: v3.3.8 | ||
| hooks: | ||
| - id: pylint | ||
| name: pylint | ||
| entry: poetry run pylint | ||
| language: system | ||
| types: [python] | ||
| args: ["--rcfile=pyproject.toml"] | ||
This file contains hidden or 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,5 @@ | ||
| # Source - https://stackoverflow.com/q | ||
| # Posted by Łukasz Rogalski, modified by community. See post 'Timeline' for change history | ||
| # Retrieved 2026-01-10, License - CC BY-SA 4.0 | ||
|
|
||
| pylint: max-line-length=120 |
This file contains hidden or 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 hidden or 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
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or 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 +1 @@ | ||
| graphviz | ||
| graphviz | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.