• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:requirements

7 #      http://www.apache.org/licenses/LICENSE-2.0
25 # WARNING - WARNING - WARNING - WARNING - WARNING
26 # WARNING - WARNING - WARNING - WARNING - WARNING
28 # WARNING - WARNING - WARNING - WARNING - WARNING
29 # WARNING - WARNING - WARNING - WARNING - WARNING
36 # modify the test configurations. The values here should be in sync
41 # You can opt out from the test for specific Python versions.
56 # A dictionary you want to inject into your test. Don't put any
74 def get_pytest_env_vars() -> Dict[str, str]:
88 # DO NOT EDIT - automatically generated.
89 # All versions used to test samples.
110 def _determine_local_import_names(start_dir: str) -> List[str]:
137 "--show-source",
138 "--builtin=gettext",
139 "--max-complexity=20",
140 "--import-order-style=google",
141 "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py",
142 "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202",
143 "--max-line-length=88",
148 def lint(session: nox.sessions.Session) -> None:
150 session.install("flake8", "flake8-import-order")
152 session.install("flake8", "flake8-import-order", "flake8-annotations")
156 "--application-import-names",
169 def blacken(session: nox.sessions.Session) -> None:
181 PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"]
186 ) -> None:
190 """Runs py.test for a particular project."""
191 if os.path.exists("requirements.txt"):
193 session.install("-r", "requirements.txt", "-c", "constraints.txt")
195 session.install("-r", "requirements.txt")
197 if os.path.exists("requirements-test.txt"):
198 if os.path.exists("constraints-test.txt"):
199 session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt")
201 session.install("-r", "requirements-test.txt")
204 session.install("-e", _get_repo_root())
221 def py(session: nox.sessions.Session) -> None:
222 """Runs py.test for a sample using the specified version of Python."""
236 def _get_repo_root() -> Optional[str]:
259 def readmegen(session: nox.sessions.Session, path: str) -> None:
260 """(Re-)generates the readme for a sample."""
264 if os.path.exists(os.path.join(dir_, "requirements.txt")):
265 session.install("-r", os.path.join(dir_, "requirements.txt"))
269 "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file