workflowforge 1.0b7__tar.gz → 1.1.1__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 (60) hide show
  1. {workflowforge-1.0b7 → workflowforge-1.1.1}/.github/workflows/publish.yml +30 -4
  2. {workflowforge-1.0b7 → workflowforge-1.1.1}/.gitignore +1 -1
  3. {workflowforge-1.0b7 → workflowforge-1.1.1}/.pre-commit-config.yaml +27 -36
  4. {workflowforge-1.0b7 → workflowforge-1.1.1}/CHANGELOG.md +51 -0
  5. {workflowforge-1.0b7 → workflowforge-1.1.1}/PKG-INFO +95 -48
  6. {workflowforge-1.0b7 → workflowforge-1.1.1}/README.md +93 -46
  7. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/README.md +14 -6
  8. workflowforge-1.1.1/examples/azure_devops/hello_world.py +23 -0
  9. workflowforge-1.1.1/examples/azure_devops/hello_world.yml +13 -0
  10. workflowforge-1.1.1/examples/azure_devops/python_ci.py +21 -0
  11. workflowforge-1.1.1/examples/azure_devops/python_ci.yml +66 -0
  12. workflowforge-1.1.1/examples/azure_devops/python_ci_scan.py +23 -0
  13. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/github_actions/python_matrix.py +1 -1
  14. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/github_actions/python_matrix.yml +1 -1
  15. {workflowforge-1.0b7 → workflowforge-1.1.1}/pyproject.toml +2 -2
  16. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/__init__.py +3 -1
  17. workflowforge-1.1.1/src/workflowforge/azure_devops.py +324 -0
  18. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/templates.py +4 -4
  19. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/workflow.py +38 -0
  20. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge.egg-info/PKG-INFO +95 -48
  21. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge.egg-info/SOURCES.txt +6 -0
  22. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_templates.py +14 -0
  23. {workflowforge-1.0b7 → workflowforge-1.1.1}/.flake8 +0 -0
  24. {workflowforge-1.0b7 → workflowforge-1.1.1}/.github/pull_request_template.md +0 -0
  25. {workflowforge-1.0b7 → workflowforge-1.1.1}/AUTHORS.md +0 -0
  26. {workflowforge-1.0b7 → workflowforge-1.1.1}/LICENSE +0 -0
  27. {workflowforge-1.0b7 → workflowforge-1.1.1}/MANIFEST.in +0 -0
  28. {workflowforge-1.0b7 → workflowforge-1.1.1}/README_PRECOMMIT.md +0 -0
  29. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/codebuild/buildspec.yml +0 -0
  30. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/codebuild/node_app.py +0 -0
  31. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/github_actions/basic_ci.py +0 -0
  32. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/github_actions/basic_ci.yml +0 -0
  33. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/jenkins/Jenkinsfile +0 -0
  34. {workflowforge-1.0b7 → workflowforge-1.1.1}/examples/jenkins/maven_build.py +0 -0
  35. {workflowforge-1.0b7 → workflowforge-1.1.1}/setup.cfg +0 -0
  36. {workflowforge-1.0b7 → workflowforge-1.1.1}/setup.py +0 -0
  37. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/ai_documentation.py +0 -0
  38. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/codebuild.py +0 -0
  39. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/environment.py +0 -0
  40. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/github_actions_module.py +0 -0
  41. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/jenkins.py +0 -0
  42. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/jenkins_plugins.py +0 -0
  43. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/job.py +0 -0
  44. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/schema_validation.py +0 -0
  45. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/secrets.py +0 -0
  46. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/step.py +0 -0
  47. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/strategy.py +0 -0
  48. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/triggers.py +0 -0
  49. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/validation.py +0 -0
  50. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge/visualization.py +0 -0
  51. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge.egg-info/dependency_links.txt +0 -0
  52. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge.egg-info/requires.txt +0 -0
  53. {workflowforge-1.0b7 → workflowforge-1.1.1}/src/workflowforge.egg-info/top_level.txt +0 -0
  54. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/__init__.py +0 -0
  55. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_ai_documentation.py +0 -0
  56. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_codebuild.py +0 -0
  57. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_jenkins.py +0 -0
  58. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_secrets.py +0 -0
  59. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_validation.py +0 -0
  60. {workflowforge-1.0b7 → workflowforge-1.1.1}/tests/test_workflow.py +0 -0
