From 06243d2e2f9f2096fbc054923c306e765fbb32f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 10:14:13 +0000 Subject: [PATCH] Update black requirement from ~=22.10 to ~=23.1 in /python Updates the requirements on [black](https://github.com/psf/black) to permit the latest version. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.10.0...23.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- python/generate_stubs.py | 4 ++-- python/pyproject.toml | 3 --- python/requirements.dev.txt | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/python/generate_stubs.py b/python/generate_stubs.py index 7568e8e9..58a40676 100644 --- a/python/generate_stubs.py +++ b/python/generate_stubs.py @@ -72,7 +72,7 @@ def module_stubs(module: Any) -> ast.Module: types_to_import = {"typing"} classes = [] functions = [] - for (member_name, member_value) in inspect.getmembers(module): + for member_name, member_value in inspect.getmembers(module): element_path = [module.__name__, member_name] if member_name.startswith("__"): pass @@ -100,7 +100,7 @@ def class_stubs( attributes: List[ast.AST] = [] methods: List[ast.AST] = [] magic_methods: List[ast.AST] = [] - for (member_name, member_value) in inspect.getmembers(cls_def): + for member_name, member_value in inspect.getmembers(cls_def): current_element_path = element_path + [member_name] if member_name == "__init__": try: diff --git a/python/pyproject.toml b/python/pyproject.toml index c6256599..3a37fa08 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -28,6 +28,3 @@ Documentation = "https://pyoxigraph.readthedocs.io/" Homepage = "https://pyoxigraph.readthedocs.io/" Source = "https://github.com/oxigraph/oxigraph/tree/main/python" Tracker = "https://github.com/oxigraph/oxigraph/issues" - -[tool.black] -target-version = ['py37'] diff --git a/python/requirements.dev.txt b/python/requirements.dev.txt index 8849ca69..8d5ac3ad 100644 --- a/python/requirements.dev.txt +++ b/python/requirements.dev.txt @@ -1,4 +1,4 @@ -black~=22.10 +black~=23.1 furo maturin~=0.14.0 mypy~=0.991.0