From 23abb08df42acaa90213e1baea22a97b0d180e2d Mon Sep 17 00:00:00 2001 From: Shubha Rajan Date: Tue, 4 May 2021 16:14:13 -0700 Subject: [PATCH] chore: add 'twine check dist/*' to lint --- .gitignore | 1 + noxfile.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d6a8a9679..9ef6a9067 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ venv *.pyc .python-version cloud_sql_python_connector.egg-info/ +dist/ diff --git a/noxfile.py b/noxfile.py index b5e2294d3..d4018d98e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -32,11 +32,14 @@ def lint(session): Returns a failure if the linters find linting errors or sufficiently serious code quality issues. """ - session.install("flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs") + session.install( + "flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs", "twine") session.install("-r", "requirements.txt") session.run("black", "--check", *BLACK_PATHS) session.run("flake8", "google", "tests") session.run("mypy", "google", "tests") + session.run("python", "setup.py", "sdist") + session.run("twine", "check", "dist/*") @nox.session(python="3.6")