Skip to content

Commit

Permalink
chore: pip: Bump black from 23.9.1 to 24.1.1 (#406)
Browse files Browse the repository at this point in the history
Bumps [black](https://github.com/psf/black) from 23.9.1 to 24.1.1.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Durkota <tdurk93@gmail.com>
  • Loading branch information
dependabot[bot] and tdurk93 authored Jan 30, 2024
1 parent c159daf commit 6049985
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/yelp/detect-secrets
Expand Down
50 changes: 25 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ addopts = "-p no:cacheprovider"
pytest = ">=7.1.3,<9.0.0"
pytest-mock = "^3.10.0"
coverage = ">=6.5,<8.0"
black = ">=22.10,<24.0"
black = ">=22.10,<25.0"
identify = "^2.5.7"
poethepoet = ">=0.16.4,<0.25.0"
python-semantic-release = ">=8.0.0"
Expand Down
13 changes: 9 additions & 4 deletions secureli/services/language_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,16 @@ def _build_pre_commit_config(
result = self.language_config.get_language_config(language, include_linter)
if result.config_data:
successful_languages.append(language)
linter_configs.append(
LinterConfig(
language=language, linter_data=result.linter_config.linter_data
(
linter_configs.append(
LinterConfig(
language=language,
linter_data=result.linter_config.linter_data,
)
)
) if result.linter_config.successful else None
if result.linter_config.successful
else None
)
data = yaml.safe_load(result.config_data)
config_data += data["repos"] or []

Expand Down
6 changes: 3 additions & 3 deletions tests/utilities/test_git_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def mock_subprocess(mocker: MockerFixture) -> MagicMock:
def mock_configparser(mocker: MockerFixture) -> MagicMock:
mock_configparser = mocker.patch("secureli.utilities.git_meta.configparser")
mock_configparser_instance = MagicMock()
mock_configparser_instance[
'remote "origin"'
].get.return_value = "https://fake-build.com/git/repo"
mock_configparser_instance['remote "origin"'].get.return_value = (
"https://fake-build.com/git/repo"
)
mock_configparser.ConfigParser.return_value = mock_configparser_instance
return mock_configparser_instance

Expand Down

0 comments on commit 6049985

Please sign in to comment.