<commit_before>
[config]
additional_profiles = [
  "all-default-tasks",
  "multi-phase-tests",
  "ci-coverage-tasks",
  "ci-static-code-analysis-tasks",
  "ci-all-build-tasks",
  "publish-pre-cleanup",
]

[env]
CARGO_MAKE_ADDITIONAL_BINARY_EXECUTABLE_NAME = "makers"
CARGO_MAKE_TEST_COVERAGE_BINARY_FILTER = "cli-[a-z0-9]*$\\|makers-[a-z0-9]*$\\|${CARGO_MAKE_TEST_COVERAGE_DEFAULT_BINARY_FILTER}"
CARGO_MAKE_TEMP_UNSTABLE_KEY = "${CARGO_MAKE_RUST_TARGET_OS}-${CARGO_MAKE_RUST_CHANNEL}-${CARGO_MAKE_CI}"
CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV = { source = "${CARGO_MAKE_TEMP_UNSTABLE_KEY}", default_value = "false", mapping = { "none" = "true" } }
CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV = { source = "${CARGO_MAKE_TEMP_UNSTABLE_KEY}", default_value = "false", mapping = { "windows-stable-true" = "true", "windows-beta-true" = "true", "windows-nightly-true" = "true", "linux-nightly-true" = "true" } }

[tasks.post-print-env]
category = "Tools"
script = '''
#!@duckscript
echo "*************************************"
echo "Extended Info:"
echo "    Unstable Environment Key: ${CARGO_MAKE_TEMP_UNSTABLE_KEY}"
echo "    Unstable Test Environment: ${CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV}"
echo "    Unstable Format Environment: ${CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV}"
echo "*************************************"
'''

[tasks.test-multi-phases-flow]
condition = { env_false = ["CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV"] }

[tasks.check-format-ci-flow]
condition = { env_false = ["CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV"] }

[tasks.audit]
ignore_errors = true

[tasks.generate-readme]
script = '''
#!@duckscript
echo Generating README

rm ./README.md

# concat templates
readme_text = readfile ./docs/_includes/README.md
text = readfile ./docs/_includes/nav.md
readme_text = set "${readme_text}${text}"
text = readfile ./docs/_includes/content.md
readme_text = set "${readme_text}${text}"

# modify templates
crate_version = get_env CARGO_MAKE_CRATE_VERSION
readme_text = replace ${readme_text} https://github.com/sagiegurari/cargo-make/blob/master/.github .github
readme_text = replace ${readme_text} "{{ site.version }}" ${crate_version}
<commit_msg>Cleanup lock files after tests<commit_after>
[config]
additional_profiles = [
  "all-default-tasks",
  "multi-phase-tests",
  "ci-coverage-tasks",
  "ci-static-code-analysis-tasks",
  "ci-all-build-tasks",
  "publish-pre-cleanup",
]

[env]
CARGO_MAKE_ADDITIONAL_BINARY_EXECUTABLE_NAME = "makers"
CARGO_MAKE_TEST_COVERAGE_BINARY_FILTER = "cli-[a-z0-9]*$\\|makers-[a-z0-9]*$\\|${CARGO_MAKE_TEST_COVERAGE_DEFAULT_BINARY_FILTER}"
CARGO_MAKE_TEMP_UNSTABLE_KEY = "${CARGO_MAKE_RUST_TARGET_OS}-${CARGO_MAKE_RUST_CHANNEL}-${CARGO_MAKE_CI}"
CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV = { source = "${CARGO_MAKE_TEMP_UNSTABLE_KEY}", default_value = "false", mapping = { "none" = "true" } }
CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV = { source = "${CARGO_MAKE_TEMP_UNSTABLE_KEY}", default_value = "false", mapping = { "windows-stable-true" = "true", "windows-beta-true" = "true", "windows-nightly-true" = "true", "linux-nightly-true" = "true" } }

[tasks.post-print-env]
category = "Tools"
script = '''
#!@duckscript
echo "*************************************"
echo "Extended Info:"
echo "    Unstable Environment Key: ${CARGO_MAKE_TEMP_UNSTABLE_KEY}"
echo "    Unstable Test Environment: ${CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV}"
echo "    Unstable Format Environment: ${CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV}"
echo "*************************************"
'''

[tasks.test-multi-phases-cleanup]
script = '''
#!@duckscript

fn <scoped> delete_all
    handle = set ${1}
    for file in ${handle}
        echo Deleting lock file: ${file}
        rm ${file}
    end

    release ${handle}
end

handle = glob_array ./src/**/Cargo.lock
delete_all ${handle}
handle = glob_array ./examples/**/Cargo.lock
delete_all ${handle}
'''

[tasks.test-multi-phases-flow]
condition = { env_false = ["CARGO_MAKE_TEMP_UNSTABLE_TEST_ENV"] }

[tasks.check-format-ci-flow]
condition = { env_false = ["CARGO_MAKE_TEMP_UNSTABLE_FMT_ENV"] }

[tasks.audit]
ignore_errors = true

[tasks.generate-readme]
script = '''
#!@duckscript
echo Generating README

rm ./README.md

# concat templates
readme_text = readfile ./docs/_includes/README.md
text = readfile ./docs/_includes/nav.md
readme_text = set "${readme_text}${text}"
text = readfile ./docs/_includes/content.md
readme_text = set "${readme_text}${text}"

# modify templates
crate_version = get_env CARGO_MAKE_CRATE_VERSION
readme_text = replace ${readme_text} https://github.com/sagiegurari/cargo-make/blob/master/.github .github
readme_text = replace ${readme_text} "{{ site.version }}" ${crate_version}

{'fraction_non_alphanumeric': 0.1806941431670282, 'fraction_numerical': 0.0019522776572668114, 'mean_word_length': 5.996965098634294, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1490366', 'n_tokens_mistral': 1757, 'n_tokens_neox': 1700, 'n_words': 266}