workflowforge 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- workflowforge-1.0.0/.flake8 +16 -0
- workflowforge-1.0.0/.github/pull_request_template.md +92 -0
- workflowforge-1.0.0/.github/workflows/publish.yml +116 -0
- workflowforge-1.0.0/.gitignore +202 -0
- workflowforge-1.0.0/.pre-commit-config.yaml +64 -0
- workflowforge-1.0.0/AUTHORS.md +18 -0
- workflowforge-1.0.0/CHANGELOG.md +122 -0
- workflowforge-1.0.0/LICENSE +21 -0
- workflowforge-1.0.0/MANIFEST.in +6 -0
- workflowforge-1.0.0/PKG-INFO +430 -0
- workflowforge-1.0.0/README.md +393 -0
- workflowforge-1.0.0/README_PRECOMMIT.md +88 -0
- workflowforge-1.0.0/RELEASE_NOTES_v1.0.0.md +35 -0
- workflowforge-1.0.0/examples/README.md +53 -0
- workflowforge-1.0.0/examples/codebuild/buildspec.yml +19 -0
- workflowforge-1.0.0/examples/codebuild/node_app.py +44 -0
- workflowforge-1.0.0/examples/github_actions/basic_ci.py +31 -0
- workflowforge-1.0.0/examples/github_actions/basic_ci.yml +14 -0
- workflowforge-1.0.0/examples/github_actions/python_matrix.py +51 -0
- workflowforge-1.0.0/examples/github_actions/python_matrix.yml +28 -0
- workflowforge-1.0.0/examples/jenkins/Jenkinsfile +24 -0
- workflowforge-1.0.0/examples/jenkins/maven_build.py +35 -0
- workflowforge-1.0.0/pyproject.toml +77 -0
- workflowforge-1.0.0/setup.cfg +4 -0
- workflowforge-1.0.0/setup.py +7 -0
- workflowforge-1.0.0/src/workflowforge/__init__.py +18 -0
- workflowforge-1.0.0/src/workflowforge/ai_documentation.py +138 -0
- workflowforge-1.0.0/src/workflowforge/codebuild.py +348 -0
- workflowforge-1.0.0/src/workflowforge/environment.py +25 -0
- workflowforge-1.0.0/src/workflowforge/github_actions_module.py +71 -0
- workflowforge-1.0.0/src/workflowforge/jenkins.py +323 -0
- workflowforge-1.0.0/src/workflowforge/jenkins_plugins.py +172 -0
- workflowforge-1.0.0/src/workflowforge/job.py +102 -0
- workflowforge-1.0.0/src/workflowforge/schema_validation.py +138 -0
- workflowforge-1.0.0/src/workflowforge/secrets.py +151 -0
- workflowforge-1.0.0/src/workflowforge/step.py +101 -0
- workflowforge-1.0.0/src/workflowforge/strategy.py +59 -0
- workflowforge-1.0.0/src/workflowforge/templates.py +177 -0
- workflowforge-1.0.0/src/workflowforge/triggers.py +139 -0
- workflowforge-1.0.0/src/workflowforge/validation.py +75 -0
- workflowforge-1.0.0/src/workflowforge/visualization.py +204 -0
- workflowforge-1.0.0/src/workflowforge/workflow.py +161 -0
- workflowforge-1.0.0/src/workflowforge.egg-info/PKG-INFO +430 -0
- workflowforge-1.0.0/src/workflowforge.egg-info/SOURCES.txt +53 -0
- workflowforge-1.0.0/src/workflowforge.egg-info/dependency_links.txt +1 -0
- workflowforge-1.0.0/src/workflowforge.egg-info/requires.txt +13 -0
- workflowforge-1.0.0/src/workflowforge.egg-info/top_level.txt +1 -0
- workflowforge-1.0.0/tests/__init__.py +1 -0
- workflowforge-1.0.0/tests/test_ai_documentation.py +143 -0
- workflowforge-1.0.0/tests/test_codebuild.py +62 -0
- workflowforge-1.0.0/tests/test_jenkins.py +50 -0
- workflowforge-1.0.0/tests/test_secrets.py +23 -0
- workflowforge-1.0.0/tests/test_templates.py +54 -0
- workflowforge-1.0.0/tests/test_validation.py +30 -0
- workflowforge-1.0.0/tests/test_workflow.py +103 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[flake8]
|
|
2
|
+
max-line-length = 88
|
|
3
|
+
extend-ignore = E203, W503, E501, E722, F401, F541, F811, F841, E712
|
|
4
|
+
exclude =
|
|
5
|
+
.git,
|
|
6
|
+
__pycache__,
|
|
7
|
+
build,
|
|
8
|
+
dist,
|
|
9
|
+
*.egg-info,
|
|
10
|
+
venv,
|
|
11
|
+
.venv,
|
|
12
|
+
examples,
|
|
13
|
+
setup.py
|
|
14
|
+
per-file-ignores =
|
|
15
|
+
__init__.py:F401,F811
|
|
16
|
+
tests/*:S101,F401
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Pull Request
|
|
2
|
+
|
|
3
|
+
## ๐ PR Summary
|
|
4
|
+
<!-- Provide a brief description of the changes in this PR -->
|
|
5
|
+
|
|
6
|
+
### Related Issues
|
|
7
|
+
<!-- Link any related issues using keywords like "Fixes #123", "Closes #456", "Resolves #789" -->
|
|
8
|
+
- Fixes #
|
|
9
|
+
- Closes #
|
|
10
|
+
- Resolves #
|
|
11
|
+
|
|
12
|
+
### Type of Change
|
|
13
|
+
<!-- Check the type of change your PR introduces -->
|
|
14
|
+
- [ ] ๐ Bug fix (non-breaking change that fixes an issue)
|
|
15
|
+
- [ ] โจ New feature (non-breaking change that adds functionality)
|
|
16
|
+
- [ ] ๐ฅ Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
17
|
+
- [ ] ๐ Documentation update
|
|
18
|
+
- [ ] ๐ง Refactoring (no functional changes)
|
|
19
|
+
- [ ] โก Performance improvement
|
|
20
|
+
- [ ] ๐งช Test addition or improvement
|
|
21
|
+
- [ ] ๐จ Build/CI changes
|
|
22
|
+
|
|
23
|
+
## ๐ What Changed
|
|
24
|
+
<!-- Describe the changes in detail -->
|
|
25
|
+
|
|
26
|
+
### Before
|
|
27
|
+
<!-- Describe the behavior before this change -->
|
|
28
|
+
|
|
29
|
+
### After
|
|
30
|
+
<!-- Describe the behavior after this change -->
|
|
31
|
+
|
|
32
|
+
## ๐งช Testing
|
|
33
|
+
<!-- Describe how you tested your changes -->
|
|
34
|
+
- [ ] Unit tests pass (`pytest tests/`)
|
|
35
|
+
- [ ] Code quality checks pass (`black`, `isort`, `flake8`, `mypy`)
|
|
36
|
+
- [ ] Security scan passes (`bandit`)
|
|
37
|
+
- [ ] Manual testing completed
|
|
38
|
+
- [ ] Examples work correctly
|
|
39
|
+
|
|
40
|
+
### Test Evidence
|
|
41
|
+
<!-- Provide evidence of testing (screenshots, logs, etc.) -->
|
|
42
|
+
|
|
43
|
+
## ๐ Documentation
|
|
44
|
+
- [ ] Code is self-documenting with clear variable/function names
|
|
45
|
+
- [ ] Docstrings added/updated for new functions/classes
|
|
46
|
+
- [ ] README updated if needed
|
|
47
|
+
- [ ] Examples updated if needed
|
|
48
|
+
- [ ] CHANGELOG.md updated
|
|
49
|
+
|
|
50
|
+
## ๐ Security & Performance
|
|
51
|
+
- [ ] No sensitive data exposed (credentials, tokens, etc.)
|
|
52
|
+
- [ ] No performance regressions introduced
|
|
53
|
+
- [ ] Dependencies are secure and up-to-date
|
|
54
|
+
- [ ] Error handling is appropriate
|
|
55
|
+
|
|
56
|
+
## ๐ฏ Reviewer Guidance
|
|
57
|
+
<!-- Help reviewers understand what to focus on -->
|
|
58
|
+
|
|
59
|
+
### Focus Areas
|
|
60
|
+
<!-- What should reviewers pay special attention to? -->
|
|
61
|
+
- [ ] Logic correctness
|
|
62
|
+
- [ ] Error handling
|
|
63
|
+
- [ ] Performance impact
|
|
64
|
+
- [ ] Security implications
|
|
65
|
+
- [ ] API design
|
|
66
|
+
- [ ] Documentation clarity
|
|
67
|
+
|
|
68
|
+
### Testing Instructions
|
|
69
|
+
<!-- Step-by-step instructions for reviewers to test your changes -->
|
|
70
|
+
1.
|
|
71
|
+
2.
|
|
72
|
+
3.
|
|
73
|
+
|
|
74
|
+
## ๐ฆ Deployment Notes
|
|
75
|
+
<!-- Any special considerations for deployment -->
|
|
76
|
+
- [ ] No database migrations required
|
|
77
|
+
- [ ] No configuration changes required
|
|
78
|
+
- [ ] Backward compatible
|
|
79
|
+
- [ ] Safe to deploy immediately
|
|
80
|
+
|
|
81
|
+
## โ
Pre-Merge Checklist
|
|
82
|
+
<!-- All items must be checked before merge -->
|
|
83
|
+
- [ ] PR title follows [Conventional Commits](https://www.conventionalcommits.org/) format
|
|
84
|
+
- [ ] All CI checks are passing
|
|
85
|
+
- [ ] Code has been reviewed and approved
|
|
86
|
+
- [ ] No merge conflicts
|
|
87
|
+
- [ ] Branch is up to date with target branch
|
|
88
|
+
- [ ] All conversations resolved
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**Note for Reviewers:** Please ensure all checklist items are completed before approving. Use "Request Changes" if any items are missing or if you have concerns.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Do not modify - Generated with WorkflowForge
|
|
2
|
+
name: Publish WorkflowForge to PyPI
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
release:
|
|
11
|
+
types:
|
|
12
|
+
- published
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
name: Checkout code
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
name: Set up Python ${{ matrix.python_version }}
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python_version }}
|
|
22
|
+
- run: python -m pip install --upgrade pip
|
|
23
|
+
name: Install pip
|
|
24
|
+
- run: pip install -e .[dev]
|
|
25
|
+
name: Install dependencies
|
|
26
|
+
- run: black --check src/ tests/
|
|
27
|
+
name: Check code formatting
|
|
28
|
+
- run: isort --check-only src/ tests/
|
|
29
|
+
name: Check import sorting
|
|
30
|
+
- run: flake8 src/ tests/ examples/
|
|
31
|
+
name: Lint with flake8
|
|
32
|
+
- run: mypy --install-types --non-interactive src/
|
|
33
|
+
name: Type check with mypy
|
|
34
|
+
- run: pytest tests/ --cov=workflowforge --cov-report=xml
|
|
35
|
+
name: Run tests with coverage
|
|
36
|
+
strategy:
|
|
37
|
+
matrix:
|
|
38
|
+
python_version:
|
|
39
|
+
- '3.11'
|
|
40
|
+
- '3.12'
|
|
41
|
+
- '3.13'
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
security:
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
name: Checkout code
|
|
47
|
+
- uses: actions/setup-python@v5
|
|
48
|
+
name: Set up Python
|
|
49
|
+
with:
|
|
50
|
+
python-version: '3.11'
|
|
51
|
+
- run: pip install bandit safety
|
|
52
|
+
name: Install security tools
|
|
53
|
+
- run: bandit -r src/
|
|
54
|
+
name: Security scan with Bandit
|
|
55
|
+
- run: safety check --ignore-unpinned || echo 'Safety check completed with warnings'
|
|
56
|
+
name: Check dependencies for vulnerabilities
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
build:
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v4
|
|
61
|
+
name: Checkout code
|
|
62
|
+
- uses: actions/setup-python@v5
|
|
63
|
+
name: Set up Python
|
|
64
|
+
with:
|
|
65
|
+
python-version: '3.11'
|
|
66
|
+
- run: python -m pip install --upgrade pip build twine
|
|
67
|
+
name: Install build tools
|
|
68
|
+
- run: python -m build
|
|
69
|
+
name: Build package
|
|
70
|
+
- run: twine check dist/*
|
|
71
|
+
name: Verify package metadata
|
|
72
|
+
- uses: actions/upload-artifact@v4
|
|
73
|
+
name: Upload build artifacts
|
|
74
|
+
with:
|
|
75
|
+
name: dist
|
|
76
|
+
path: dist/
|
|
77
|
+
needs:
|
|
78
|
+
- test
|
|
79
|
+
- security
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
publish-testpypi:
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/download-artifact@v4
|
|
84
|
+
name: Download build artifacts
|
|
85
|
+
with:
|
|
86
|
+
name: dist
|
|
87
|
+
path: dist/
|
|
88
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
89
|
+
name: Publish to TestPyPI
|
|
90
|
+
with:
|
|
91
|
+
repository-url: https://test.pypi.org/legacy/
|
|
92
|
+
needs: build
|
|
93
|
+
environment:
|
|
94
|
+
name: testpypi
|
|
95
|
+
url: https://test.pypi.org/p/workflowforge
|
|
96
|
+
permissions:
|
|
97
|
+
id-token: write
|
|
98
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
99
|
+
runs-on: ubuntu-latest
|
|
100
|
+
publish-pypi:
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/download-artifact@v4
|
|
103
|
+
name: Download build artifacts
|
|
104
|
+
with:
|
|
105
|
+
name: dist
|
|
106
|
+
path: dist/
|
|
107
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
108
|
+
name: Publish to PyPI
|
|
109
|
+
needs: build
|
|
110
|
+
environment:
|
|
111
|
+
name: pypi
|
|
112
|
+
url: https://pypi.org/p/workflowforge
|
|
113
|
+
permissions:
|
|
114
|
+
id-token: write
|
|
115
|
+
if: github.event_name == 'release'
|
|
116
|
+
runs-on: ubuntu-latest
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be added to the global gitignore or merged into this project gitignore. For a PyCharm
|
|
158
|
+
# project, it is recommended to ignore the entire .idea directory.
|
|
159
|
+
.idea/
|
|
160
|
+
|
|
161
|
+
# VS Code
|
|
162
|
+
.vscode/
|
|
163
|
+
|
|
164
|
+
# macOS
|
|
165
|
+
.DS_Store
|
|
166
|
+
.AppleDouble
|
|
167
|
+
.LSOverride
|
|
168
|
+
|
|
169
|
+
# Windows
|
|
170
|
+
Thumbs.db
|
|
171
|
+
ehthumbs.db
|
|
172
|
+
Desktop.ini
|
|
173
|
+
|
|
174
|
+
# Linux
|
|
175
|
+
*~
|
|
176
|
+
|
|
177
|
+
# Temporary files
|
|
178
|
+
*.tmp
|
|
179
|
+
*.temp
|
|
180
|
+
*.swp
|
|
181
|
+
*.swo
|
|
182
|
+
|
|
183
|
+
# Logs
|
|
184
|
+
*.log
|
|
185
|
+
|
|
186
|
+
# Test files
|
|
187
|
+
test_output/
|
|
188
|
+
.coverage
|
|
189
|
+
htmlcov/
|
|
190
|
+
|
|
191
|
+
# Build artifacts
|
|
192
|
+
*.whl
|
|
193
|
+
*.tar.gz
|
|
194
|
+
|
|
195
|
+
# WorkflowForge generated files (ignore workflow generation scripts and outputs)
|
|
196
|
+
create_*workflow*.py
|
|
197
|
+
create_*pipeline*.py
|
|
198
|
+
*.dot
|
|
199
|
+
*_README.md
|
|
200
|
+
*workflow*.png
|
|
201
|
+
*pipeline*.png
|
|
202
|
+
*codebuild*.png
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
# Basic file checks
|
|
3
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
+
rev: v4.6.0
|
|
5
|
+
hooks:
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- id: end-of-file-fixer
|
|
8
|
+
- id: check-yaml
|
|
9
|
+
- id: check-added-large-files
|
|
10
|
+
- id: check-merge-conflict
|
|
11
|
+
- id: check-toml
|
|
12
|
+
- id: debug-statements
|
|
13
|
+
- id: mixed-line-ending
|
|
14
|
+
|
|
15
|
+
# Python code formatting
|
|
16
|
+
- repo: https://github.com/psf/black
|
|
17
|
+
rev: 25.1.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: black
|
|
20
|
+
language_version: python3
|
|
21
|
+
|
|
22
|
+
# Import sorting
|
|
23
|
+
- repo: https://github.com/pycqa/isort
|
|
24
|
+
rev: 5.13.2
|
|
25
|
+
hooks:
|
|
26
|
+
- id: isort
|
|
27
|
+
args: ["--profile", "black"]
|
|
28
|
+
|
|
29
|
+
# Security scanning
|
|
30
|
+
- repo: https://github.com/PyCQA/bandit
|
|
31
|
+
rev: 1.8.6
|
|
32
|
+
hooks:
|
|
33
|
+
- id: bandit
|
|
34
|
+
args: ["-r", "src/"]
|
|
35
|
+
exclude: tests/
|
|
36
|
+
|
|
37
|
+
# Conventional commits validation
|
|
38
|
+
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
39
|
+
rev: v3.4.0
|
|
40
|
+
hooks:
|
|
41
|
+
- id: conventional-pre-commit
|
|
42
|
+
stages: [commit-msg]
|
|
43
|
+
|
|
44
|
+
# Python syntax and style
|
|
45
|
+
- repo: https://github.com/pycqa/flake8
|
|
46
|
+
rev: 7.1.1
|
|
47
|
+
hooks:
|
|
48
|
+
- id: flake8
|
|
49
|
+
args: ["--max-line-length=88", "--extend-ignore=E203,W503"]
|
|
50
|
+
|
|
51
|
+
# Upgrade Python syntax
|
|
52
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
53
|
+
rev: v3.19.0
|
|
54
|
+
hooks:
|
|
55
|
+
- id: pyupgrade
|
|
56
|
+
args: [--py311-plus]
|
|
57
|
+
|
|
58
|
+
# YAML linting
|
|
59
|
+
- repo: https://github.com/adrienverge/yamllint
|
|
60
|
+
rev: v1.35.1
|
|
61
|
+
hooks:
|
|
62
|
+
- id: yamllint
|
|
63
|
+
args: ["--config-data", "{extends: default, rules: {document-start: disable, line-length: {max: 120}, truthy: disable}}"]
|
|
64
|
+
files: ^examples/.*\.ya?ml$
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Authors
|
|
2
|
+
|
|
3
|
+
## Creator & Maintainer
|
|
4
|
+
|
|
5
|
+
**Brainy Nimbus, LLC**
|
|
6
|
+
Website: [brainynimbus.io](https://brainynimbus.io)
|
|
7
|
+
Email: <info@brainynimbus.io>
|
|
8
|
+
GitHub: [@brainynimbus](https://github.com/brainynimbus)
|
|
9
|
+
|
|
10
|
+
## Contributions
|
|
11
|
+
|
|
12
|
+
WorkflowForge was created and developed by Brainy Nimbus, LLC as a robust and flexible solution for generating GitHub Actions workflows and Jenkins pipelines programmatically in Python.
|
|
13
|
+
|
|
14
|
+
### Acknowledgments
|
|
15
|
+
|
|
16
|
+
- Inspired by the need to simplify complex workflow creation
|
|
17
|
+
- Based on GitHub Actions and Jenkins best practices
|
|
18
|
+
- Designed with developer experience in mind
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to WorkflowForge will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.0] - 2025-08-29
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Promote project to stable release (1.0.0)
|
|
14
|
+
- Update classifiers to Production/Stable
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Correct GitHub Actions matrix variable references:
|
|
18
|
+
- Use `matrix.python_version` instead of `matrix.python-version`
|
|
19
|
+
- Use `matrix.node_version` instead of `matrix.node-version`
|
|
20
|
+
- Align examples and CI workflow with corrected matrix variable names
|
|
21
|
+
|
|
22
|
+
## [1.0b7] - 2025-08-27
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Regenerated examples (python_matrix) and validated with yamllint
|
|
26
|
+
- Maintenance: version bump to 1.0b7
|
|
27
|
+
## [1.0b6] - 2025-08-27
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- Removed legacy references in docs and comments
|
|
31
|
+
- Cleaned egg-info artifacts from repo
|
|
32
|
+
- Ensured examples generate YAML/Jenkinsfile without lingering images
|
|
33
|
+
## [1.0b5] - 2024-12-19
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
- Complete mypy compliance with strict type checking (51 โ 0 errors)
|
|
37
|
+
- Enterprise-grade type safety across all modules
|
|
38
|
+
- Enhanced type annotations for visualization, triggers, strategy, step modules
|
|
39
|
+
- Type guards for safe type checking in AI documentation
|
|
40
|
+
- Professional-grade code quality with comprehensive type validation
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
- All modules now use proper dict[str, Any] typing for flexible data structures
|
|
44
|
+
- Enhanced IDE support with strict type annotations
|
|
45
|
+
- Improved code reliability through comprehensive type checking
|
|
46
|
+
- Elevated code quality to enterprise standards
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
- All mypy type errors resolved across entire codebase
|
|
50
|
+
- Proper return types and function annotations implemented
|
|
51
|
+
- Type assignment issues in codebuild.py resolved
|
|
52
|
+
- Enhanced type safety in templates.py with factory functions
|
|
53
|
+
|
|
54
|
+
## [1.0b4] - 2024-12-19
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
- TRUE dogfooding: WorkflowForge generates its own GitHub Actions workflows
|
|
58
|
+
- Professional CI/CD pipeline with Python 3.11, 3.12, 3.13 test matrix
|
|
59
|
+
- Security scanning integration with Bandit and Safety tools
|
|
60
|
+
- OIDC trusted publishing for PyPI deployment (no API tokens needed)
|
|
61
|
+
- Automated TestPyPI publishing on main branch merges
|
|
62
|
+
- Complete mypy compliance with strict type checking (51 โ 0 errors)
|
|
63
|
+
- Type safety across all modules with proper annotations
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
- Enhanced publish workflow with comprehensive quality checks
|
|
67
|
+
- Integrated security scanning into CI/CD pipeline
|
|
68
|
+
- Improved project automation with self-generated workflows
|
|
69
|
+
- Migrated all type annotations to strict mypy compliance
|
|
70
|
+
- Enhanced type safety with proper dict[str, Any] annotations
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
- Removed generated diagram artifacts to maintain clean repository
|
|
74
|
+
- Eliminated image pollution in project structure
|
|
75
|
+
- Fixed all mypy type errors across visualization, triggers, strategy, step modules
|
|
76
|
+
- Corrected return types and function annotations for complete type safety
|
|
77
|
+
- Resolved codebuild.py type assignment issues with proper dict typing
|
|
78
|
+
|
|
79
|
+
## [1.0b3] - 2024-12-19
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
- Strict mypy configuration with Pydantic plugin for enhanced type safety
|
|
83
|
+
- Professional quality badges in README (mypy, black, isort, ruamel.yaml)
|
|
84
|
+
- Comprehensive pre-commit hooks including yamllint for generated files
|
|
85
|
+
- GitHub Actions publish workflow with proper ruamel.yaml formatting
|
|
86
|
+
|
|
87
|
+
### Changed
|
|
88
|
+
- **BREAKING**: Migrated from PyYAML to ruamel.yaml for superior YAML generation
|
|
89
|
+
- **BREAKING**: Removed top-level import compatibility โ use platform-specific modules only
|
|
90
|
+
- Translated all Spanish docstrings and comments to English for professional codebase
|
|
91
|
+
- Improved YAML formatting with precise indentation (mapping=2, sequence=4, offset=2)
|
|
92
|
+
- Enhanced code quality with flake8, black, and isort integration
|
|
93
|
+
- Streamlined module exports to platform-specific imports only
|
|
94
|
+
|
|
95
|
+
### Fixed
|
|
96
|
+
- All flake8 code style issues resolved (F541, E501, E712, E999)
|
|
97
|
+
- YAML validation now passes with proper indentation and formatting
|
|
98
|
+
- Boolean comparisons in tests simplified to Pythonic style
|
|
99
|
+
- Line length violations fixed across entire codebase
|
|
100
|
+
- Pre-commit hooks now pass successfully on all files
|
|
101
|
+
|
|
102
|
+
### Removed
|
|
103
|
+
- Top-level backwards compatibility imports from __init__.py
|
|
104
|
+
- Spanish language docstrings and comments
|
|
105
|
+
- PyYAML dependency in favor of ruamel.yaml
|
|
106
|
+
- npm-groovy-lint from pre-commit (simplified validation)
|
|
107
|
+
|
|
108
|
+
## [1.0b2] - 2024-12-18
|
|
109
|
+
|
|
110
|
+
### Added
|
|
111
|
+
- Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
|
|
112
|
+
- Pydantic-based models for type safety and validation
|
|
113
|
+
- AI-powered documentation generation with Ollama
|
|
114
|
+
- Pipeline visualization with Graphviz
|
|
115
|
+
- Comprehensive examples and templates
|
|
116
|
+
- Pre-commit hooks for code quality
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
- Platform-specific modules: github_actions, jenkins_platform, aws_codebuild
|
|
120
|
+
- Type-safe pipeline generation with IDE autocompletion
|
|
121
|
+
- YAML/Groovy output with validation
|
|
122
|
+
- Modular architecture with clean API design
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Brainy Nimbus, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|