Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #900

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
entry: make check-mixins
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.6.0'
rev: 'v5.0.0'
hooks:
- id: check-merge-conflict
exclude: "rst$"
Expand All @@ -26,16 +26,16 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/PyCQA/isort
rev: '5.13.2'
rev: '6.0.0'
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: '24.4.2'
rev: '25.1.0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.6.0'
rev: 'v5.0.0'
hooks:
- id: check-case-conflict
- id: check-json
Expand All @@ -52,7 +52,7 @@ repos:
- id: debug-statements
# Another entry is required to apply file-contents-sorter to another file
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.6.0'
rev: 'v5.0.0'
hooks:
- id: file-contents-sorter
files: |
Expand All @@ -64,16 +64,16 @@ repos:
# - id: pyupgrade
# args: ['--py37-plus']
- repo: https://github.com/twisted/towncrier
rev: 23.11.0 # run 'pre-commit autoupdate' to update
rev: 24.8.0 # run 'pre-commit autoupdate' to update
hooks:
- id: towncrier-check
- repo: https://github.com/PyCQA/flake8
rev: '7.1.0'
rev: '7.1.1'
hooks:
- id: flake8
exclude: "^docs/"
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
rev: v1.7.7
hooks:
- id: actionlint
args:
Expand All @@ -84,6 +84,6 @@ repos:
- -ignore
- 'SC1004:'
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.29.0
rev: 0.31.1
hooks:
- id: check-github-actions
2 changes: 1 addition & 1 deletion src/apolo_flow/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ async def apply_mixins(


async def setup_mixins(
raw_mixins: Optional[Mapping[str, _MixinApplyTarget]]
raw_mixins: Optional[Mapping[str, _MixinApplyTarget]],
) -> Mapping[str, _MixinApplyTarget]:
if raw_mixins is None:
return {}
Expand Down
4 changes: 2 additions & 2 deletions src/apolo_flow/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def make_list_comp(args: Tuple[Item, Token, Token, Token, Item]) -> ListCompMake


def make_list_comp_with_if(
args: Tuple[Item, Token, Token, Token, Item, Token, Item]
args: Tuple[Item, Token, Token, Token, Item, Token, Item],
) -> ListCompMaker:
item_expr, _, name, _, base_iter, _, if_expr = args
return ListCompMaker(
Expand Down Expand Up @@ -899,7 +899,7 @@ def child_items(self) -> Iterable["Item"]:


def make_dict(
args: Union[Tuple[Item, Item, List[Tuple[Item, Item]]], Tuple[Item, Item]]
args: Union[Tuple[Item, Item, List[Tuple[Item, Item]]], Tuple[Item, Item]],
) -> DictMaker:
lst = [(args[0], args[1])]
if len(args) > 2:
Expand Down
2 changes: 1 addition & 1 deletion src/apolo_flow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __init__(self) -> None:


def retry(
func: Callable[Concatenate[_SELF, _P], Awaitable[_R]]
func: Callable[Concatenate[_SELF, _P], Awaitable[_R]],
) -> Callable[Concatenate[_SELF, _P], Coroutine[Any, Any, _R]]:
async def inner(self: _SELF, *args: _P.args, **kwargs: _P.kwargs) -> _R:
for retry in retries(
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ async def test_batch_action_default(batch_config_loader: ConfigLoader) -> None:


def _make_ast_call(
args: Mapping[str, Union[bool, int, float, str]]
args: Mapping[str, Union[bool, int, float, str]],
) -> ast.BaseActionCall:
def _make_simple_str_expr(res: Optional[str]) -> SimpleStrExpr:
return SimpleStrExpr(
Expand All @@ -663,10 +663,10 @@ def _make_primitive_expr(res: Union[bool, int, float, str]) -> PrimitiveExpr:


def _make_ast_inputs(
args: Mapping[str, Tuple[Optional[Union[bool, int, float, str]], InputType]]
args: Mapping[str, Tuple[Optional[Union[bool, int, float, str]], InputType]],
) -> Mapping[str, ast.Input]:
def _make_opt_primitive_expr(
res: Optional[Union[bool, int, float, str]]
res: Optional[Union[bool, int, float, str]],
) -> SimpleOptPrimitiveExpr:
return SimpleOptPrimitiveExpr(
Pos(0, 0, LocalPath("fake")), Pos(0, 0, LocalPath("fake")), res
Expand Down
Loading