(session: nox.Session)
| 201 | |
| 202 | @nox.session |
| 203 | def flake(session: nox.Session) -> None: |
| 204 | # TODO: Ideally there'd be a pip flag to install just our dependencies, |
| 205 | # but not install us. |
| 206 | pyproject_data = load_pyproject_toml() |
| 207 | install(session, "-e", "vectors/") |
| 208 | install( |
| 209 | session, |
| 210 | *pyproject_data["build-system"]["requires"], |
| 211 | *pyproject_data["project"]["optional-dependencies"]["ssh"], |
| 212 | "--group", |
| 213 | "pep8test", |
| 214 | "--group", |
| 215 | "test", |
| 216 | "--group", |
| 217 | "nox", |
| 218 | ) |
| 219 | |
| 220 | session.run("ruff", "check") |
| 221 | session.run("ruff", "format", "--check") |
| 222 | session.run( |
| 223 | "mypy", |
| 224 | "src/cryptography/", |
| 225 | "vectors/cryptography_vectors/", |
| 226 | "tests/", |
| 227 | "release.py", |
| 228 | "noxfile.py", |
| 229 | ) |
| 230 | session.run("check-sdist", "--no-isolation") |
| 231 | |
| 232 | |
| 233 | @nox.session |
nothing calls this directly
no test coverage detected