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

Allow user to force syntax highlighting using config file, env var or command line. Enable syntax highlighting in GitHub Action. #353

Merged
merged 19 commits into from
Apr 10, 2022

Commits on Apr 10, 2022

  1. Add --color/--no-color and PY_COLORS=

    The environment variable `PY_COLORS` overrides `color =` from
    `pyproject.toml`, and the command line options override both of those.
    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    5775f2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4eb1966 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20a84ce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    92b0691 View commit details
    Browse the repository at this point in the history
  5. Update change log

    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    fe48b2a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d1453a8 View commit details
    Browse the repository at this point in the history
  7. Allow Darker branch in GitHub Action

    This helps in testing feature branches like this one in actual GitHub
    workflows of other repositories.
    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    ea66e0a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a763899 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    30f3044 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8355788 View commit details
    Browse the repository at this point in the history
  11. Update change log

    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    9ff34e4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bf8a1d3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d3a6e5d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    52d151a View commit details
    Browse the repository at this point in the history
  15. Simplify English in README a bit

    Thanks @roniemartinez
    
    Co-authored-by: Ronie Martinez <ronmarti18@gmail.com>
    akaihola and roniemartinez committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    53057fd View commit details
    Browse the repository at this point in the history
  16. Spell true/false in test case as in pyproject.toml

    So lower case `true` and `false`.
    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    e78793c View commit details
    Browse the repository at this point in the history
  17. Matrix parameterize color test without pygments

    If `pygments` isn't installed, highlighting should never be used. So
    these test cases can be easily parameterized as a test matrix.
    
    Also simplified the other half of `should_use_color()` tests a bit.
    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    ff80559 View commit details
    Browse the repository at this point in the history
  18. Fix typing in test

    akaihola committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    2200bdd View commit details
    Browse the repository at this point in the history
  19. Add blank line to clarify highlighting usage logic

    Thanks @MatthijsBurgh!
    
    Co-authored-by: Matthijs van der Burgh <MatthijsBurgh@outlook.com>
    akaihola and MatthijsBurgh authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    a39b339 View commit details
    Browse the repository at this point in the history