The dataset function within the schema_org module writes a copy of Schema.org markup to a cache path for potential future use (see here). During testing, if the cache path isn't explicitly defined in the configuration file, this file gets written to the package's tests/ directory.
To avoid accidentally committing this test-generated file to the version control system and having to manually remove it later, we could add a rule to the .gitignore file.
Proposed Solution
We can target the potential cache file patterns:
cache location for {PASTA environment} json files{pid}.json
utilizing the .gitignore syntax with wildcards:
cache location for * json files*.json
Note: This solution only addresses the test scenario. If the cache path is set to a different location, this rule won't prevent the file from being committed.
Description
The
dataset
function within theschema_org
module writes a copy of Schema.org markup to a cache path for potential future use (see here). During testing, if the cache path isn't explicitly defined in the configuration file, this file gets written to the package's tests/ directory.To avoid accidentally committing this test-generated file to the version control system and having to manually remove it later, we could add a rule to the
.gitignore
file.Proposed Solution
We can target the potential cache file patterns:
cache location for {PASTA environment} json files{pid}.json
utilizing the
.gitignore
syntax with wildcards:cache location for * json files*.json
Note: This solution only addresses the test scenario. If the cache path is set to a different location, this rule won't prevent the file from being committed.