-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update for linter failures (#1947)
Just opening a separate PR for this, to keep it clean.
- Loading branch information
Showing
11 changed files
with
85 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
/docs/ | ||
/out/ | ||
/build/ | ||
samples/build/ | ||
system-test/secrets.js | ||
system-test/*key.json | ||
*.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,34 +14,15 @@ | |
|
||
import synthtool.languages.node as node | ||
|
||
# This code snippet can be used to manually update the typeless bot | ||
# to a different version than OwlBot has baked in, but this shouldn't | ||
# be needed once it's settled down. | ||
import os | ||
from synthtool import shell | ||
from synthtool.log import logger | ||
old_path = os.getcwd() | ||
os.chdir("/synthtool") | ||
logger.debug("Update typeless sample bot [1.3.0]") | ||
shell.run(["npm", "i", "@google-cloud/[email protected]"]) | ||
os.chdir(old_path) | ||
|
||
# Generate JS samples from TS. | ||
node.typeless_samples_hermetic() | ||
|
||
# We need to run this before the main owlbot processing, to make | ||
# sure quickstart.js gets gts fixed before the README is generated. | ||
# This needs to be worked out more properly, this is temporary. | ||
logger.debug("Copy eslint config") | ||
shell.run( | ||
["cp", "-r", f"/synthtool/node_modules", "."], | ||
check=True, | ||
) | ||
logger.debug("Running fix...") | ||
shell.run( | ||
["npm", "run", "fix"], | ||
check=False, | ||
) | ||
node.fix() | ||
|
||
# Main OwlBot processing. | ||
node.owlbot_main(templates_excludes=[ | ||
'src/index.ts', | ||
'.github/PULL_REQUEST_TEMPLATE.md', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.