question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] : Allow to mark (tag) actions and execute them selectively according to their markers (tags).

See original GitHub issue

Hi!

The (custom) markers (tags) would allow defining “which” (groups of) actions to execute. Just as the stages allow to define “when/where” the actions are executed (in relation to git)

I personally prefer to separate some actions in different categories or according to certain modalities.

  • Examples:

    • [check]: actions that check things.

    • [fix]: actions that modify things (and that could break things)

    • [stable]: less likely to break things - more stable or robust actions - such as some formatters.

    • [experimental]: more likely to break things - less stable, less robust or a bit more experimental actions - such as some autofixers.

    • [strict]: more restrictive modalities or configurations, like some linters, type checkers or tools that remove things.

  • Example:

pre-commit run --all-files --markers=strict,stable,check

Thanks! .

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Nov 28, 2021

I am intentionally not implementing that because extension is a hard problem that you really don’t need and makes caching difficult / intractable

there are many other issues which mention this

I am well aware of other tools which do this and it does not improve the argument

0reactions
diegovalenzuelaiturracommented, Nov 28, 2021

Ok, I understand …

One last question (I’m not totally sure if this is a way to accomplish the same thing)

  • @asottile , Do you think it would be useful to allow overwriting and/or extending configuration files? I think this can avoid duplication of configurations, in cases where multiple configurations are already being used.

Currently, tools such as docker-compose ^docker-compose-extends ^docker-compose-cli or hydra-core ^hydra-core (through omegaconf ^omegaconf) allow defining base configuration files (also allowing the use of variable interpolation ^omegaconf-variable-interpolation)

  • which can be overwritten or extended by additional configuration files
  • or populated for example using environment variables or other
  • and whose values can be overwritten by arguments provided through the command line

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Video-level classification #4952 - GitHub
It would be useful to provide a way to classify an entire video with a single tag. Expected Behaviour. Add either a new...
Read more >
Allow certain tags to be made public | Feature Requests - Canny
Problem: As a non-admin Canny user, I want to see all requests submitted on behalf of x customer group so that I can...
Read more >
Tagging and Filtering JUnit Tests - Baeldung
With JUnit 5 we can filter tests by tagging a subset of them under a unique tag name. For example, suppose we have...
Read more >
Working with custom markers — pytest documentation
Here are some examples using the How to mark test functions with attributes mechanism. Marking test functions and selecting them for a run¶....
Read more >
Implement Quality of Service Policies with Differentiated ...
Routers at the edge of the network classify packets and mark them with either the IP Precedence or DSCP value in a Diffserv...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found