Skip to content

Commit 31c478e

Browse files
Bumps [https://github.com/psf/black-pre-commit-mirror](https://github.com/psf/black-pre-commit-mirror) from 25.12.0 to 26.3.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psf/black-pre-commit-mirror/commit/044edd3b57c805fa7a0165b7936d44f6e56ecfd8"><code>044edd3</code></a> black 26.3.0</li> <li><a href="https://github.com/psf/black-pre-commit-mirror/commit/ea488cebbfd88a5f50b8bd95d5c829d0bb76feb8"><code>ea488ce</code></a> black 26.1.0</li> <li>See full diff in <a href="https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.3.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=https://github.com/psf/black-pre-commit-mirror&package-manager=pre_commit&previous-version=25.12.0&new-version=26.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Eric Brown <ericwb@users.noreply.github.com> Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eric Brown <ericwb@users.noreply.github.com> Co-authored-by: Eric Brown <eric_wade_brown@yahoo.com>
1 parent 0819d44 commit 31c478e

File tree

74 files changed

+63
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+63
-40
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ repos:
1111
- id: end-of-file-fixer
1212
- id: trailing-whitespace
1313

14-
- repo: https://github.com/asottile/reorder_python_imports
15-
rev: v3.16.0
16-
hooks:
17-
- id: reorder-python-imports
18-
args: [--application-directories, '.:src', --py38-plus]
19-
2014
- repo: https://github.com/psf/black-pre-commit-mirror
21-
rev: 25.12.0
15+
rev: 26.3.0
2216
hooks:
2317
- id: black
2418
args: [--line-length=79, --target-version=py311]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import requests
22

3-
43
requests.get("https://localhost", verify=False)

precli/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from datetime import datetime
44
from importlib import metadata
55

6-
76
__author__ = metadata.metadata("precli")["Author"]
87
__summary__ = metadata.metadata("precli")["Summary"]
98
__copyright__ = f"Copyright {datetime.now():%Y} Secure Sauce LLC"

precli/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
# SPDX-License-Identifier: BUSL-1.1
44
from precli.cli import main
55

6-
76
main.main()

precli/cli/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from precli.core.run import Run
2828
from precli.renderers import Renderer
2929

30-
3130
BUSL_URL = "https://spdx.org/licenses/BUSL-1.1.html"
3231
GITHUB_URL = "https://github.com"
3332
PYPI_URL = "https://pypi.org"

precli/core/run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
from precli.parsers.basic import Basic
3030
from precli.rules import Rule
3131

32-
3332
LOG = logging.getLogger(__name__)
3433
PROGRESS_THRESHOLD = 50
3534
parsers = loader.load_extension(group="precli.parsers")

precli/i18n.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import locale
55
import os
66

7-
87
LOCALE_DIR = os.path.join("precli", "locale")
98

109

precli/parsers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _expand_rule_list(rule_list: list[str]) -> list[str]:
8484
expanded_rules = []
8585
for rule in rule_list:
8686
if "-" in rule:
87-
(rule_start, rule_end) = rule.split("-", maxsplit=1)
87+
rule_start, rule_end = rule.split("-", maxsplit=1)
8888
if rule_start[:-3] == rule_end[:-3]:
8989
try:
9090
start = int(rule_start[-3:])

precli/parsers/basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from precli.parsers import Parser
66

7-
87
# Language map to [file extensions, rule prefix]
98
LANG_MAP = {
109
"c_sharp": [[".cs"], "CS"],

precli/parsers/python.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from precli.parsers import Parser
2020
from precli.parsers.node_types import NodeTypes
2121

22-
2322
Import = namedtuple("Import", "module alias")
2423

2524

@@ -217,7 +216,7 @@ def visit_assignment(self, nodes: list[Node]):
217216
)
218217

219218
if nodes[2].type == NodeTypes.CALL:
220-
(call_args, call_kwargs) = self.get_func_args(
219+
call_args, call_kwargs = self.get_func_args(
221220
nodes[2].children[1]
222221
)
223222

@@ -264,7 +263,7 @@ def _get_func_ident(self, node: Node) -> Optional[Node]:
264263

265264
def visit_call(self, nodes: list[Node]):
266265
func_call_qual = self.resolve(nodes[0])
267-
(func_call_args, func_call_kwargs) = self.get_func_args(nodes[1])
266+
func_call_args, func_call_kwargs = self.get_func_args(nodes[1])
268267

269268
if self.context["node"].children:
270269
# (attribute | identifier) argument_list

0 commit comments

Comments
 (0)