{"id":19777512,"url":"https://github.com/ilib-js/ilib-lint-python","last_synced_at":"2025-09-17T23:31:39.413Z","repository":{"id":90506439,"uuid":"582830381","full_name":"iLib-js/ilib-lint-python","owner":"iLib-js","description":"An ilib-lint plugin that allows it to parse po files and to define rules appropriate for resources from python","archived":false,"fork":false,"pushed_at":"2024-11-08T16:40:50.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-12T05:30:55.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iLib-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-28T01:39:05.000Z","updated_at":"2024-04-24T04:34:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"da782c5e-60e9-4f3b-8f23-47ef14b9cfdd","html_url":"https://github.com/iLib-js/ilib-lint-python","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-lint-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLib-js","download_url":"https://codeload.github.com/iLib-js/ilib-lint-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233430257,"owners_count":18675058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T05:25:20.435Z","updated_at":"2025-09-17T23:31:39.054Z","avatar_url":"https://github.com/iLib-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e :warning: **Deprecation Notice** :warning:\n\u003e This repository has been deprecated. Please use the corresponding package from the [iLib-js monorepo](https://github.com/iLib-js/ilib-mono) instead.\n\n# ilib-lint-python\n\nAn ilib-lint plugin that provides the ability to parse po files and provides\nrules to check resources that come from code written in python.\n\n\n## Installation\n\n```\nnpm install --save-dev ilib-lint-python\n\nor\n\nyarn add --dev ilib-lint-python\n```\n\nThen, in your `ilib-lib-config.json`, add a script:\n\n```\n    \"plugins\": [\n        \"python\"\n    ],\n```\n\nPlease note: nodejs version 14 or above is required to run ilib-lint, as it\nis written with ESM modules.\n\n## Rules\n\nThe following rules apply to any resources from any file type, but are\ndesigned to check resources that come from python code:\n\n- resource-python-fstrings-match - check that any python-style substitution\n  parameters for f-strings (like \"{name}\" or \"{2}\") that appear in the source\n  string also appear in the target strings.\n- resource-python-fstrings-numbered - check that if the source string contains\n  more than one substitution parameter in the f-strings style, then the\n  parameters are properly named or numbered so that the translators can\n  rearrange them as needed by the grammar of the target language.\n- resource-python-legacy-match - check that any legacy python-style substitution\n  parameters (like \"%(name)s\" or \"%(name)d\") that appear in the source string\n  also appear in the target strings.\n- resource-python-template-match - check that any Template class-style substitution\n  parameters (like \"$name\" or \"$age\") that appear in the source string\n  also appear in the target strings.\n\n## RuleSets\n\nThis plugin defines one ruleset `python` that will turn on all the rules\nthat this plugin supports. Users may rely on this ruleset when defining their\nfile types.\n\n## License\n\nCopyright © 2023-2024, JEDLSoft\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Release Notes\n\n### v2.0.1\n\n- Fixed a bug where the exports were not properly set up in the package.json\n\n### v2.0.0\n\n- Updated dependency from i18nlint-common to ilib-lint-common\n    - IntermediateRepresentation now takes a SourceFile as an\n      parameter to the constructor instead of a file path\n    - can now be loaded by ilib-lint \u003e= v2\n\n### v1.1.2\n\n- updated dependencies\n- converted all unit tests from nodeunit to jest\n\n### v1.1.1\n\n- fixed a bug where doubled curly braces (= escaped curly braces) were\n  interpreted as replacement parameters\n- updated dependencies\n\n### v1.1.0\n\n- updated dependencies\n- update to i18nlint-common 2.x which requires the use of an intermediate\n  representation\n\n### v1.0.3\n\n- Fixed a bug where a numeric parameter in the target FString, such as\n  \"{0}\" would cause an exception\n\n### v1.0.2\n\n- Fix bug with parsing whitespace in params\n    - allow for whitespace in the susbstitution parameter so that\n      {name} = { name }\n    - match based on the name only, but highlight the whole text of\n      the parameter when there is an error\n\n### v1.0.1\n\n- updated dependencies\n\n### v1.0.0\n\n- initial version\n- Rules for python resources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-lint-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-lint-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-lint-python/lists"}