Skip to content

Commit 1a1edf4

Browse files
committed
Update tests
1 parent 8670b7d commit 1a1edf4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
8-
- repo: https://github.com/charliermarsh/ruff-pre-commit
9-
rev: v0.0.275
8+
- repo: https://github.com/astral-sh/ruff-pre-commit
9+
rev: v0.7.2
1010
hooks:
1111
- id: ruff
1212
- repo: https://github.com/psf/black
13-
rev: 22.12.0
13+
rev: 24.10.0
1414
hooks:
1515
- id: black
1616
args: ['--config=./pyproject.toml']

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ line-length = 120
33
target-version = ['py310']
44

55
[tool.ruff]
6-
lint.select = ["E", "F", "I", "UP"]
76
target-version = "py310"
87
line-length = 120
98

9+
[tool.ruff.lint]
10+
select = ["E", "F", "I", "UP"]
11+
1012
[tool.pytest.ini_options]
1113
addopts = "-ra --cov --cov-fail-under=100"

tests/test_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@pytest.fixture
1010
def mock_functions_env(monkeypatch):
11-
monkeypatch.setenv("SCM_DO_BUILD_DURING_DEPLOYMENT", "true")
11+
monkeypatch.setenv("RUNNING_IN_PRODUCTION", "true")
1212

1313

1414
def test_functions_env(mock_functions_env):

0 commit comments

Comments
 (0)