Skip to content

Commit 7d2be00

Browse files
chore: update formatter in CONTRIBUTING.rst (#178)
* chore: update formatter in CONTRIBUTING.rst * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * use owlbot to update the files * remove for loop to format code samples, these are managed by the root noxfile. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8ab81de commit 7d2be00

File tree

3 files changed

+9
-37
lines changed

3 files changed

+9
-37
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ On Debian/Ubuntu::
9696
Coding Style
9797
************
9898
- We use the automatic code formatter ``black``. You can run it using
99-
the nox session ``blacken``. This will eliminate many lint errors. Run via::
99+
the nox session ``format``. This will eliminate many lint errors. Run via::
100100

101-
$ nox -s blacken
101+
$ nox -s format
102102

103103
- PEP8 compliance is required, with exceptions defined in the linter configuration.
104104
If you have ``nox`` installed, you can test that you have not introduced

owlbot.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
"BigQuery DataFrames provides DataFrame APIs on the BigQuery engine",
100100
)
101101

102+
# Update the contributing guide to reflect some differences in this repo.
103+
s.replace(
104+
["CONTRIBUTING.rst"],
105+
re.escape("blacken"),
106+
"format",
107+
)
108+
102109
# ----------------------------------------------------------------------------
103110
# Samples templates
104111
# ----------------------------------------------------------------------------
@@ -110,5 +117,3 @@
110117
# ----------------------------------------------------------------------------
111118

112119
s.shell.run(["nox", "-s", "format"], hide_output=False)
113-
for noxfile in REPO_ROOT.glob("samples/**/noxfile.py"):
114-
s.shell.run(["nox", "-s", "blacken"], cwd=noxfile.parent, hide_output=False)

0 commit comments

Comments
 (0)