Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Weekly update pull requests, grouped to keep their number low. Security updates are opened
# as soon as an alert shows up, independently of this schedule.
# Dependabot pull requests get no AWS credentials, so the ref-arch E2E test skips them: run it by
# hand (Actions → Tests | Integration → Run workflow) before merging one that touches boto3.
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
# Minor and patch updates together, one pull request for each kind of dependency;
# major updates come one per pull request
runtime:
dependency-type: production
update-types: [minor, patch]
dev:
dependency-type: development
update-types: [minor, patch]

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions:
patterns: ["*"]
2 changes: 1 addition & 1 deletion .github/workflows/test-lint-black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: psf/black@stable
with:
options: "--check --verbose"
version: "23.3.0"
version: "26.10.1"

# Rules and exclusions come from [tool.ruff] in pyproject.toml. Keep the version in sync
# with the dev dependency and the pre-commit hook.
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 26.10.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
2 changes: 1 addition & 1 deletion leverage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Binbash Leverage Command-line tool.
Binbash Leverage Command-line tool.
"""

# pylint: disable=wrong-import-position
Expand Down
2 changes: 1 addition & 1 deletion leverage/_internals.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Definitions for internal use of the cli.
Definitions for internal use of the cli.
"""

from functools import wraps
Expand Down
2 changes: 1 addition & 1 deletion leverage/_parsing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Command line arguments and tasks arguments parsing utilities.
Command line arguments and tasks arguments parsing utilities.
"""


Expand Down
2 changes: 1 addition & 1 deletion leverage/_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
General use utilities.
General use utilities.
"""

from configparser import NoOptionError
Expand Down
3 changes: 1 addition & 2 deletions leverage/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Env variables loading utility.
Env variables loading utility.
"""

from pathlib import Path
Expand All @@ -10,7 +10,6 @@
from leverage.path import get_root_path
from leverage.path import get_working_path


ENV_CONFIG_FILE = "build.env"


Expand Down
2 changes: 1 addition & 1 deletion leverage/leverage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Binbash Leverage Command-line tool.
Binbash Leverage Command-line tool.
"""

import click
Expand Down
3 changes: 1 addition & 2 deletions leverage/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Logging utilities.
Logging utilities.
"""

import logging
Expand All @@ -9,7 +9,6 @@
from rich.logging import RichHandler
from click import get_current_context


_RAW_LOGGING_FORMAT = "%(message)s"
_TASK_LOGGING_FORMAT = (
"[bold light_yellow3][ %(build_script)s -[/bold light_yellow3]"
Expand Down
1 change: 0 additions & 1 deletion leverage/modules/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from leverage.modules.auth import get_sso_access_token, refresh_all_accounts_credentials
from leverage.modules.auth import _perform_authentication as perform_authentication


CONTEXT_SETTINGS = {"ignore_unknown_options": True}


Expand Down
2 changes: 1 addition & 1 deletion leverage/modules/credentials.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Credentials managing module.
Credentials managing module.
"""

import re
Expand Down
2 changes: 1 addition & 1 deletion leverage/modules/project.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Module for managing Leverage projects.
Module for managing Leverage projects.
"""

import re
Expand Down
3 changes: 1 addition & 2 deletions leverage/modules/run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Tasks running module.
Tasks running module.
"""

import re
Expand All @@ -17,7 +17,6 @@
from leverage._utils import clean_exception_traceback
from leverage._internals import pass_state


_TASK_PATTERN = re.compile(r"^(?P<name>[^\[\],\s]+)(\[(?P<arguments>[^\]]*)\])?$")

_logger = None
Expand Down
9 changes: 3 additions & 6 deletions leverage/modules/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def run(
working_dir: Optional[Path] = None,
interactive: Literal[True] = True,
raises: bool = False,
) -> int:
...
) -> int: ...

@overload
def run(
Expand All @@ -78,8 +77,7 @@ def run(
working_dir: Optional[Path] = None,
interactive: Literal[False],
raises: bool = False,
) -> Tuple[int, str, str]:
...
) -> Tuple[int, str, str]: ...

@overload
def run(
Expand All @@ -89,8 +87,7 @@ def run(
working_dir: Optional[Path] = None,
interactive: bool = True,
raises: bool = False,
) -> Union[int, Tuple[int, str, str]]:
...
) -> Union[int, Tuple[int, str, str]]: ...

def run(
self,
Expand Down
2 changes: 1 addition & 1 deletion leverage/path.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Utilities to obtain relevant files' and directories' locations
Utilities to obtain relevant files' and directories' locations
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion leverage/tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Task loading, Task object definition and task creation decorator.
Task loading, Task object definition and task creation decorator.
"""

import sys
Expand Down
Loading
Loading