Skip to content
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.29.1
rev: 1.30.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.14"
rev: "v0.15.10"
hooks:
- id: ruff
args: [--unsafe-fixes]
- id: ruff-format
- repo: https://github.com/biomejs/pre-commit
rev: "v2.3.13"
rev: "v2.4.11"
hooks:
- id: biome-check
args: [--unsafe]
verbose: true
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.12.1
rev: v2.21.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: v0.25
hooks:
- id: validate-pyproject
17 changes: 7 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,14 @@ optional-dependencies.tests = [
]
urls.Homepage = "https://github.com/matthiask/django-translated-fields/"

[tool.hatch.build]
include = [
[tool.hatch]
build.include = [
"translated_fields/",
]

[tool.hatch.version]
path = "translated_fields/__init__.py"
version.path = "translated_fields/__init__.py"

[tool.ruff]
target-version = "py39"

fix = true
show-fixes = true
lint.extend-select = [
Expand Down Expand Up @@ -112,7 +109,7 @@ lint.isort.combine-as-imports = true
lint.isort.lines-after-imports = 2
lint.mccabe.max-complexity = 15

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "testapp.settings"
python_files = [ "tests.py", "test_*.py" ]
addopts = "--reuse-db"
[tool.pytest]
ini_options.DJANGO_SETTINGS_MODULE = "testapp.settings"
ini_options.python_files = [ "tests.py", "test_*.py" ]
ini_options.addopts = "--reuse-db"
Loading