Skip to content

Commit 24e3499

Browse files
authored
chore: add 'twine check dist/*' to lint (#98)
1 parent 0dd279f commit 24e3499

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ venv
44
*.pyc
55
.python-version
66
cloud_sql_python_connector.egg-info/
7+
dist/

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ def lint(session):
3232
Returns a failure if the linters find linting errors or sufficiently
3333
serious code quality issues.
3434
"""
35-
session.install("flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs")
35+
session.install(
36+
"flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs", "twine")
3637
session.install("-r", "requirements.txt")
3738
session.run("black", "--check", *BLACK_PATHS)
3839
session.run("flake8", "google", "tests")
3940
session.run("mypy", "google", "tests")
41+
session.run("python", "setup.py", "sdist")
42+
session.run("twine", "check", "dist/*")
4043

4144

4245
@nox.session(python="3.6")

0 commit comments

Comments
 (0)