diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 49bbffc5..81bb1822 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: no-commit-to-branch - id: check-yaml diff --git a/pyproject.toml b/pyproject.toml index d4518502..578f28e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ [tool.ruff] line-length = 120 -extend-select = ["Q", "RUF100", "UP", "I"] -flake8-quotes = {inline-quotes = "single", multiline-quotes = "double"} +lint.extend-select = ["Q", "RUF100", "UP", "I"] +lint.flake8-quotes = {inline-quotes = "single", multiline-quotes = "double"} format.quote-style="single" target-version = "py38" diff --git a/src/python-fastui/fastui/components/__init__.py b/src/python-fastui/fastui/components/__init__.py index f74fafc2..01e7a262 100644 --- a/src/python-fastui/fastui/components/__init__.py +++ b/src/python-fastui/fastui/components/__init__.py @@ -3,6 +3,7 @@ All CamelCase names in the namespace should be components. """ + import typing as _t import pydantic as _p diff --git a/src/python-fastui/fastui/forms.py b/src/python-fastui/fastui/forms.py index 759bf7c5..e9c5dd9e 100644 --- a/src/python-fastui/fastui/forms.py +++ b/src/python-fastui/fastui/forms.py @@ -219,7 +219,7 @@ def name_to_loc(name: str) -> 'json_schema.SchemeLocation': if name.startswith('['): return json.loads(name) else: - loc: 'json_schema.SchemeLocation' = [] + loc: json_schema.SchemeLocation = [] for part in name.split('.'): if part.isdigit(): loc.append(int(part)) diff --git a/src/python-fastui/requirements/lint.txt b/src/python-fastui/requirements/lint.txt index 3fe95bb0..c902dd1d 100644 --- a/src/python-fastui/requirements/lint.txt +++ b/src/python-fastui/requirements/lint.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # pip-compile --output-file=src/python-fastui/requirements/lint.txt --strip-extras src/python-fastui/requirements/lint.in @@ -8,7 +8,7 @@ nodeenv==1.8.0 # via pyright pyright==1.1.335 # via -r src/python-fastui/requirements/lint.in -ruff==0.1.5 +ruff==0.6.9 # via -r src/python-fastui/requirements/lint.in # The following packages are considered to be unsafe in a requirements file: diff --git a/src/python-fastui/tests/test_components.py b/src/python-fastui/tests/test_components.py index 6d3c3d17..9dd168fa 100644 --- a/src/python-fastui/tests/test_components.py +++ b/src/python-fastui/tests/test_components.py @@ -4,6 +4,7 @@ NOTE: we do NOT want to exhaustively construct every component just for the same of it - that's just testing pydantic! """ + from fastui import FastUI, components from pydantic_core import Url