36 Commits
Author SHA1 Message Date
7e37ddb36c feat: Add no_parse filter to allow the system to skip parsing a tag (#8)
* Initial plan

* Implement no_parse filter syntax for preventing recursive parsing

Co-authored-by: ntindle <[email protected]>

* Add comprehensive test cases for self-closing tags and unmatched tags with no_parse filter

Co-authored-by: ntindle <[email protected]>

* Merge best features from both no_parse filter implementations

Co-authored-by: ntindle <[email protected]>

* Apply Black code formatting to fix style issues

Co-authored-by: ntindle <[email protected]>

* fix: move re import to module level, improve docstrings

- Move 'import re' from inline in method to module level
- Add docstring explaining underscore→space reversal in _reconstruct_original_tag
- Clarify test docstring for token fallback whitespace behavior

* fix: update self-closing tag tests for new text-outside-tags validation

Tests now expect ValueError when self-closing tags result in text outside
of proper tags, aligning with PR #15's stricter validation.

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: ntindle <[email protected]>
Co-authored-by: Nick Tindle <[email protected]>
2026-02-12 16:22:58 -06:00
Nicholas Tindle 9eaa339a2c Bump version from 0.1.3 to 0.1.4 v0.1.4 2025-12-26 09:50:25 -06:00
Nicholas Tindle d17f6ecc76 Merge pull request #15 from Significant-Gravitas/cursor/fix-parser-error-for-text-outside-root-gpt-5.1-codex-b3b9 2025-12-09 11:58:07 -06:00
Cursor Agentandnicholas.tindle c5e0cac7ae Add validation for text outside of tags
Co-authored-by: nicholas.tindle <[email protected]>
2025-12-02 18:51:32 +00:00
Nicholas Tindle 17da26897e Merge pull request #10 from Significant-Gravitas/copilot/fix-9 2025-08-21 15:37:58 -05:00
copilot-swe-agent[bot]andntindle d21156d60b Remove specific timing measurements and test counts from copilot instructions
Co-authored-by: ntindle <[email protected]>
2025-08-21 20:34:26 +00:00
copilot-swe-agent[bot]andntindle 6c68784e71 Add comprehensive GitHub Copilot instructions for GravitasML repository
Co-authored-by: ntindle <[email protected]>
2025-08-21 18:50:11 +00:00
copilot-swe-agent[bot] d055ced69a Initial plan 2025-08-21 18:41:53 +00:00
Nicholas Tindle 3a3b677597 missed comment from moving each repo its own security policy 2025-08-07 13:26:57 -05:00
Nicholas Tindle f07250ba47 Merge pull request #6 from Significant-Gravitas/alert-autofix-1 2025-08-07 13:22:48 -05:00
Nicholas TindleandCopilot Autofix powered by AI ed91c30563 Potential fix for code scanning alert no. 1: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-07 13:21:14 -05:00
Nicholas Tindle 1e55128aa2 Ensure all repos have their own security.md rather than relying on AutoGPT's 2025-08-07 13:17:39 -05:00
Toran Bruce Richards 0ce82bb703 Merge pull request #5 from Significant-Gravitas/Torantulino-patch-1
Update README.md
2025-07-24 14:59:59 +01:00
Toran Bruce Richards 9a94322e48 Update README.md 2025-07-24 13:43:20 +01:00
Reinier van der Leer bcc90f93c5 add Python 3.10 to CI/CD pipelines 2025-02-12 02:31:48 +01:00
Reinier van der Leer 074be41f34 Loosen Python runtime version requirement
to avoid issues in other projects that have gravitasml as a dependency
v0.1.3
2025-02-12 02:24:09 +01:00
Nicholas Tindle 950d168728 fix: bump version v0.1.2 2025-02-08 09:15:37 -06:00
Nicholas Tindle 06b3204d75 deps: update all pkg deps v0.1.1 2025-02-07 11:22:35 -06:00
Nicholas Tindle bc3586a76d fix: relock 2025-02-07 11:15:19 -06:00
Muhammad Safi 61699b76ba Fixed the conflicting dependencies with AutoGPT 2025-02-06 23:39:24 -08:00
Nicholas Tindle 28a0705117 ci: Update CI configuration file
- Add permissions for read access to contents, write access to deployments, and read access to statuses
- Update Python version in the matrix to 3.12
v0.1.0
2023-11-10 13:10:05 -06:00
Nicholas Tindle e408da12e0 ci: Update GitHub Actions workflow to fetch full Git history
- Added `fetch-depth: 0` option to `actions/checkout` step
- This ensures that the full Git history is fetched during CI/CD workflow
2023-11-10 12:56:30 -06:00
Nicholas Tindle af0ee85980 ci: Update CI/CD workflow for publishing to PyPI
- Added environment declaration for release
- Added permissions for trusted publishing
- Updated step for publishing package distributions to PyPI using a GitHub action
2023-11-10 12:43:48 -06:00
Nicholas Tindle fe14330e71 ci: Updated release pipeline
- Add release event trigger to CI/CD workflow
- Changed condition for publish job to only run on release event with 'published' action
2023-11-10 12:29:08 -06:00
Nicholas Tindle 4f6b9664c8 refactor: Spread range of valid pydantic versions and clean up CI/CD
- Moved from a specific pydantic version to support both version 1 and version 2
- Removed unnecessary Python versions from CI/CD configuration
2023-11-09 15:07:58 -06:00
Nicholas Tindle dec14c7725 ci: Update versions of checkout
- Update the versions of actions/checkout to v4 in the CI/CD configuration file. This ensures that the latest version of the action is used for checking out the repository.
- Also update the versions of actions/setup-python to v4 in the CI/CD configuration file. This ensures that the latest version of the action is used for setting up Python.
- The matrix configuration is updated to use Python versions 3.11 and 3.12 for the jobs.
- With these changes, the CI/CD workflow is now using the latest versions of the actions for checking out the repository and setting up Python, improving the reliability and efficiency of the workflow.
2023-11-09 14:42:04 -06:00
Nicholas Tindle f6935e014f ci: Update Python version in CI/CD workflow
- Bumped the minimum supported version of Python from 3.8 to 3.11 and 3.12 in the CI/CD workflow file. This aligns with the project's updated requirements.
2023-11-09 14:35:01 -06:00
Nicholas Tindle ee8d3b2781 ci: Fixed and updated CICD pipeline
- Fixed the Python version in the build, lint, test, and publish jobs
- Added a strategy matrix for the Python version
- Added a new step to build the project using Poetry
- Added a new step to lint the code using black
- Updated the test step to run pytest with verbose and capture mode
- Added a new step to set up Python and install Poetry in the publish job
- Updated the publish job to use the build and publish commands of Poetry
2023-11-09 14:34:15 -06:00
Nicholas Tindle fdb3247bc9 feat: Add black code formatter
- Added black version 23.11.0 for code formatting
- Updated pyproject.toml file to include black as a dependency
- Added linter for code quality checks
2023-11-09 14:32:58 -06:00
Nicholas Tindle 828db10cc0 Create CICD 2023-11-09 14:22:14 -06:00
Nicholas Tindle db856e0fd8 test: Add tests for pydantic
- Add tests to test_parser.py to test pydantic functionality
- Add tests for parsing and converting to pydantic models
- Add tests for nested tags and nested pydantic models
- Add test for double duplicate tags nested duplicate
2023-11-09 14:14:28 -06:00
Nicholas Tindle b2213b7702 feat: Add vscode config
- Add `.vscode/settings.json` configuration file for vscode
- Enable unittest in python.testing.unittestEnabled
- Set unittestArgs to run tests in the `./tests` directory with `test_*.py` pattern
- Disable pytest in python.testing.pytestEnabled
2023-11-08 23:19:06 -06:00
Nicholas Tindle 695a0a261c feat: Implement tokenizer and parser for HTML-like markup language
- Create Token class to represent individual tokens in the markup language
- Create tokenize function to split the markup into a list of tokens
- Implement Parser class to parse the tokens and generate a dictionary or list
- Add support for nested tags and multiple root tags
- Handle whitespace and escaped characters correctly
- Write unit tests to verify the functionality of the tokenizer and parser

This commit implements the tokenizer and parser for an HTML-like markup language. It includes the following changes:
- Added token.py and parser.py to the gravitasml package
- Implemented the Token class with attributes for type, value, line_num, and column
- Implemented the tokenize function to split the markup into a list of tokens based on regular expressions
- Implemented the Parser class with methods for parsing the tokens and generating a dictionary or list
- Added support for nested tags and multiple root tags in the parsed output
- Handled whitespace and escaped characters correctly in the tokenization process
- Created unit tests for both the tokenizer and parser to verify their functionality

This implementation allows for the parsing of HTML-like markup into a structured dictionary or list, providing the foundation for further processing and manipulation of the markup data.
2023-11-08 23:18:30 -06:00
Nicholas Tindle 45508d2f86 docs: Add README.md file
- Adds README.md file with details about the GravitasML library
- Provides information about features, installation, quick start, limitations, documentation, tests, contributing, and license
2023-11-08 23:16:20 -06:00
Nicholas Tindle 406b8fbd62 feat: Add poetry.lock and pyproject.toml
- Added poetry.lock and pyproject.toml files for package setup.
2023-11-08 23:14:49 -06:00
Nicholas Tindle fceb61dc5f feat: Add .gitignore and LICENSE files
- Added .gitignore file to ignore various files and directories
- Added MIT License file to the repository

Context: general repo setup
2023-11-08 23:14:18 -06:00