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 autoupdate 2024-10-16 #358

Open
wants to merge 1 commit into
base: main
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
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/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: no-commit-to-branch
- id: check-yaml
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions src/python-fastui/fastui/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

All CamelCase names in the namespace should be components.
"""

import typing as _t

import pydantic as _p
Expand Down
2 changes: 1 addition & 1 deletion src/python-fastui/fastui/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/python-fastui/requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/python-fastui/tests/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down