Skip to content

Commit 3c713d5

Browse files
fix: re-add py sessions to noxfile (#22)
* fix: re-add py sessions to noxfile Co-authored-by: Vinny Senthil <[email protected]>
1 parent 0fc50ab commit 3c713d5

11 files changed

+6
-6
lines changed

google/cloud/aiplatform/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515
# limitations under the License.
1616
#
1717

18-
from google.cloud.aiplatform import gapic
19-
2018
__all__ = ()

noxfile.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
BLACK_VERSION = "black==19.10b0"
2727
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2828

29-
DEFAULT_PYTHON_VERSION = ""
30-
SYSTEM_TEST_PYTHON_VERSIONS = []
31-
UNIT_TEST_PYTHON_VERSIONS = []
29+
DEFAULT_PYTHON_VERSION = "3.8"
30+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
31+
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8"]
3232

3333

3434
@nox.session(python=DEFAULT_PYTHON_VERSION)
@@ -156,7 +156,6 @@ def docs(session):
156156
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
157157
session.run(
158158
"sphinx-build",
159-
"-W", # warnings as errors
160159
"-T", # show full traceback on exception
161160
"-N", # no colors
162161
"-b",

samples/requirements.txt

Whitespace-only changes.

synth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,7 @@
128128
templated_files, excludes=[".coveragerc"]
129129
) # the microgenerator has a good coveragerc file
130130

131+
# Don't treat docs warnings as errors
132+
s.replace("noxfile.py", """["']-W["'], # warnings as errors""", "")
133+
131134
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)