Skip to content

Commit e32d3e4

Browse files
chore: add versioning of dependencies in noxfile (#224)
* chore: update noxfile with dependency versioning * chore: update renovate to pick up new files
1 parent cef1ed1 commit e32d3e4

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/renovate.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"prConcurrentLimit": 0,
88
"rebaseStalePrs": true,
99
"dependencyDashboard": true,
10-
"semanticCommits": true
10+
"semanticCommits": true,
11+
"pip_requirements": {
12+
"fileMatch": ["requirements-test.txt", "noxfile.py"]
13+
}
1114
}

noxfile.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,30 @@
1717

1818
from __future__ import absolute_import
1919
import os
20-
import shutil
21-
import sys
2220
import nox
2321

2422
BLACK_PATHS = ["google", "tests"]
2523

2624
if os.path.exists("samples"):
2725
BLACK_PATHS.append("samples")
2826

27+
2928
@nox.session
3029
def lint(session):
3130
"""Run linters.
3231
Returns a failure if the linters find linting errors or sufficiently
3332
serious code quality issues.
3433
"""
3534
session.install(
36-
"flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs",
37-
"types-pkg-resources", "types-PyMySQL", "twine")
35+
"flake8==4.0.1",
36+
"flake8-annotations==2.7.0",
37+
"black==21.12b0",
38+
"mypy==0.910",
39+
"sqlalchemy-stubs==0.4",
40+
"types-pkg-resources==0.1.3",
41+
"types-PyMySQL==1.0.6",
42+
"twine==3.7.1",
43+
)
3844
session.install("-r", "requirements.txt")
3945
session.run("black", "--check", *BLACK_PATHS)
4046
session.run("flake8", "google", "tests")
@@ -51,7 +57,7 @@ def blacken(session):
5157
That run uses an image that doesn't have 3.6 installed. Before updating this
5258
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
5359
"""
54-
session.install("black")
60+
session.install("black==21.12b0")
5561
session.run("black", *BLACK_PATHS)
5662

5763

@@ -79,15 +85,18 @@ def default(session, path):
7985
def unit(session):
8086
default(session, os.path.join("tests", "unit"))
8187

88+
8289
@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
8390
def system(session):
8491
default(session, os.path.join("tests", "system"))
8592

93+
8694
@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
8795
def test(session):
8896
default(session, os.path.join("tests", "unit"))
8997
default(session, os.path.join("tests", "system"))
9098

99+
91100
# @nox.session(python="3.7")
92101
# def cover(session):
93102
# """Run the final coverage report.

requirements-test.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pytest==6.2.2
1+
pytest==6.2.5
22
mock==4.0.3
3-
pytest-cov==2.11.1
4-
pytest-asyncio==0.14.0
5-
SQLAlchemy==1.3.23
6-
sqlalchemy-pytds
3+
pytest-cov==3.0.0
4+
pytest-asyncio==0.16.0
5+
SQLAlchemy==1.4.28
6+
sqlalchemy-pytds==0.3.3

0 commit comments

Comments
 (0)