-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatando codigo e adicionando selo do linter
- Loading branch information
Showing
8 changed files
with
69 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# ProcessorCI | ||
# ProcessorCI | ||
|
||
[![Pylint](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml/badge.svg)](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml) |
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
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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import json | ||
|
||
# Carregar o JSON do arquivo config.json | ||
with open('config.json', 'r') as file: | ||
with open("config.json", "r") as file: | ||
data = json.load(file) | ||
|
||
# Remover as chaves indesejadas | ||
for core in data['cores'].values(): | ||
core.pop('modules', None) | ||
core.pop('module_graph', None) | ||
core.pop('module_graph_inverse', None) | ||
core.pop('non_tb_files', None) | ||
for core in data["cores"].values(): | ||
core.pop("modules", None) | ||
core.pop("module_graph", None) | ||
core.pop("module_graph_inverse", None) | ||
core.pop("non_tb_files", None) | ||
|
||
# Salvar o resultado em config2.json | ||
with open('config2.json', 'w') as file: | ||
with open("config2.json", "w") as file: | ||
json.dump(data, file, indent=4) | ||
|
||
print("As chaves indesejadas foram removidas e o novo arquivo foi salvo como config2.json.") | ||
print( | ||
"As chaves indesejadas foram removidas e o novo arquivo foi salvo como config2.json." | ||
) |
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