8000 python-error-reporting/synth.py at autosynth-googleapis · googleapis/python-error-reporting · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"google","path":"google","contentType":"directory"},{"name":"samples","path":"samples","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"test_utils","path":"test_utils","contentType":"directory"},{"name":"testing","path":"testing","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".flake8","path":".flake8","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":".repo-metadata.json","path":".repo-metadata.json","contentType":"file"},{"name":".trampolinerc","path":".trampolinerc","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.rst","path":"CONTRIBUTING.rst","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"mypy.ini","path":"mypy.ini","contentType":"file"},{"name":"noxfile.py","path":"noxfile.py","contentType":"file"},{"name":"pylint.config.py","path":"pylint.config.py","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"synth.metadata","path":"synth.metadata","contentType":"file"},{"name":"synth.py","path":"synth.py","contentType":"file"}],"totalCount":30}},"fileTreeProcessingTime":14.984045,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":226992528,"defaultBranch":"main","name":"python-error-reporting","ownerLogin":"googleapis","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2019-12-10T00:09:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/16785467?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"autosynth-googleapis","listCacheKey":"v0:1747824158.0","canEdit":false,"refType":"branch","currentOid":"a55c7605689ecc43fd08b5574adbb60ff14b695a"},"path":"synth.py","currentUser":null,"blob":{"rawLines":["# Copyright 2018 Google LLC","#","# Licensed under the Apache License, Version 2.0 (the \"License\");","# you may not use this file except in compliance with the License.","# You may obtain a copy of the License at","#","# http://www.apache.org/licenses/LICENSE-2.0","#","# Unless required by applicable law or agreed to in writing, software","# distributed under the License is distributed on an \"AS IS\" BASIS,","# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.","# See the License for the specific language governing permissions and","# limitations under the License.","","\"\"\"This script is used to synthesize generated parts of this library.\"\"\"","import synthtool as s","from synthtool import gcp","from synthtool.languages import python","","gapic = gcp.GAPICBazel()","common = gcp.CommonTemplates()","","# ----------------------------------------------------------------------------","# Generate error_reporting GAPIC layer","# ----------------------------------------------------------------------------","library = gapic.py_library("," service=\"errorreporting\","," version=\"v1beta1\","," bazel_target=\"//google/devtools/clouderrorreporting/v1beta1:devtools-clouderrorreporting-v1beta1-py\","," include_protos=True,",")","s.move(library, excludes=[\"nox.py\", \"setup.py\", \"README.rst\", \"docs/index.rst\", \"google/cloud/errorreporting/\"])","","# ----------------------------------------------------------------------------","# Add templated files","# ----------------------------------------------------------------------------","templated_files = common.py_library("," samples=True, # set to True only if there are samples"," microgenerator=True,"," system_test_dependencies=[\"test_utils\"],"," cov_level=98,",")","s.move(templated_files, excludes=[\".coveragerc\"]) # microgenerator has a good .coveragerc file","","# ----------------------------------------------------------------------------","# Samples templates","# ----------------------------------------------------------------------------","python.py_samples(skip_readmes=True)","","","s.shell.run([\"nox\", \"-s\", \"blacken\"], hide_output=False)"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/googleapis/python-error-reporting/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"synth.py","displayUrl":"https://github.com/googleapis/python-error-reporting/blob/autosynth-googleapis/synth.py?raw=true","headerInfo":{"blobSize":"2.01 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"5fb57f3","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-error-reporting%2Fblob%2Fautosynth-googleapis%2Fsynth.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"51","truncatedSloc":"44"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/googleapis/python-error-reporting/blob/autosynth-googleapis/synth.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/googleapis/python-error-reporting/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/googleapis/python-error-reporting/raw/refs/heads/autosynth-googleapis/synth.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/googleapis/python-error-reporting/branches":{"post":"aTDmKqnvERd1IXV2VzXx-VIkMoe2FlTYU7YyPJPTwwJxaNf-AK-6dex3EVFy-kPRSmmS0Tv-5JeQ_4z0-qsZtg"},"/repos/preferences":{"post":"zOpViSQWZpYCba5sxawmRAKzdgkOkzEFffqglGMvKa46WwLAiEC8w8nXCuFw55w5Y6KN2ansOP18VhE-zLv9Tw"}}},"title":"python-error-reporting/synth.py at autosynth-googleapis · googleapis/python-error-reporting","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0