@@ -10,15 +10,25 @@ on:
10
10
  release:
11
11
  types:
12
12
  - published
13
+ workflow_dispatch:
14
+ inputs:
15
+ target:
16
+ description: Publish target (testpypi|pypi)
17
+ required: true
18
+ default: testpypi
19
+ type: choice
20
+ options:
21
+ - testpypi
22
+ - pypi
13
23
  jobs:
14
24
  test:
15
25
  steps:
16
26
  - uses: actions/checkout@v4
17
27
  name: Checkout code
18
28
  - uses: actions/setup-python@v5
19
- name: Set up Python ${{ matrix.python-version }}
29
+ name: Set up Python ${{ matrix.python_version }}
20
30
  with:
21
- python-version: ${{ matrix.python-version }}
31
+ python-version: ${{ matrix.python_version }}
22
32
  - run: python -m pip install --upgrade pip
23
33
  name: Install pip
24
34
  - run: pip install -e .[dev]
@@ -67,6 +77,13 @@ jobs:
67
77
  name: Install build tools
68
78
  - run: python -m build
69
79
  name: Build package
80
+ - run: "echo \"Verifying tag matches pyproject version for release runs...\"\nPYPROJECT_VERSION=$(python - <<'PY'\n\
81
+ import tomllib\nwith open('pyproject.toml', 'rb') as f:\n data = tomllib.load(f)\nprint(data['project']['version'])\n\
82
+ PY\n)\nTAG_NAME=${GITHUB_REF_NAME#v}\necho \"pyproject version: ${PYPROJECT_VERSION}\"\necho \"tag version :
83
+ ${TAG_NAME}\"\nif [ \"${{ github.event_name }}\" = \"release\" ] && [ \"$PYPROJECT_VERSION\" != \"$TAG_NAME\" ];
84
+ then\n echo \"ERROR: Version mismatch (pyproject=$PYPROJECT_VERSION tag=$TAG_NAME). Aborting.\" >&2\n exit 1\n\
85
+ fi\n"
86
+ name: Verify tag and project version match
70
87
  - run: twine check dist/*
71
88
  name: Verify package metadata
72
89
  - uses: actions/upload-artifact@v4
@@ -89,13 +106,17 @@ jobs:
89
106
  name: Publish to TestPyPI
90
107
  with:
91
108
  repository-url: https://test.pypi.org/legacy/
109
+ skip-existing: 'true'
110
+ verify-metadata: 'true'
111
+ print-hash: 'true'
92
112
  needs: build
93
113
  environment:
94
114
  name: testpypi
95
115
  url: https://test.pypi.org/p/workflowforge
96
116
  permissions:
97
117
  id-token: write
98
- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
118
+ if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || (github.event_name == 'workflow_dispatch' &&
119
+ github.event.inputs.target == 'testpypi')
99
120
  runs-on: ubuntu-latest
100
121
  publish-pypi:
101
122
  steps:
@@ -106,11 +127,16 @@ jobs:
106
127
  path: dist/
107
128
  - uses: pypa/gh-action-pypi-publish@release/v1
108
129
  name: Publish to PyPI
130
+ with:
131
+ skip-existing: 'true'
132
+ verify-metadata: 'true'
133
+ print-hash: 'true'
109
134
  needs: build
110
135
  environment:
111
136
  name: pypi
112
137
  url: https://pypi.org/p/workflowforge
113
138
  permissions:
114
139
  id-token: write
115
- if: github.event_name == 'release'
140
+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target ==
141
+ 'pypi')
116
142
  runs-on: ubuntu-latest
@@ -199,4 +199,4 @@ create_*pipeline*.py
199
199
  *_README.md
200
200
  *workflow*.png
201
201
  *pipeline*.png
202
- *buildspec*.png
202
+ *codebuild*.png
@@ -1,32 +1,21 @@
1
1
  repos:
2
2
  # Basic file checks
3
3
  - repo: https://github.com/pre-commit/pre-commit-hooks
4
- rev: v4.6.0
4
+ rev: v5.0.0
5
5
  hooks:
6
- - id: trailing-whitespace
7
- - id: end-of-file-fixer
8
6
  - 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
7
+ - id: end-of-file-fixer
8
+ - id: trailing-whitespace
21
9
 
22
- # Import sorting
23
- - repo: https://github.com/pycqa/isort
24
- rev: 5.13.2
10
+ # Ruff (lints + fixes and formats)
11
+ - repo: https://github.com/astral-sh/ruff-pre-commit
12
+ rev: v0.12.0
25
13
  hooks:
26
- - id: isort
27
- args: ["--profile", "black"]
14
+ - id: ruff-check
15
+ args: ["--fix"]
16
+ - id: ruff-format
28
17
 
29
- # Security scanning
18
+ # Security scanning (code)
30
19
  - repo: https://github.com/PyCQA/bandit
31
20
  rev: 1.8.6
32
21
  hooks:
@@ -34,6 +23,22 @@ repos:
34
23
  args: ["-r", "src/"]
35
24
  exclude: tests/
36
25
 
26
+ # Markdown formatting
27
+ - repo: https://github.com/executablebooks/mdformat
28
+ rev: 0.7.22
29
+ hooks:
30
+ - id: mdformat
31
+ additional_dependencies:
32
+ - mdformat-mkdocs==4.0.0
33
+ - mdformat-footnote==0.1.1
34
+
35
+ # Markdown linting (auto-fix)
36
+ - repo: https://github.com/igorshubovych/markdownlint-cli
37
+ rev: v0.45.0
38
+ hooks:
39
+ - id: markdownlint-fix
40
+ args: ["--disable", "MD013,MD024"]
41
+
37
42
  # Conventional commits validation
38
43
  - repo: https://github.com/compilerla/conventional-pre-commit
39
44
  rev: v3.4.0
@@ -41,21 +46,7 @@ repos:
41
46
  - id: conventional-pre-commit
42
47
  stages: [commit-msg]
43
48
 
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
49
+ # YAML linting for generated examples
59
50
  - repo: https://github.com/adrienverge/yamllint
60
51
  rev: v1.35.1
61
52
  hooks:
@@ -5,22 +5,56 @@ All notable changes to WorkflowForge will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.0] - 2025-08-29
8
9
 
10
+ ### Added
11
+
12
+ - Azure DevOps YAML support (`workflowforge.azure_devops`): pipeline/job/steps/task modeling and YAML emitter
13
+ - Python CI template for Azure Pipelines with multi-OS matrix (Ubuntu/Windows/macOS) and pip caching via Cache@2
14
+ - Minimal Azure DevOps hello-world template and examples under `examples/azure_devops/`
15
+
16
+ ### Changed
17
+
18
+ - Exported `azure_devops` from public API for `from workflowforge import azure_devops`
19
+ - Consistent YAML indentation for Azure Pipelines emitter to improve readability
20
+
21
+ ### Security
22
+
23
+ - CI/CD remains on GitHub Actions with tag/version guard and idempotent PyPI/TestPyPI publishing (`skip-existing`)
24
+
25
+ ## [1.0.0] - 2025-08-29
26
+
27
+ ### Changed
28
+
29
+ - Promote project to stable release (1.0.0)
30
+ - Update classifiers to Production/Stable
31
+
32
+ ### Fixed
33
+
34
+ - Correct GitHub Actions matrix variable references:
35
+ - Use `matrix.python_version` instead of `matrix.python-version`
36
+ - Use `matrix.node_version` instead of `matrix.node-version`
37
+ - Align examples and CI workflow with corrected matrix variable names
9
38
 
10
39
  ## [1.0b7] - 2025-08-27
11
40
 
12
41
  ### Changed
42
+
13
43
  - Regenerated examples (python_matrix) and validated with yamllint
14
44
  - Maintenance: version bump to 1.0b7
45
+
15
46
  ## [1.0b6] - 2025-08-27
16
47
 
17
48
  ### Changed
49
+
18
50
  - Removed legacy references in docs and comments
19
51
  - Cleaned egg-info artifacts from repo
20
52
  - Ensured examples generate YAML/Jenkinsfile without lingering images
53
+
21
54
  ## [1.0b5] - 2024-12-19
22
55
 
23
56
  ### Added
57
+
24
58
  - Complete mypy compliance with strict type checking (51 → 0 errors)
25
59
  - Enterprise-grade type safety across all modules
26
60
  - Enhanced type annotations for visualization, triggers, strategy, step modules
@@ -28,12 +62,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
62
  - Professional-grade code quality with comprehensive type validation
29
63
 
30
64
  ### Changed
65
+
31
66
  - All modules now use proper dict[str, Any] typing for flexible data structures
32
67
  - Enhanced IDE support with strict type annotations
33
68
  - Improved code reliability through comprehensive type checking
34
69
  - Elevated code quality to enterprise standards
35
70
 
36
71
  ### Fixed
72
+
37
73
  - All mypy type errors resolved across entire codebase
38
74
  - Proper return types and function annotations implemented
39
75
  - Type assignment issues in codebuild.py resolved
@@ -42,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
42
78
  ## [1.0b4] - 2024-12-19
43
79
 
44
80
  ### Added
81
+
45
82
  - TRUE dogfooding: WorkflowForge generates its own GitHub Actions workflows
46
83
  - Professional CI/CD pipeline with Python 3.11, 3.12, 3.13 test matrix
47
84
  - Security scanning integration with Bandit and Safety tools
@@ -51,6 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
51
88
  - Type safety across all modules with proper annotations
52
89
 
53
90
  ### Changed
91
+
54
92
  - Enhanced publish workflow with comprehensive quality checks
55
93
  - Integrated security scanning into CI/CD pipeline
56
94
  - Improved project automation with self-generated workflows
@@ -58,6 +96,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
58
96
  - Enhanced type safety with proper dict[str, Any] annotations
59
97
 
60
98
  ### Fixed
99
+
61
100
  - Removed generated diagram artifacts to maintain clean repository
62
101
  - Eliminated image pollution in project structure
63
102
  - Fixed all mypy type errors across visualization, triggers, strategy, step modules
@@ -67,12 +106,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
67
106
  ## [1.0b3] - 2024-12-19
68
107
 
69
108
  ### Added
109
+
70
110
  - Strict mypy configuration with Pydantic plugin for enhanced type safety
71
111
  - Professional quality badges in README (mypy, black, isort, ruamel.yaml)
72
112
  - Comprehensive pre-commit hooks including yamllint for generated files
73
113
  - GitHub Actions publish workflow with proper ruamel.yaml formatting
74
114
 
75
115
  ### Changed
116
+
76
117
  - **BREAKING**: Migrated from PyYAML to ruamel.yaml for superior YAML generation
77
118
  - **BREAKING**: Removed top-level import compatibility – use platform-specific modules only
78
119
  - Translated all Spanish docstrings and comments to English for professional codebase
@@ -81,6 +122,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
81
122
  - Streamlined module exports to platform-specific imports only
82
123
 
83
124
  ### Fixed
125
+
84
126
  - All flake8 code style issues resolved (F541, E501, E712, E999)
85
127
  - YAML validation now passes with proper indentation and formatting
86
128
  - Boolean comparisons in tests simplified to Pythonic style
@@ -88,6 +130,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
130
  - Pre-commit hooks now pass successfully on all files
89
131
 
90
132
  ### Removed
133
+
91
134
  - Top-level backwards compatibility imports from __init__.py
92
135
  - Spanish language docstrings and comments
93
136
  - PyYAML dependency in favor of ruamel.yaml
@@ -96,6 +139,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
96
139
  ## [1.0b2] - 2024-12-18
97
140
 
98
141
  ### Added
142
+
99
143
  - Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
100
144
  - Pydantic-based models for type safety and validation
101
145
  - AI-powered documentation generation with Ollama
@@ -104,7 +148,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
104
148
  - Pre-commit hooks for code quality
105
149
 
106
150
  ### Features
151
+
107
152
  - Platform-specific modules: github_actions, jenkins_platform, aws_codebuild
108
153
  - Type-safe pipeline generation with IDE autocompletion
109
154
  - YAML/Groovy output with validation
110
155
  - Modular architecture with clean API design
156
+
157
+ ## [1.1.1] - 2025-08-30
158
+
159
+ ### Changed
160
+
161
+ - Version bump for TestPyPI publication and minor documentation/tooling updates
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workflowforge
3
- Version: 1.0b7
3
+ Version: 1.1.1
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
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/brainynimbus/workflowforge
9
9
  Project-URL: Documentation, https://workflowforge.brainynimbus.io
10
10
  Project-URL: Issues, https://github.com/brainynimbus/workflowforge/issues
11
11
  Keywords: github-actions,jenkins,codebuild,aws,workflow,ci-cd,automation,yaml,devops,pipeline,buildspec
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Programming Language :: Python :: 3.11
@@ -42,36 +42,14 @@ Dynamic: license-file
42
42
  [![License: MIT][license-badge]][license-url]
43
43
  [![PyPI version][pypi-badge]][pypi-url]
44
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]
45
+ [![Python Versions][python-versions-badge]][python-versions-url]
48
46
  [![Tests][tests-badge]][tests-url]
49
47
  [![pre-commit.ci status][precommit-badge]][precommit-url]
50
- [![Formatted with Black][black-badge]][black-url]
51
- [![Imports: isort][isort-badge]][isort-url]
48
+ [![Ruff][ruff-badge]][ruff-url]
49
+ [![Security][security-badge]][security-url]
50
+ [![Maintained by Brainy Nimbus][maintained-badge]][maintained-url]
52
51
 
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/
73
-
74
- A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
52
+ A robust and flexible library for creating GitHub Actions workflows, Azure DevOps pipelines, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
75
53
 
76
54
  ## ✨ Features
77
55
 
@@ -79,12 +57,13 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
79
57
  - **Type Validation**: Built on Pydantic for automatic validation
80
58
  - **IDE Support**: Full autocompletion with type hints
81
59
  - **Type Safety**: Complete mypy compliance with strict type checking
82
- - **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
83
- - **AI Documentation**: Optional AI-powered README generation with Ollama
60
+ - **Multi-Platform**: GitHub Actions, Azure DevOps, Jenkins, AWS CodeBuild
84
61
  - **Pipeline Visualization**: Automatic diagram generation with Graphviz
85
62
  - **Secrets Support**: Secure credential handling across all platforms
86
63
  - **Templates**: Pre-built workflows for common use cases
87
64
  - **Validation**: Schema validation and best practices checking
65
+ - **Optional Security Scan**: On-demand Checkov scan for generated workflows (GitHub Actions and Azure)
66
+ - **Optional AI Documentation**: AI-powered README generation with OllamaPipelines)
88
67
 
89
68
  ## 🚀 Installation
90
69
 
@@ -98,10 +77,12 @@ Check out the `examples/` directory for complete working examples:
98
77
 
99
78
  ```bash
100
79
 
101
- # Or run individual examples
80
+ # Run individual examples
102
81
  python examples/github_actions/basic_ci.py
103
82
  python examples/jenkins/maven_build.py
104
83
  python examples/codebuild/node_app.py
84
+ python examples/azure_devops/hello_world.py
85
+ python examples/azure_devops/python_ci.py
105
86
  ```
106
87
 
107
88
  This will generate actual pipeline files and diagrams using the new import structure.
@@ -133,7 +114,7 @@ print(readme)
133
114
  - ✅ **Works offline** - local AI processing
134
115
  - ✅ **Optional** - gracefully falls back to templates if Ollama not available
135
116
  - ✅ **Comprehensive** - explains purpose, triggers, jobs, secrets, setup instructions
136
- - ✅ **All platforms** - GitHub Actions, Jenkins, AWS CodeBuild
117
+ - ✅ **All platforms** - GitHub Actions, Azure DevOps, Jenkins, AWS CodeBuild
137
118
 
138
119
  ## 📊 Pipeline Visualization (Automatic)
139
120
 
@@ -165,12 +146,12 @@ workflow.generate_diagram("pdf") # PDF document
165
146
  - ✅ **Automatic generation** - every pipeline gets a visual diagram
166
147
  - ✅ **Multiple formats** - PNG, SVG, PDF, DOT
167
148
  - ✅ **Smart fallback** - DOT files if Graphviz not installed
168
- - ✅ **Platform-specific styling** - GitHub (blue), Jenkins (orange), CodeBuild (purple)
149
+ - ✅ **Platform-specific styling** - Azure DevOps (blue), GitHub (purple), Jenkins (orange), CodeBuild (toasted AWS yellow)
169
150
  - ✅ **Comprehensive view** - shows triggers, jobs, dependencies, step counts
170
151
 
171
152
  ## 📖 Basic Usage
172
153
 
173
- ### New Modular Import Style (Recommended)
154
+ ### GitHub Actions Usage
174
155
 
175
156
  ```python
176
157
  from workflowforge import github_actions
@@ -197,8 +178,6 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
197
178
  # Creates: hello.yml + hello_README.md + My_Workflow.png
198
179
  ```
199
180
 
200
-
201
-
202
181
  ### Jenkins Pipeline Usage
203
182
 
204
183
  ```python
@@ -245,6 +224,44 @@ spec.save("buildspec.yml", generate_readme=True, use_ai=True, generate_diagram=T
245
224
  # Creates: buildspec.yml + buildspec_README.md + codebuild_spec.png
246
225
  ```
247
226
 
227
+ ### Azure DevOps Usage
228
+
229
+ Generate a simple “hello” pipeline:
230
+
231
+ ```python
232
+ from workflowforge import azure_devops as ado
233
+
234
+ pipeline = ado.hello_world_template_azure(
235
+ name="Hello ADO",
236
+ message="Hello Azure DevOps from WorkflowForge!",
237
+ )
238
+ pipeline.save("azure-pipelines.yml")
239
+ ```
240
+
241
+ Or generate a Python matrix CI with caching across Ubuntu/Windows/macOS:
242
+
243
+ ```python
244
+ from workflowforge import azure_devops as ado
245
+
246
+ pipeline = ado.python_ci_template_azure(
247
+ python_versions=["3.11", "3.12", "3.13"],
248
+ os_list=["ubuntu-latest", "windows-latest", "macOS-latest"],
249
+ use_cache=True,
250
+ )
251
+ pipeline.save("azure-pipelines.yml")
252
+ ```
253
+
254
+ Optionally, scan the emitted YAML with Checkov (if installed):
255
+
256
+ ```python
257
+ from workflowforge import azure_devops as ado
258
+
259
+ pipeline = ado.python_ci_template_azure()
260
+ pipeline.save("azure-pipelines.yml", scan_with_checkov=True)
261
+ ```
262
+
263
+ See also: `examples/azure_devops/python_ci_scan.py`.
264
+
248
265
  ### AI Documentation Examples
249
266
 
250
267
  ```python
@@ -277,20 +294,21 @@ else:
277
294
  print("Using template documentation (Ollama not running)")
278
295
  ```
279
296
 
280
- ## 🆕 New Modular Import Structure
297
+ ## Modular Import Structure
281
298
 
282
- WorkflowForge now supports **platform-specific imports** with **snake_case naming** following Python conventions:
299
+ WorkflowForge supports **platform-specific imports** with **snake_case naming** following Python conventions:
283
300
 
284
301
  ### Platform Modules
285
302
 
286
303
  ```python
287
304
  # Import specific platforms
288
- from workflowforge import github_actions, jenkins_platform, aws_codebuild
305
+ from workflowforge import github_actions, jenkins_platform, aws_codebuild, azure_devops
289
306
 
290
307
  # Or use short aliases
291
308
  from workflowforge import github_actions as gh
292
309
  from workflowforge import jenkins_platform as jenkins
293
310
  from workflowforge import aws_codebuild as cb
311
+ from workflowforge import azure_devops as ado
294
312
  ```
295
313
 
296
314
  ### Benefits
@@ -298,11 +316,8 @@ from workflowforge import aws_codebuild as cb
298
316
  ✅ **Platform separation** - Clear namespace for each platform
299
317
  ✅ **Snake case naming** - Follows Python PEP 8 conventions
300
318
  ✅ **IDE autocompletion** - Better IntelliSense support
301
-
302
319
  ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
303
320
 
304
-
305
-
306
321
  ## 🔧 Advanced Examples
307
322
 
308
323
  ### Build Matrix Workflow
@@ -360,6 +375,7 @@ workflow.add_job("deploy", deploy_job)
360
375
  - `action()`, `run()` steps
361
376
  - `secret()`, `variable()`, `github_context()` for credentials
362
377
  - Build matrices, strategies, environments
378
+ - Optional Checkov scan: `workflow.save(path, scan_with_checkov=True)`
363
379
 
364
380
  **Jenkins:**
365
381
 
@@ -373,18 +389,25 @@ workflow.add_job("deploy", deploy_job)
373
389
  - `codebuild_secret()`, `codebuild_parameter()`, `codebuild_env()`
374
390
  - Runtime versions, caching, reports
375
391
 
392
+ **Azure DevOps:**
393
+
394
+ - `pipeline()`, `job()`, `strategy(matrix=...)`, `task()`, `script()`
395
+ - Build matrices, multi-OS matrix, and pip caching
396
+ - Hello world template
397
+ - Optional Checkov scan: `pipeline.save(path, scan_with_checkov=True)`
398
+
376
399
  ### AI Documentation
377
400
 
378
401
  - **Ollama Integration**: Local AI models (llama3.2, codellama, qwen2.5-coder)
379
402
  - **Automatic README**: Explains workflow purpose, triggers, jobs, setup
380
403
  - **Fallback Support**: Template-based documentation if AI unavailable
381
- - **All Platforms**: Works with GitHub Actions, Jenkins, CodeBuild
404
+ - **All Platforms**: Works with GitHub Actions, Azure DevOps, Jenkins, CodeBuild
382
405
 
383
406
  ### Pipeline Visualization
384
407
 
385
408
  - **Graphviz Integration**: Native diagram generation using DOT language
386
409
  - **Multiple Formats**: PNG, SVG, PDF, DOT files
387
- - **Platform Styling**: Color-coded diagrams (GitHub: blue, Jenkins: orange, CodeBuild: purple)
410
+ - **Platform Styling**: Color-coded diagrams (Azure DevOps: blue, GitHub: purple, Jenkins: orange, CodeBuild: toasted AWS yellow)
388
411
  - **Smart Fallback**: DOT files if Graphviz not installed, images if available
389
412
  - **Comprehensive View**: Shows triggers, jobs, dependencies, step counts, execution flow
390
413
 
@@ -393,9 +416,9 @@ workflow.add_job("deploy", deploy_job)
393
416
  Contributions are welcome! Please:
394
417
 
395
418
  1. Fork the repository
396
- 2. Create a feature branch
397
- 3. Add tests
398
- 4. Submit a pull request
419
+ 1. Create a feature branch
420
+ 1. Add tests
421
+ 1. Submit a pull request
399
422
 
400
423
  ## 👨‍💻 Author & Maintainer
401
424
 
@@ -428,3 +451,27 @@ MIT License - see [LICENSE](LICENSE) for details.
428
451
  - [CodeBuild Documentation](https://docs.aws.amazon.com/codebuild/)
429
452
  - [BuildSpec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
430
453
  - [CodeBuild Samples](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html)
454
+
455
+ **Azure DevOps Pipelines:**
456
+
457
+ - [YAML schema reference](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema)
458
+ - [Customize Python pipelines](https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/customize-python)
459
+
460
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
461
+ [license-url]: https://opensource.org/licenses/MIT
462
+ [maintained-badge]: https://img.shields.io/badge/maintained%20by-Brainy%20Nimbus-8A2BE2?style=flat
463
+ [maintained-url]: https://brainynimbus.io/
464
+ [precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
465
+ [precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
466
+ [pypi-badge]: https://badge.fury.io/py/workflowforge.svg
467
+ [pypi-url]: https://badge.fury.io/py/workflowforge
468
+ [python-versions-badge]: https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-blue
469
+ [python-versions-url]: https://www.python.org/
470
+ [ruff-badge]: https://img.shields.io/badge/linting-ruff-46A3FF?logo=ruff&logoColor=white
471
+ [ruff-url]: https://github.com/astral-sh/ruff
472
+ [security-badge]: https://img.shields.io/badge/security-bandit-brightgreen?style=flat
473
+ [security-url]: https://bandit.readthedocs.io/
474
+ [testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
475
+ [testpypi-url]: https://test.pypi.org/project/workflowforge/
476
+ [tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
477
+ [tests-url]: https://github.com/brainynimbus/workflowforge/actions