8000 golem/lint.sh at testing_payments · VariousForks/golem · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"Installer","path":"Installer","contentType":"directory"},{"name":"apps","path":"apps","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"golem","path":"golem","contentType":"directory"},{"name":"gui","path":"gui","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"setup_util","path":"setup_util","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":".dockerignore","path":".dockerignore","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pylintrc","path":".pylintrc","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"appveyor.yml","path":"appveyor.yml","contentType":"file"},{"name":"circle.yml","path":"circle.yml","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"git","path":"git","contentType":"file"},{"name":"golem.xml","path":"golem.xml","contentType":"file"},{"name":"golemapp.py","path":"golemapp.py","contentType":"file"},{"name":"golemapp.spec","path":"golemapp.spec","contentType":"file"},{"name":"golemcli.py","path":"golemcli.py","contentType":"file"},{"name":"golemcli.spec","path":"golemcli.spec","contentType":"file"},{"name":"lint.sh","path":"lint.sh","contentType":"file"},{"name":"lintdiff.sh","path":"lintdiff.sh","contentType":"file"},{"name":"loggingconfig.py","path":"loggingconfig.py","contentType":"file"},{"name":"requirements-lint.txt","path":"requirements-lint.txt","contentType":"file"},{"name":"requirements-test.txt","path":"requirements-test.txt","contentType":"file"},{"name":"requirements-win.txt","path":"requirements-win.txt","contentType":"file"},{"name":"requirements-winpackager.txt","path":"requirements-winpackager.txt","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"shippable.yml","path":"shippable.yml","contentType":"file"}],"totalCount":35}},"fileTreeProcessingTime":10.654464,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":113788909,"defaultBranch":"develop","name":"golem","ownerLogin":"VariousForks","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-12-10T22:35:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/34277665?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"testing_payments","listCacheKey":"v0:1619118230.432794","canEdit":false,"refType":"branch","currentOid":"193f16f8858a5b3634c5c8761bff29d0634152f3"},"path":"lint.sh","currentUser":null,"blob":{"rawLines":["#!/bin/bash","# a more basic version of lint.sh from marmistrz/lintdiff","","hline() {"," printf %\"$COLUMNS\"s | tr \" \" \"-\"","}","","usage() {"," echo \"Usage: $0 \u003creference-branch\u003e\"","}","","case $# in"," 1)"," if [ \"$1\" == \"-h\" ]; then"," usage"," exit 0"," else"," BRANCH=\"$1\""," fi"," ;;"," *)"," usage"," exit 1"," ;;","esac","","RED=$("," tput bold"," tput setaf 1",") 2\u003e/dev/null","GREEN=$("," tput bold"," tput setaf 2",") 2\u003e/dev/null","RESET=$(tput sgr0) 2\u003e/dev/null","","nfailed=0","","status() {"," if [ \"$1\" -eq 0 ]; then"," echo \"${GREEN}OK${RESET}\""," else"," echo \"${RED}FAIL${RESET}\""," fi","}","","LINTDIFF=\"./lintdiff.sh -o -b $BRANCH\"","","commands=("," \"$LINTDIFF pylint --disable=R apps golem gui scripts setup_util '*.py'\""," \"$LINTDIFF pylint --disable=R,protected-access tests\""," \"$LINTDIFF pycodestyle\""," \"$LINTDIFF mypy apps golem gui scripts setup_util tests '*.py'\"",")","","names=("," \"pylint main\""," \"pylint tests\""," \"pycodestyle\""," \"mypy\"",")","","cur_hash=$(git rev-parse --short HEAD)","ref_hash=$(git rev-parse --short \"$BRANCH\")","","echo \"Comparing $ref_hash...$cur_hash\"","","for i in \"${!names[@]}\"; do"," printf \"%-20s\" \"${names[$i]}...\""," outputs[$i]=$(${commands[$i]} 2\u003e\u00261)"," exitcode[$i]=$?"," status ${exitcode[$i]}","done","","for i in \"${!names[@]}\"; do"," if [ ${exitcode[$i]} -ne 0 ]; then"," let \"nfailed++\"",""," hline"," echo \"${names[$i]} failed, output:\""," echo -e \"\\n\""," echo \"${outputs[$i]}\""," hline"," fi","done","","if [ $nfailed -gt 0 ]; then"," echo \"Errors occurred, summary:\""," for i in \"${!names[@]}\"; do"," printf \"%-20s\" \"${names[$i]}...\""," status ${exitcode[$i]}"," done"," exit 1","fi"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/VariousForks/golem/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"lint.sh","displayUrl":"https://github.com/VariousForks/golem/blob/testing_payments/lint.sh?raw=true","headerInfo":{"blobSize":"1.67 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":"3c31464","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FVariousForks%2Fgolem%2Fblob%2Ftesting_payments%2Flint.sh","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"94","truncatedSloc":"79"},"mode":"executable file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Shell","languageID":346,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/VariousForks/golem/blob/testing_payments/lint.sh","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/VariousForks/golem/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/VariousForks/golem/raw/refs/heads/testing_payments/lint.sh","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":{"/VariousForks/golem/branches":{"post":"whvQg1dF8UNp71y70sm5U7k9CXis2jKQzNr8soVDFS16A37hF1SKt12-KkGRQbw7NjAGXY6yaOZ7ajmzr3FJCA"},"/repos/preferences":{"post":"2A6EUOoo2qyHa-QJ4zZn-lPPmPT5DzEViZgni9HIIdtF5EgT8L9c-2BT8-dxCXWOv0ScHT_JyA0EJcvxab48Iw"}}},"title":"golem/lint.sh at testing_payments · VariousForks/golem","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