Skip to content

Commit 93b6a88

Browse files
committed
WIP
Signed-off-by: Xiangce Liu <[email protected]>
1 parent b846f29 commit 93b6a88

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22

33
- repo: https://github.com/psf/black
4-
rev: 24.10.0
4+
rev: 25.1.0
55
hooks:
66
- id: black
77
args: [--safe, --quiet, --skip-string-normalization, --line-length, "100"]
88
require_serial: true
99

1010
- repo: https://github.com/PyCQA/flake8
11-
rev: 7.1.1
11+
rev: 7.2.0
1212
hooks:
1313
- id: flake8
1414
args: [
@@ -18,7 +18,7 @@ repos:
1818
'--ignore=E126,E127,E128,E203,E501,E722,E741,W503,W504']
1919

2020
- repo: https://github.com/gitleaks/gitleaks
21-
rev: v8.21.2
21+
rev: v8.24.3
2222
hooks:
2323
- id: gitleaks
2424

@@ -30,3 +30,6 @@ repos:
3030
- id: debug-statements
3131
- id: end-of-file-fixer
3232
- id: trailing-whitespace
33+
34+
ci:
35+
autoupdate_schedule: monthly

insights/tests/client/test_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
@patch('insights.client.config.ConfigParser.open')
11+
1112
def test_config_load(open_):
1213
open_.return_value = TextIOWrapper(
1314
BytesIO(b'[insights-client]\nusername=AMURO'))
@@ -29,7 +30,9 @@ def test_config_load_legacy(open_):
2930
def test_config_load_legacy_ignored(open_):
3031
open_.return_value = TextIOWrapper(
3132
BytesIO(b'[insights-client]\nusername=CASVAL\n'
33+
3234
b'[redhat-access-insights]\nusername=SAYLA'))
35+
3336
c = InsightsConfig()
3437
c._load_config_file()
3538
assert c.username == 'CASVAL'

0 commit comments

Comments
 (0)