Skip to content

Commit e1c6b42

Browse files
authored
Merge pull request #131 from input-output-hk/include-scripts-in-project
Moving ./scripts to ./catalyst-toolbox/scripts to fix nix build
2 parents 9d63827 + 914c001 commit e1c6b42

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

.github/workflows/python-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- uses: actions/checkout@v2
1414

1515
- name: Check formatting (black)
16-
run: black ./scripts/python --check
16+
run: black ./catalyst-toolbox/scripts/python --check

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ OPTIONS:
380380
## Python scripts
381381
382382
Use an updated version of `python3` and either create a venv or just install the dependencies from the
383-
`requirements.txt` file inside the `/scripts/python` folder.
383+
`requirements.txt` file inside the `/catalyst-toolbox/scripts/python` folder.
384384
385385
#### Calculate proposers rewards
386386

catalyst-toolbox/doc/rewards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ There are 2 (two) main input files needed for calculating the community advisors
7575
1. Proposers reward result output file (approved proposals): We need this to check which of the proposals were approved.
7676
Notice that the proposers rewards script output is per challenge. So in order to use it we need to aggregate all the csv
7777
into a single file (same headers, order is irrelevant). For this we can use the
78-
[`csv_merger.py`](https://github.com/input-output-hk/catalyst-toolbox/blob/main/scripts/python/csv_merger.py) script,
78+
[`csv_merger.py`](https://github.com/input-output-hk/catalyst-toolbox/blob/main/catalyst-toolbox/scripts/python/csv_merger.py) script,
7979
or any other handier tool.
8080
2.Assessments csv (assessments): This is a file that comes from the community. It holds the information with the reviews performed
8181
by the CAs.
@@ -104,4 +104,4 @@ For that we just need to know the amount of rewards done by each veteran:
104104

105105
### Output
106106

107-
A csv with pairs of anonymize veteran CA ids and the amount of the reward, `veteran_id -> total_rewards`.
107+
A csv with pairs of anonymize veteran CA ids and the amount of the reward, `veteran_id -> total_rewards`.
File renamed without changes.
File renamed without changes.

catalyst-toolbox/src/testing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl ProposerRewardsCommand {
104104
}
105105

106106
pub fn cmd(self, temp_dir: &TempDir) -> Result<Command, Error> {
107-
let script_content = include_str!("../../scripts/python/proposers_rewards.py");
107+
let script_content = include_str!("../scripts/python/proposers_rewards.py");
108108
let script_file = temp_dir.child("proposers_rewards.py");
109109

110110
std::fs::write(script_file.path(), script_content)?;

0 commit comments

Comments
 (0)