Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal output #39

Merged
merged 11 commits into from Nov 20, 2019
Merged

Terminal output #39

merged 11 commits into from Nov 20, 2019

Commits on Nov 20, 2019

  1. Introduce a new Terminal class

    The Terminal class will improve the formatting. It allows for
    indentation and displaying the status at the right end of the current
    terminal line.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    d9eb7ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb554ad View commit details
    Browse the repository at this point in the history
  3. Add tests for the Terminal class

    Mocking Terminal from blessings was very difficult because properties
    are added during runtime like the color methods. Therefore auto mocking
    doesn't work.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    142b349 View commit details
    Browse the repository at this point in the history
  4. Update hook API for terminal output

    Use the terminal class instead of the function in the hooks API.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    7428866 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4b1fc8 View commit details
    Browse the repository at this point in the history
  6. Use Terminal for output for stating pre commit hooks

    Also improve the output by adding indentation.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    ddd2717 View commit details
    Browse the repository at this point in the history
  7. Remove unused terminal functions

    The functionality is provided by the Terminal class now.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    4862b59 View commit details
    Browse the repository at this point in the history
  8. Allow to set the terminal instance of the hooks API

    The hooks plugins should use the current terminal instance for their
    output to use the actual indentation.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    16b6649 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d51cc8d View commit details
    Browse the repository at this point in the history
  10. Fix tests for Python 3.5

    Mock.assert_called() doesn't exist before Python 3.6.
    bjoernricks committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    35cbf54 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f4c55a4 View commit details
    Browse the repository at this point in the history