-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement configuration in runme.yaml (#505)
This PR introduces an implementation of file-based configuration in a form of `runme.yaml`.
- Loading branch information
Showing
33 changed files
with
6,206 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# EXPERIMENTAL: This is a work in progress and may change at any time. | ||
# The idea behind runme.yaml is to provide a way to define consistent | ||
# configuration per project, regardless whether blocks from Markdown | ||
# are executed in VS Code or using the runme CLI. | ||
# | ||
# You can test it with the "runme beta" commands. | ||
version: v1alpha1 | ||
|
||
# Indicate the root of the runme project. "." means that | ||
# the project root directory will be used. | ||
project: | ||
dir: "." | ||
find_repo_upward: true | ||
ignore: | ||
- "node_modules" | ||
- ".venv" | ||
disable_gitignore: false | ||
|
||
# It's possible to point at a single file. | ||
# filename: "README.md" | ||
|
||
# List of dotenv files to load. | ||
env: | ||
use_system_env: true | ||
sources: | ||
- ".env" | ||
- ".env.local" | ||
|
||
# The list of filters to apply to blocks. | ||
# "condition" must return a boolean value. | ||
# You can learn about the syntax at https://expr-lang.org/docs/language-definition. | ||
filters: | ||
# Do not allow unnamed code blocks. | ||
- type: "FILTER_TYPE_BLOCK" | ||
condition: "name != ''" | ||
# Do not allow code blocks without a language. | ||
- type: "FILTER_TYPE_BLOCK" | ||
condition: "language != ''" | ||
# Do not allow code blocks starting with "test". | ||
- type: "FILTER_TYPE_BLOCK" | ||
condition: "!hasPrefix(name, 'test')" | ||
|
||
log: | ||
enabled: true | ||
path: "/var/tmp/runme.log" | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.