-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
168 additions
and
143 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,35 +1,40 @@ | ||
exclude: ".yarn/|yarn.lock|static/f3cc" | ||
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$|static" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-builtin-literals | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: 1.20.0 | ||
rev: 1.21.0 | ||
hooks: | ||
- id: django-upgrade | ||
args: [--target-version, "3.2"] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.6.2" | ||
rev: "v0.6.4" | ||
hooks: | ||
- id: ruff | ||
args: [--unsafe-fixes] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
- repo: https://github.com/biomejs/pre-commit | ||
rev: "v0.4.0" | ||
hooks: | ||
- id: prettier | ||
args: [--list-different, --no-semi, "--trailing-comma=es5"] | ||
exclude: "^conf/|.*\\.html$" | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.56.0 | ||
- id: biome-check | ||
additional_dependencies: ["@biomejs/[email protected]"] | ||
args: [--unsafe] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: 2.2.3 | ||
hooks: | ||
- id: eslint | ||
additional_dependencies: | ||
- [email protected] | ||
- eslint-config-prettier | ||
- "@babel/core" | ||
- "@babel/eslint-parser" | ||
- "@babel/preset-env" | ||
- id: pyproject-fmt | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.19 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json", | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"a11y": { | ||
"noSvgWithoutTitle": "off" | ||
}, | ||
"correctness": { | ||
"noUndeclaredVariables": "error", | ||
"noUnusedImports": "error", | ||
"noUnusedVariables": "error", | ||
"useArrayLiterals": "error", | ||
"useHookAtTopLevel": "error" | ||
}, | ||
"security": { | ||
"noDangerouslySetInnerHtml": "warn" | ||
}, | ||
"style": { | ||
"noParameterAssign": "off", | ||
"useForOf": "warn" | ||
}, | ||
"suspicious": { | ||
"noArrayIndexKey": "warn", | ||
"noAssignInExpressions": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"semicolons": "asNeeded" | ||
}, | ||
"globals": ["django", "CKEDITOR"] | ||
}, | ||
"css": { | ||
"formatter": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": false | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,61 +1,66 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
requires = [ "hatchling" ] | ||
|
||
[project] | ||
name = "feincms3-cookiecontrol" | ||
dynamic = ["version"] | ||
description = "Cookie Control Panel for GDPR compliant feincms3 websites" | ||
readme = "README.rst" | ||
license = "BSD-3-Clause" | ||
requires-python = ">=3.9" | ||
license = { text = "BSD-3-Clause" } | ||
authors = [ | ||
{ name = "York Schickl", email = "[email protected]" }, | ||
{ name = "York Schickl", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.0", | ||
"Framework :: Django :: 4.1", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.0", | ||
"Framework :: Django :: 4.1", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
] | ||
dynamic = [ "version" ] | ||
dependencies = [ | ||
"Django>=3.2", | ||
"feincms3>=5.2.2", | ||
"django>=3.2", | ||
"feincms3>=5.2.2", | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"coverage", | ||
"requests", | ||
optional-dependencies.tests = [ | ||
"coverage", | ||
"requests", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/feinheit/feincms3-cookiecontrol/" | ||
urls.Homepage = "https://github.com/feinheit/feincms3-cookiecontrol/" | ||
|
||
[tool.hatch.build] | ||
include = ["feincms3_cookiecontrol/"] | ||
include = [ "feincms3_cookiecontrol/" ] | ||
|
||
[tool.hatch.version] | ||
path = "feincms3_cookiecontrol/__init__.py" | ||
|
||
[tool.ruff] | ||
target-version = "py39" | ||
|
||
fix = true | ||
show-fixes = true | ||
extend-select = [ | ||
# pyflakes, pycodestyle | ||
"F", "E", "W", | ||
"F", | ||
"E", | ||
"W", | ||
# mmcabe | ||
"C90", | ||
# isort | ||
|
@@ -97,21 +102,12 @@ extend-ignore = [ | |
# No line length errors | ||
"E501", | ||
] | ||
fix = true | ||
show-fixes = true | ||
target-version = "py39" | ||
|
||
[tool.ruff.isort] | ||
combine-as-imports = true | ||
lines-after-imports = 2 | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 15 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"*/migrat*/*" = [ | ||
mccabe.max-complexity = 15 | ||
per-file-ignores."*/migrat*/*" = [ | ||
# Allow using PascalCase model names in migrations | ||
"N806", | ||
# Ignore the fact that migration files are invalid module names | ||
"N999", | ||
] | ||
isort.combine-as-imports = true | ||
isort.lines-after-imports = 2 |
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
Oops, something went wrong.