workflowforge 1.0b4__tar.gz → 1.0b7__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.
Files changed (62) hide show
  1. workflowforge-1.0b7/.github/pull_request_template.md +92 -0
  2. workflowforge-1.0b7/.github/workflows/publish.yml +116 -0
  3. {workflowforge-1.0b4 → workflowforge-1.0b7}/.pre-commit-config.yaml +14 -6
  4. workflowforge-1.0b7/CHANGELOG.md +110 -0
  5. {workflowforge-1.0b4 → workflowforge-1.0b7}/PKG-INFO +40 -43
  6. {workflowforge-1.0b4 → workflowforge-1.0b7}/README.md +38 -41
  7. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/README.md +1 -6
  8. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/codebuild/buildspec.yml +5 -5
  9. workflowforge-1.0b7/examples/github_actions/basic_ci.yml +14 -0
  10. workflowforge-1.0b7/examples/github_actions/python_matrix.yml +28 -0
  11. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/jenkins/Jenkinsfile +3 -3
  12. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/jenkins/maven_build.py +3 -3
  13. {workflowforge-1.0b4 → workflowforge-1.0b7}/pyproject.toml +15 -13
  14. workflowforge-1.0b7/src/workflowforge/__init__.py +18 -0
  15. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/ai_documentation.py +11 -10
  16. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/codebuild.py +20 -9
  17. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/environment.py +4 -4
  18. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/github_actions_module.py +0 -1
  19. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/jenkins.py +5 -3
  20. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/jenkins_plugins.py +5 -4
  21. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/job.py +11 -11
  22. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/schema_validation.py +11 -10
  23. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/secrets.py +0 -2
  24. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/step.py +25 -30
  25. workflowforge-1.0b7/src/workflowforge/strategy.py +59 -0
  26. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/templates.py +3 -3
  27. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/triggers.py +40 -43
  28. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/validation.py +6 -4
  29. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/visualization.py +18 -14
  30. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge/workflow.py +21 -12
  31. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge.egg-info/PKG-INFO +40 -43
  32. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge.egg-info/SOURCES.txt +1 -1
  33. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge.egg-info/requires.txt +1 -1
  34. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_ai_documentation.py +0 -2
  35. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_codebuild.py +0 -1
  36. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_jenkins.py +1 -3
  37. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_secrets.py +1 -3
  38. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_templates.py +5 -2
  39. workflowforge-1.0b7/tests/test_validation.py +30 -0
  40. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/test_workflow.py +9 -14
  41. workflowforge-1.0b4/.github/workflows/publish.yml +0 -123
  42. workflowforge-1.0b4/CHANGELOG.md +0 -46
  43. workflowforge-1.0b4/codebuild_spec.png +0 -0
  44. workflowforge-1.0b4/examples/github_actions/basic_ci.yml +0 -14
  45. workflowforge-1.0b4/examples/github_actions/python_matrix.yml +0 -28
  46. workflowforge-1.0b4/src/workflowforge/__init__.py +0 -203
  47. workflowforge-1.0b4/src/workflowforge/strategy.py +0 -59
  48. workflowforge-1.0b4/tests/test_validation.py +0 -38
  49. {workflowforge-1.0b4 → workflowforge-1.0b7}/.flake8 +0 -0
  50. {workflowforge-1.0b4 → workflowforge-1.0b7}/.gitignore +0 -0
  51. {workflowforge-1.0b4 → workflowforge-1.0b7}/AUTHORS.md +0 -0
  52. {workflowforge-1.0b4 → workflowforge-1.0b7}/LICENSE +0 -0
  53. {workflowforge-1.0b4 → workflowforge-1.0b7}/MANIFEST.in +0 -0
  54. {workflowforge-1.0b4 → workflowforge-1.0b7}/README_PRECOMMIT.md +0 -0
  55. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/codebuild/node_app.py +0 -0
  56. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/github_actions/basic_ci.py +0 -0
  57. {workflowforge-1.0b4 → workflowforge-1.0b7}/examples/github_actions/python_matrix.py +0 -0
  58. {workflowforge-1.0b4 → workflowforge-1.0b7}/setup.cfg +0 -0
  59. {workflowforge-1.0b4 → workflowforge-1.0b7}/setup.py +0 -0
  60. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge.egg-info/dependency_links.txt +0 -0
  61. {workflowforge-1.0b4 → workflowforge-1.0b7}/src/workflowforge.egg-info/top_level.txt +0 -0
  62. {workflowforge-1.0b4 → workflowforge-1.0b7}/tests/__init__.py +0 -0
