Skip to content

Commit d6c5ab6

Browse files
authored
Nox: use inplace installs (#5865)
1 parent dd06697 commit d6c5ab6

File tree

2 files changed

+6
-4
lines changed
  • packages/google-cloud-websecurityscanner

2 files changed

+6
-4
lines changed

packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
from google.cloud.websecurityscanner_v1alpha.proto import finding_addon_pb2
2727
from google.cloud.websecurityscanner_v1alpha.proto import finding_pb2
2828
from google.cloud.websecurityscanner_v1alpha.proto import (
29-
finding_type_stats_pb2 )
29+
finding_type_stats_pb2)
3030
from google.cloud.websecurityscanner_v1alpha.proto import scan_config_pb2
3131
from google.cloud.websecurityscanner_v1alpha.proto import scan_run_pb2
3232
from google.cloud.websecurityscanner_v1alpha.proto import (
33-
web_security_scanner_pb2 )
33+
web_security_scanner_pb2)
3434

3535

3636
_shared_modules = [

packages/google-cloud-websecurityscanner/nox.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ def default(session):
3333
Python corresponding to the ``nox`` binary the ``PATH`` can
3434
run the tests.
3535
"""
36-
# Install all test dependencies, then install this package in-place.
37-
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
36+
# Install all test dependencies, then install local packages in-place.
37+
session.install('mock', 'pytest', 'pytest-cov')
38+
for local_dep in LOCAL_DEPS:
39+
session.install('-e', local_dep)
3840
session.install('-e', '.')
3941

4042
# Run py.test against the unit tests.

0 commit comments

Comments
 (0)