Skip to content

Commit b2f9e80

Browse files
committed
Make it build
1 parent 66544d9 commit b2f9e80

File tree

4 files changed

+32
-22
lines changed

4 files changed

+32
-22
lines changed

.pre-commit-config.yaml

+9-14
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
1616
- repo: https://github.com/adamchainz/django-upgrade
17-
rev: 1.15.0
17+
rev: 1.16.0
1818
hooks:
1919
- id: django-upgrade
2020
args: [--target-version, "3.2"]
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: absolufy-imports
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.1.13"
26+
rev: "v0.3.2"
2727
hooks:
2828
- id: ruff
2929
- id: ruff-format
@@ -33,21 +33,16 @@ repos:
3333
- id: prettier
3434
args: [--list-different, --no-semi]
3535
exclude: "^conf/|.*\\.html$"
36-
- repo: https://github.com/pre-commit/mirrors-eslint
37-
rev: v8.54.0
38-
hooks:
39-
- id: eslint
40-
additional_dependencies:
41-
- eslint
42-
- eslint-config-prettier
43-
- "@babel/core"
44-
- "@babel/eslint-parser"
45-
- "@babel/preset-env"
36+
- repo: https://github.com/biomejs/pre-commit
37+
rev: "v0.1.0"
38+
hooks:
39+
- id: biome-check
40+
additional_dependencies: ["@biomejs/[email protected]"]
4641
- repo: https://github.com/tox-dev/pyproject-fmt
47-
rev: 1.6.0
42+
rev: 1.7.0
4843
hooks:
4944
- id: pyproject-fmt
5045
- repo: https://github.com/abravalheri/validate-pyproject
51-
rev: v0.15
46+
rev: v0.16
5247
hooks:
5348
- id: validate-pyproject

.readthedocs.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.11"
10+
11+
sphinx:
12+
configuration: docs/conf.py
13+
# python:
14+
# install:
15+
# - requirements: docs/requirements.txt
16+
# - method: pip
17+
# path: .

form_designer/models.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def old_name_loader(submission, old_name):
234234
if isinstance(field_type, dict):
235235
continue
236236
warnings.warn(
237-
"Form designer field type {!r} still uses the old configuration format.".format(
238-
field_type
239-
),
237+
f"Form designer field type {field_type!r} still uses the old configuration format.",
240238
DeprecationWarning,
241239
stacklevel=1,
242240
)

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ path = "form_designer/__init__.py"
5353
include = ["/form_designer"]
5454

5555
[tool.ruff]
56-
extend-select = [
56+
lint.extend-select = [
5757
# pyflakes, pycodestyle
5858
"F", "E", "W",
5959
# mmcabe
@@ -89,7 +89,7 @@ extend-select = [
8989
# unused noqa
9090
"RUF100",
9191
]
92-
extend-ignore = [
92+
lint.extend-ignore = [
9393
# Allow zip() without strict=
9494
"B905",
9595
# No line length errors
@@ -99,14 +99,14 @@ fix = true
9999
show-fixes = true
100100
target-version = "py39"
101101

102-
[tool.ruff.isort]
102+
[tool.ruff.lint.isort]
103103
combine-as-imports = true
104104
lines-after-imports = 2
105105

106-
[tool.ruff.mccabe]
106+
[tool.ruff.lint.mccabe]
107107
max-complexity = 15
108108

109-
[tool.ruff.per-file-ignores]
109+
[tool.ruff.lint.per-file-ignores]
110110
"*/migrat*/*" = [
111111
# Allow using PascalCase model names in migrations
112112
"N806",

0 commit comments

Comments
 (0)