@@ -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
@@ -41,12 +41,12 @@ repos:
41
41
  - id: conventional-pre-commit
42
42
  stages: [commit-msg]
43
43
 
44
- # Python syntax and style (temporarily disabled)
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"]
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
50
 
51
51
  # Upgrade Python syntax
52
52
  - repo: https://github.com/asottile/pyupgrade
@@ -54,3 +54,11 @@ repos:
54
54
  hooks:
55
55
  - id: pyupgrade
56
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,110 @@
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.0b7] - 2025-08-27
11
+
12
+ ### Changed
13
+ - Regenerated examples (python_matrix) and validated with yamllint
14
+ - Maintenance: version bump to 1.0b7
15
+ ## [1.0b6] - 2025-08-27
16
+
17
+ ### Changed
18
+ - Removed legacy references in docs and comments
19
+ - Cleaned egg-info artifacts from repo
20
+ - Ensured examples generate YAML/Jenkinsfile without lingering images
21
+ ## [1.0b5] - 2024-12-19
22
+
23
+ ### Added
24
+ - Complete mypy compliance with strict type checking (51 → 0 errors)
25
+ - Enterprise-grade type safety across all modules
26
+ - Enhanced type annotations for visualization, triggers, strategy, step modules
27
+ - Type guards for safe type checking in AI documentation
28
+ - Professional-grade code quality with comprehensive type validation
29
+
30
+ ### Changed
31
+ - All modules now use proper dict[str, Any] typing for flexible data structures
32
+ - Enhanced IDE support with strict type annotations
33
+ - Improved code reliability through comprehensive type checking
34
+ - Elevated code quality to enterprise standards
35
+
36
+ ### Fixed
37
+ - All mypy type errors resolved across entire codebase
38
+ - Proper return types and function annotations implemented
39
+ - Type assignment issues in codebuild.py resolved
40
+ - Enhanced type safety in templates.py with factory functions
41
+
42
+ ## [1.0b4] - 2024-12-19
43
+
44
+ ### Added
45
+ - TRUE dogfooding: WorkflowForge generates its own GitHub Actions workflows
46
+ - Professional CI/CD pipeline with Python 3.11, 3.12, 3.13 test matrix
47
+ - Security scanning integration with Bandit and Safety tools
48
+ - OIDC trusted publishing for PyPI deployment (no API tokens needed)
49
+ - Automated TestPyPI publishing on main branch merges
50
+ - Complete mypy compliance with strict type checking (51 → 0 errors)
51
+ - Type safety across all modules with proper annotations
52
+
53
+ ### Changed
54
+ - Enhanced publish workflow with comprehensive quality checks
55
+ - Integrated security scanning into CI/CD pipeline
56
+ - Improved project automation with self-generated workflows
57
+ - Migrated all type annotations to strict mypy compliance
58
+ - Enhanced type safety with proper dict[str, Any] annotations
59
+
60
+ ### Fixed
61
+ - Removed generated diagram artifacts to maintain clean repository
62
+ - Eliminated image pollution in project structure
63
+ - Fixed all mypy type errors across visualization, triggers, strategy, step modules
64
+ - Corrected return types and function annotations for complete type safety
65
+ - Resolved codebuild.py type assignment issues with proper dict typing
66
+
67
+ ## [1.0b3] - 2024-12-19
68
+
69
+ ### Added
70
+ - Strict mypy configuration with Pydantic plugin for enhanced type safety
71
+ - Professional quality badges in README (mypy, black, isort, ruamel.yaml)
72
+ - Comprehensive pre-commit hooks including yamllint for generated files
73
+ - GitHub Actions publish workflow with proper ruamel.yaml formatting
74
+
75
+ ### Changed
76
+ - **BREAKING**: Migrated from PyYAML to ruamel.yaml for superior YAML generation
77
+ - **BREAKING**: Removed top-level import compatibility – use platform-specific modules only
78
+ - Translated all Spanish docstrings and comments to English for professional codebase
79
+ - Improved YAML formatting with precise indentation (mapping=2, sequence=4, offset=2)
80
+ - Enhanced code quality with flake8, black, and isort integration
81
+ - Streamlined module exports to platform-specific imports only
82
+
83
+ ### Fixed
84
+ - All flake8 code style issues resolved (F541, E501, E712, E999)
85
+ - YAML validation now passes with proper indentation and formatting
86
+ - Boolean comparisons in tests simplified to Pythonic style
87
+ - Line length violations fixed across entire codebase
88
+ - Pre-commit hooks now pass successfully on all files
89
+
90
+ ### Removed
91
+ - Top-level backwards compatibility imports from __init__.py
92
+ - Spanish language docstrings and comments
93
+ - PyYAML dependency in favor of ruamel.yaml
94
+ - npm-groovy-lint from pre-commit (simplified validation)
95
+
96
+ ## [1.0b2] - 2024-12-18
97
+
98
+ ### Added
99
+ - Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
100
+ - Pydantic-based models for type safety and validation
101
+ - AI-powered documentation generation with Ollama
102
+ - Pipeline visualization with Graphviz
103
+ - Comprehensive examples and templates
104
+ - Pre-commit hooks for code quality
105
+
106
+ ### Features
107
+ - Platform-specific modules: github_actions, jenkins_platform, aws_codebuild
108
+ - Type-safe pipeline generation with IDE autocompletion
109
+ - YAML/Groovy output with validation
110
+ - Modular architecture with clean API design
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workflowforge
3
- Version: 1.0b4
3
+ Version: 1.0b7
4
4
  Summary: A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python
