Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: techtonik/python-patch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: AstroAir/python-patch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 77 files changed
  • 2 contributors

Commits on Aug 2, 2025

  1. Add comprehensive unit tests for logging, parser, and utility functions

    - Implemented unit tests for logging utilities including logger configuration, NullHandler, StreamHandler, and logging functions (debug, info, warning).
    - Added tests for parser functionality covering wrapumerate, type detection, and filename normalization.
    - Created tests for utility functions focusing on cross-platform path handling (xisabs, xnormpath, xstrip, pathstrip).
    - Included integration tests to ensure consistent behavior across different modules.
    - Enhanced error handling tests for utility functions to cover edge cases and invalid inputs.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    c712aeb View commit details
    Browse the repository at this point in the history
  2. Refactor logging and parser utilities for type hinting and improved c…

    …ompatibility
    
    - Added type hints to logging_utils.py for better clarity and type checking.
    - Updated the NullHandler class to return a boolean in the handle method.
    - Enhanced wrapumerate class in parser.py with type hints and improved logic for handling stream exhaustion.
    - Modified detect_type function to handle None values for source and target.
    - Improved normalize_filenames function to ensure None checks before processing filenames.
    - Refactored utility functions in utils.py to include type hints for better code quality.
    - Removed outdated backward compatibility tests and coverage report scripts.
    - Updated tests to reflect changes in data types and structures, ensuring compatibility with the refactored code.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    eb97fd7 View commit details
    Browse the repository at this point in the history
  3. Refactor tests for parser and utility functions

    - Updated test cases in `test_parser.py` to use consistent string formatting and improved readability.
    - Enhanced assertions and added edge case handling in wrapumerate tests.
    - Improved type detection tests for various patch types in `test_parser.py`.
    - Refactored utility tests in `test_utils.py` for better clarity and consistency.
    - Added parameterized tests for `xisabs`, `xnormpath`, `xstrip`, and `pathstrip` functions.
    - Ensured cross-platform compatibility in path handling tests.
    - Improved error handling tests for utility functions with None and string inputs.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    2bf6eaf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    60db957 View commit details
    Browse the repository at this point in the history
  5. Update CI configuration, remove deprecated patch wrapper, and enhance…

    … docstrings for core classes
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    ec37cdd View commit details
    Browse the repository at this point in the history
  6. Enhance docstrings across multiple modules for improved clarity and u…

    …sability, including detailed parameter descriptions, return values, examples, and security notes. Update test script to reference the correct patch tool.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    9eff00d View commit details
    Browse the repository at this point in the history
  7. Refactor code style and improve consistency across multiple files

    - Updated docstring formatting from triple double quotes to triple single quotes for consistency.
    - Changed string quotes from double to single quotes in various places to maintain uniformity.
    - Simplified multiline string assignments for better readability.
    - Removed unnecessary whitespace and improved indentation for clarity.
    - Ensured consistent use of `self.buffer` and `self.pre_buffer` initialization across classes.
    - Updated print statements to use single quotes and removed unnecessary parentheses.
    - Enhanced comments for better understanding of the code.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    2012e2a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e6dcc0b View commit details
    Browse the repository at this point in the history
  9. Update CI configuration to remove Python 2.7 support and enhance test…

    … cleanup for file handling
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    303594c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f9bcbf7 View commit details
    Browse the repository at this point in the history
  11. Update README and project metadata for clarity and accuracy

    - Revise README to enhance description and features of the Python Patch library.
    - Update version number and description in pyproject.toml to reflect the latest release.
    - Change author and maintainer information to current details.
    - Adjust copyright year in constants.py and update module metadata.
    AstroAir committed Aug 2, 2025
    Configuration menu
    Copy the full SHA
    5504437 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2025

  1. Add comprehensive user guide and error handling documentation

    - Introduced a detailed Command Line Interface (CLI) guide covering syntax, options, and usage examples for applying patches.
    - Created an extensive Error Handling guide addressing common error types, recovery strategies, and validation/testing practices.
    - Updated mkdocs.yml to include new documentation structure and navigation for user guide and API reference.
    AstroAir committed Aug 13, 2025
    Configuration menu
    Copy the full SHA
    18aa435 View commit details
    Browse the repository at this point in the history
  2. Add comprehensive documentation for Python Patch and advanced usage g…

    …uide
    
    - Created an introduction document detailing the directory structure, building process, writing guidelines, and contribution process for the Python Patch documentation.
    - Added an advanced usage guide covering conditional patch application, patch transformation, multi-stage patch application, performance optimization techniques, integration patterns, error recovery strategies, custom patch formats, and security considerations.
    - Included code examples for each advanced feature to demonstrate practical applications and best practices.
    AstroAir committed Aug 13, 2025
    Configuration menu
    Copy the full SHA
    2ba1a4b View commit details
    Browse the repository at this point in the history
Loading