-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
125 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-builtin-literals | ||
|
@@ -14,33 +14,26 @@ repos: | |
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: 1.15.0 | ||
rev: 1.18.0 | ||
hooks: | ||
- id: django-upgrade | ||
args: [--target-version, "3.2"] | ||
- repo: https://github.com/MarcoGorelli/absolufy-imports | ||
rev: v0.3.1 | ||
hooks: | ||
- id: absolufy-imports | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "v0.0.291" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.4.9" | ||
hooks: | ||
- id: ruff | ||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.3 | ||
- id: ruff-format | ||
- repo: https://github.com/biomejs/pre-commit | ||
rev: "v0.4.0" | ||
hooks: | ||
- id: prettier | ||
args: [--list-different, --no-semi] | ||
exclude: "^conf/|.*\\.html$" | ||
- id: biome-check | ||
additional_dependencies: ["@biomejs/[email protected]"] | ||
args: [--unsafe] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: 1.1.0 | ||
rev: 2.1.3 | ||
hooks: | ||
- id: pyproject-fmt | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.14 | ||
rev: v0.18 | ||
hooks: | ||
- id: validate-pyproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"semicolons": "asNeeded" | ||
} | ||
}, | ||
"css": { | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2 | ||
}, | ||
"linter": { | ||
"enabled": true | ||
} | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"complexity": { | ||
"noForEach": "off", | ||
"useOptionalChain": "off" | ||
}, | ||
"suspicious": { | ||
"noAssignInExpressions": "off" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ requires = [ | |
name = "django-imagefield" | ||
description = "Image field for Django" | ||
readme = "README.rst" | ||
license = {text = "BSD-3-Clause"} | ||
license = { text = "BSD-3-Clause" } | ||
authors = [ | ||
{ name = "Matthias Kestenholz", email = "[email protected]" }, | ||
{ name = "Matthias Kestenholz", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
|
@@ -34,80 +34,85 @@ dynamic = [ | |
"version", | ||
] | ||
dependencies = [ | ||
"Pillow>=9", | ||
"pillow>=9", | ||
] | ||
[project.optional-dependencies] | ||
tests = [ | ||
optional-dependencies.tests = [ | ||
"coverage", | ||
"Pillow", | ||
"pillow", | ||
] | ||
[project.urls] | ||
Homepage = "https://github.com/matthiask/django-imagefield/" | ||
urls.Homepage = "https://github.com/matthiask/django-imagefield/" | ||
|
||
[tool.hatch.build] | ||
include = ["imagefield/"] | ||
include = [ | ||
"imagefield/", | ||
] | ||
|
||
[tool.hatch.version] | ||
path = "imagefield/__init__.py" | ||
|
||
[tool.ruff] | ||
extend-select = [ | ||
# pyflakes, pycodestyle | ||
"F", "E", "W", | ||
# mmcabe | ||
"C90", | ||
# isort | ||
"I", | ||
# pep8-naming | ||
"N", | ||
# pyupgrade | ||
"UP", | ||
# flake8-2020 | ||
"YTT", | ||
# flake8-boolean-trap | ||
"FBT", | ||
target-version = "py38" | ||
|
||
fix = true | ||
show-fixes = true | ||
lint.extend-select = [ | ||
# flake8-bugbear | ||
"B", | ||
# flake8-comprehensions | ||
"C4", | ||
# mmcabe | ||
"C90", | ||
# flake8-django | ||
"DJ", | ||
# flake8-implicit-string-concatenation | ||
"ISC", | ||
# flake8-pie | ||
"PIE", | ||
# flake8-simplify | ||
"SIM", | ||
"E", | ||
# pyflakes, pycodestyle | ||
"F", | ||
# flake8-boolean-trap | ||
"FBT", | ||
# isort | ||
"I", | ||
# flake8-gettext | ||
"INT", | ||
# flake8-implicit-string-concatenation | ||
"ISC", | ||
# pep8-naming | ||
"N", | ||
# pygrep-hooks | ||
"PGH", | ||
# flake8-pie | ||
"PIE", | ||
# pylint | ||
"PLC", "PLE", "PLW", | ||
"PLC", | ||
"PLE", | ||
"PLW", | ||
# unused noqa | ||
"RUF100", | ||
# flake8-simplify | ||
"SIM", | ||
# pyupgrade | ||
"UP", | ||
"W", | ||
# flake8-2020 | ||
"YTT", | ||
] | ||
extend-ignore = [ | ||
lint.extend-ignore = [ | ||
# Allow zip() without strict= | ||
"B905", | ||
# No line length errors | ||
"E501", | ||
# Percent-formatting is fine | ||
"UP031", | ||
] | ||
fix = true | ||
show-fixes = true | ||
target-version = "py38" | ||
|
||
[tool.ruff.isort] | ||
combine-as-imports = true | ||
lines-after-imports = 2 | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 15 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"*/migrat*/*" = [ | ||
lint.per-file-ignores."*/migrat*/*" = [ | ||
# Allow using PascalCase model names in migrations | ||
"N806", | ||
# Ignore the fact that migration files are invalid module names | ||
"N999", | ||
] | ||
lint.per-file-ignores."tests/*" = [ | ||
# Who cares about __str__ in the test suite | ||
"DJ008", | ||
] | ||
lint.isort.combine-as-imports = true | ||
lint.isort.lines-after-imports = 2 | ||
lint.mccabe.max-complexity = 15 |