5
5
  Author-email: "Brainy Nimbus, LLC" <info@brainynimbus.io>
6
6
  License: MIT
@@ -21,7 +21,7 @@ Requires-Python: >=3.11
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: AUTHORS.md
24
- Requires-Dist: pyyaml>=6.0
24
+ Requires-Dist: ruamel.yaml>=0.18.0
25
25
  Requires-Dist: pydantic>=2.0.0
26
26
  Requires-Dist: typing-extensions>=4.0.0
27
27
  Requires-Dist: requests>=2.25.0
@@ -37,14 +37,39 @@ Dynamic: license-file
37
37
 
38
38
  # WorkflowForge 🔨
39
39
 
40
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
41
- [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
42
- [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
43
- [![Python 3.13](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3130/)
44
- [![PyPI version](https://badge.fury.io/py/workflowforge.svg)](https://badge.fury.io/py/workflowforge)
45
- [![Downloads](https://pepy.tech/badge/workflowforge)](https://pepy.tech/project/workflowforge)
46
- [![Test PyPI](https://img.shields.io/badge/Test%20PyPI-published-green)](https://test.pypi.org/project/workflowforge/)
47
- [![Tests](https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg)](https://github.com/brainynimbus/workflowforge/actions)
40
+ ## 📊 Project Status
41
+
42
+ [![License: MIT][license-badge]][license-url]
43
+ [![PyPI version][pypi-badge]][pypi-url]
44
+ [![Test PyPI][testpypi-badge]][testpypi-url]
45
+ [![Python 3.11][python311-badge]][python311-url]
46
+ [![Python 3.12][python312-badge]][python312-url]
47
+ [![Python 3.13][python313-badge]][python313-url]
48
+ [![Tests][tests-badge]][tests-url]
49
+ [![pre-commit.ci status][precommit-badge]][precommit-url]
50
+ [![Formatted with Black][black-badge]][black-url]
51
+ [![Imports: isort][isort-badge]][isort-url]
52
+
53
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
54
+ [license-url]: https://opensource.org/licenses/MIT
55
+ [pypi-badge]: https://badge.fury.io/py/workflowforge.svg
56
+ [pypi-url]: https://badge.fury.io/py/workflowforge
57
+ [testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
58
+ [testpypi-url]: https://test.pypi.org/project/workflowforge/
59
+ [python311-badge]: https://img.shields.io/badge/python-3.11-blue.svg
60
+ [python311-url]: https://www.python.org/downloads/release/python-3110/
61
+ [python312-badge]: https://img.shields.io/badge/python-3.12-blue.svg
62
+ [python312-url]: https://www.python.org/downloads/release/python-3120/
63
+ [python313-badge]: https://img.shields.io/badge/python-3.13-blue.svg
64
+ [python313-url]: https://www.python.org/downloads/release/python-3130/
65
+ [tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
66
+ [tests-url]: https://github.com/brainynimbus/workflowforge/actions
67
+ [precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
68
+ [precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
69
+ [black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
70
+ [black-url]: https://github.com/psf/black
71
+ [isort-badge]: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
72
+ [isort-url]: https://pycqa.github.io/isort/
48
73
 
49
74
  A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
50
75
 
@@ -53,6 +78,7 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
53
78
  - **Intuitive API**: Fluent and easy-to-use syntax
54
79
  - **Type Validation**: Built on Pydantic for automatic validation
55
80
  - **IDE Support**: Full autocompletion with type hints
81
+ - **Type Safety**: Complete mypy compliance with strict type checking
56
82
  - **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
57
83
  - **AI Documentation**: Optional AI-powered README generation with Ollama
58
84
  - **Pipeline Visualization**: Automatic diagram generation with Graphviz
@@ -71,8 +97,6 @@ pip install workflowforge
71
97
  Check out the `examples/` directory for complete working examples:
72
98
 
73
99
  ```bash
74
- # Run all examples to see the new modular structure in action
75
- python examples/run_all_examples.py
76
100
 
77
101
  # Or run individual examples
78
102
  python examples/github_actions/basic_ci.py
@@ -173,21 +197,7 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
173
197
  # Creates: hello.yml + hello_README.md + My_Workflow.png
174
198
  ```
175
199
 
176
- ### Legacy Import Style (Still Supported)
177
200
 
178
- ```python
179
- from workflowforge import (
180
- Workflow, Job,
181
- action, run,
182
- on_push, on_pull_request
183
- )
184
-
185
- # Create workflow (PascalCase classes)
186
- workflow = Workflow(
187
- name="My Workflow",
188
- on=on_push(branches=["main"])
189
- )
190
- ```
191
201
 
192
202
  ### Jenkins Pipeline Usage
193
203
 
@@ -288,26 +298,10 @@ from workflowforge import aws_codebuild as cb
288
298
  ✅ **Platform separation** - Clear namespace for each platform
289
299
  ✅ **Snake case naming** - Follows Python PEP 8 conventions
290
300
  ✅ **IDE autocompletion** - Better IntelliSense support
291
- ✅ **Backwards compatibility** - Old imports still work
292
- ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
293
-
294
- ### Migration Guide
295
-
296
- ```python
297
- # Old style (still works)
298
- from workflowforge import Workflow, Job, action, run, on_push
299
301
 
300
- workflow = Workflow(name="CI", on=on_push())
301
- job = Job(runs_on="ubuntu-latest")
302
- job.add_step(action("actions/checkout@v4"))
302
+ ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
303
303
 
304
- # New style (recommended)
305
- from workflowforge import github_actions as gh
306
304
 
307
- workflow = gh.workflow(name="CI", on=gh.on_push())
308
- job = gh.job(runs_on="ubuntu-latest")
309
- job.add_step(gh.action("actions/checkout@v4"))
310
- ```
311
305
 
312
306
  ## 🔧 Advanced Examples
313
307
 
@@ -418,16 +412,19 @@ MIT License - see [LICENSE](LICENSE) for details.
418
412
  ## 🔗 Links
419
413
 
420
414
  **GitHub Actions:**
415
+
421
416
  - [GitHub Actions Documentation](https://docs.github.com/en/actions)
422
417
  - [Actions Marketplace](https://github.com/marketplace?type=actions)
423
418
  - [Workflow Syntax](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions)
424
419
 
425
420
  **Jenkins:**
421
+
426
422
  - [Jenkins Documentation](https://www.jenkins.io/doc/)
427
423
  - [Pipeline Syntax](https://www.jenkins.io/doc/book/pipeline/syntax/)
428
424
  - [Jenkins Plugins](https://plugins.jenkins.io/)
429
425
 
430
426
  **AWS CodeBuild:**
427
+
431
428
  - [CodeBuild Documentation](https://docs.aws.amazon.com/codebuild/)
432
429
  - [BuildSpec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
433
430
  - [CodeBuild Samples](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html)
@@ -1,13 +1,38 @@
1
1
  # WorkflowForge 🔨
2
2
 
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
5
- [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
6
- [![Python 3.13](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3130/)
7
- [![PyPI version](https://badge.fury.io/py/workflowforge.svg)](https://badge.fury.io/py/workflowforge)
8
- [![Downloads](https://pepy.tech/badge/workflowforge)](https://pepy.tech/project/workflowforge)
9
- [![Test PyPI](https://img.shields.io/badge/Test%20PyPI-published-green)](https://test.pypi.org/project/workflowforge/)
10
- [![Tests](https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg)](https://github.com/brainynimbus/workflowforge/actions)
3
+ ## 📊 Project Status
4
+
5
+ [![License: MIT][license-badge]][license-url]
6
+ [![PyPI version][pypi-badge]][pypi-url]
7
+ [![Test PyPI][testpypi-badge]][testpypi-url]
8
+ [![Python 3.11][python311-badge]][python311-url]
9
+ [![Python 3.12][python312-badge]][python312-url]
10
+ [![Python 3.13][python313-badge]][python313-url]
11
+ [![Tests][tests-badge]][tests-url]
12
+ [![pre-commit.ci status][precommit-badge]][precommit-url]
13
+ [![Formatted with Black][black-badge]][black-url]
14
+ [![Imports: isort][isort-badge]][isort-url]
15
+
16
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
17
+ [license-url]: https://opensource.org/licenses/MIT
18
+ [pypi-badge]: https://badge.fury.io/py/workflowforge.svg
19
+ [pypi-url]: https://badge.fury.io/py/workflowforge
20
+ [testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
21
+ [testpypi-url]: https://test.pypi.org/project/workflowforge/
22
+ [python311-badge]: https://img.shields.io/badge/python-3.11-blue.svg
23
+ [python311-url]: https://www.python.org/downloads/release/python-3110/
24
+ [python312-badge]: https://img.shields.io/badge/python-3.12-blue.svg
25
+ [python312-url]: https://www.python.org/downloads/release/python-3120/
26
+ [python313-badge]: https://img.shields.io/badge/python-3.13-blue.svg
27
+ [python313-url]: https://www.python.org/downloads/release/python-3130/
28
+ [tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
29
+ [tests-url]: https://github.com/brainynimbus/workflowforge/actions
30
+ [precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
31
+ [precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
32
+ [black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
33
+ [black-url]: https://github.com/psf/black
34
+ [isort-badge]: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
35
+ [isort-url]: https://pycqa.github.io/isort/
11
36
 
12
37
  A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
13
38
 
@@ -16,6 +41,7 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
16
41
  - **Intuitive API**: Fluent and easy-to-use syntax
17
42
  - **Type Validation**: Built on Pydantic for automatic validation
18
43
  - **IDE Support**: Full autocompletion with type hints
44
+ - **Type Safety**: Complete mypy compliance with strict type checking
19
45
  - **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
20
46
  - **AI Documentation**: Optional AI-powered README generation with Ollama
21
47
  - **Pipeline Visualization**: Automatic diagram generation with Graphviz
@@ -34,8 +60,6 @@ pip install workflowforge
34
60
  Check out the `examples/` directory for complete working examples:
35
61
 
36
62
  ```bash
37
- # Run all examples to see the new modular structure in action
38
- python examples/run_all_examples.py
39
63
 
40
64
  # Or run individual examples
41
65
  python examples/github_actions/basic_ci.py
@@ -136,21 +160,7 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
136
160
  # Creates: hello.yml + hello_README.md + My_Workflow.png
137
161
  ```
138
162
 
139
- ### Legacy Import Style (Still Supported)
140
163
 
141
- ```python
142
- from workflowforge import (
143
- Workflow, Job,
144
- action, run,
145
- on_push, on_pull_request
146
- )
147
-
148
- # Create workflow (PascalCase classes)
149
- workflow = Workflow(
150
- name="My Workflow",
151
- on=on_push(branches=["main"])
152
- )
153
- ```
154
164
 
155
165
  ### Jenkins Pipeline Usage
156
166
 
@@ -251,26 +261,10 @@ from workflowforge import aws_codebuild as cb
251
261
  ✅ **Platform separation** - Clear namespace for each platform
252
262
  ✅ **Snake case naming** - Follows Python PEP 8 conventions
253
263
  ✅ **IDE autocompletion** - Better IntelliSense support
254
- ✅ **Backwards compatibility** - Old imports still work
255
- ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
256
-
257
- ### Migration Guide
258
-
259
- ```python
260
- # Old style (still works)
261
- from workflowforge import Workflow, Job, action, run, on_push
262
264
 
263
- workflow = Workflow(name="CI", on=on_push())
264
- job = Job(runs_on="ubuntu-latest")
265
- job.add_step(action("actions/checkout@v4"))
265
+ ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
266
266
 
267
- # New style (recommended)
268
- from workflowforge import github_actions as gh
269
267
 
270
- workflow = gh.workflow(name="CI", on=gh.on_push())
271
- job = gh.job(runs_on="ubuntu-latest")
272
- job.add_step(gh.action("actions/checkout@v4"))
273
- ```
274
268
 
275
269
  ## 🔧 Advanced Examples
276
270
 
@@ -381,16 +375,19 @@ MIT License - see [LICENSE](LICENSE) for details.
381
375
  ## 🔗 Links
382
376
 
383
377
  **GitHub Actions:**
378
+
384
379
  - [GitHub Actions Documentation](https://docs.github.com/en/actions)
385
380
  - [Actions Marketplace](https://github.com/marketplace?type=actions)
386
381
  - [Workflow Syntax](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions)
387
382
 
388
383
  **Jenkins:**
384
+
389
385
  - [Jenkins Documentation](https://www.jenkins.io/doc/)
390
386
  - [Pipeline Syntax](https://www.jenkins.io/doc/book/pipeline/syntax/)
391
387
  - [Jenkins Plugins](https://plugins.jenkins.io/)
392
388
 
393
389
  **AWS CodeBuild:**
390
+
394
391
  - [CodeBuild Documentation](https://docs.aws.amazon.com/codebuild/)
395
392
  - [BuildSpec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
396
393
  - [CodeBuild Samples](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html)
@@ -4,13 +4,9 @@ This directory contains examples demonstrating the new modular import structure
4
4
 
5
5
  ## New Import Style
6
6
 
7
- Instead of importing everything from the main module:
7
+ Use the modular imports for a clear, type-safe API:
8
8
 
9
9
  ```python
10
- # Old style (still works)
11
- from workflowforge import Workflow, Job, action, run, on_push
12
-
13
- # New modular style (recommended)
14
10
  from workflowforge import github_actions
15
11
 
16
12
  workflow = github_actions.workflow(name="CI")
@@ -54,5 +50,4 @@ python examples/run_all_examples.py
54
50
  ✅ **Platform separation** - Clear namespace for each platform
55
51
  ✅ **Snake case naming** - Follows Python conventions
56
52
  ✅ **IDE autocompletion** - Better IntelliSense support
57
- ✅ **Backwards compatibility** - Old imports still work
58
53
  ✅ **Shorter aliases** - `gh = github_actions` for convenience
@@ -6,14 +6,14 @@ env:
6
6
  phases:
7
7
  install:
8
8
  commands:
9
- - npm install
9
+ - npm install
10
10
  pre_build:
11
11
  commands:
12
- - npm run lint
13
- - npm test
12
+ - npm run lint
13
+ - npm test
14
14
  build:
15
15
  commands:
16
- - npm run build
16
+ - npm run build
17
17
  artifacts:
18
18
  files:
19
- - dist/**/*
19
+ - dist/**/*