update_codemeta
Shallow wrapper around codemetapy to use it with pre-commit.
update_codemeta(target=trg_arg, sources=src_arg)
¶
Entry point of CLI application.
Runs codemetapy on the passed sources, compares resulting graph with target file (if it exists).
Only writes to the output if the metadata is not equivalent.
The equivalence is checked on graph level using rdflib
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target |
Path
|
Output file (usually |
trg_arg
|
sources |
List[str]
|
Metadata input files (such as |
src_arg
|
Source code in src/dev_utils/update_codemeta.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|