MCPcopy
hub / github.com/pyca/cryptography / local

Function local

noxfile.py:290–351  ·  view source on GitHub ↗
(session: nox.Session)

Source from the content-addressed store, hash-verified

288
289@nox.session
290def local(session: nox.Session):
291 if "CARGO_INCREMENTAL" not in os.environ:
292 session.env["CARGO_INCREMENTAL"] = "1"
293
294 pyproject_data = load_pyproject_toml()
295 install(session, "-e", "./vectors", verbose=False)
296 install(
297 session,
298 *pyproject_data["build-system"]["requires"],
299 *pyproject_data["project"]["optional-dependencies"]["ssh"],
300 *nox.project.dependency_groups(
301 pyproject_data, "pep8test", "test", "nox"
302 ),
303 verbose=False,
304 )
305
306 session.run("ruff", "format")
307 session.run("ruff", "check")
308
309 session.run("cargo", "fmt", "--all", external=True)
310 session.run("cargo", "check", "--all", "--tests", external=True)
311 session.run(
312 "cargo",
313 "clippy",
314 "--all",
315 "--",
316 "-D",
317 "warnings",
318 external=True,
319 )
320
321 session.run(
322 "mypy",
323 "src/cryptography/",
324 "vectors/cryptography_vectors/",
325 "tests/",
326 "release.py",
327 "noxfile.py",
328 )
329
330 session.run(
331 "maturin",
332 "develop",
333 "--release",
334 "--uv",
335 )
336
337 if session.posargs:
338 tests = session.posargs
339 else:
340 tests = ["tests/"]
341
342 session.run(
343 "pytest",
344 "-n",
345 "auto",
346 "--dist=worksteal",
347 "--durations=10",

Callers

nothing calls this directly

Calls 3

load_pyproject_tomlFunction · 0.85
installFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected