-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: push json to private project #118
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=======================================
Coverage 91.32% 91.32%
=======================================
Files 105 105
Lines 3803 3803
Branches 821 821
=======================================
Hits 3473 3473
Misses 206 206
Partials 124 124
|
…nto vebjorn/test-project
With that limitation, I think we should change the key generation to exclude |
That is done already: |
@@ -18,6 +20,10 @@ | |||
TOOLBOX_NAME = "TOOLBOX_NAME" | |||
COGNITE = "__cognite__" | |||
|
|||
LOCIZE_API_KEY = os.getenv("LOCIZE_API_KEY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this working with github action secrets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the action actually mounts the secret as environment variables. So it should work and is tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyproject.toml
Outdated
@@ -29,6 +29,7 @@ csaps = { version = "^1.1.0", optional = true } | |||
statsmodels = { version = "^0.14.0", optional = true } | |||
scikit-image = { version = "^0.21.0", optional = true } | |||
scikit-learn = { version = "^1.3.0", optional = true } | |||
requests = "^2.31.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we dont' need this I suppose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small comment. Otherwise, look good to me
Description
This is a script that creates a json file with keys and values from the docstrings of the functions in InDSL and compares them to the source of truth in Locize. If any changes have been made they will be pushed to Locize, replacing the old ones. The script is used in the workflow
push-locize.yaml
which is run when translations are needed for widespread use of InDSL. We use e.g...._1_0
as versions for the versioned functions rather than"..._1.0"
because Locize will treat any key name with a dot as an array an split the key name at the dot: locize/locize-cli#23. An example of from the raw output from Locize with_1.0
as the versioning number is:"INDSL_DETECT_OUTLIERS_1": { "0_": "Outlier detection" },
Ticket