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.ci] pre-commit autoupdate #344

Merged
merged 2 commits into from
Dec 17, 2024
Merged
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
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-yaml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
rev: v0.8.3
hooks:
- id: ruff
args: [--fix]
Expand Down
6 changes: 4 additions & 2 deletions examples/default/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)
ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)

ASGI_APPLICATION = "default.asgi.application"

Expand Down Expand Up @@ -446,7 +448,7 @@
)

# sentry
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down
6 changes: 3 additions & 3 deletions examples/default/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise",
"whitenoise"
]
dynamic = ["version"]
name = "default"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -76,7 +76,7 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl",
"types-openpyxl"
]

[tool.bumpver]
Expand Down
1 change: 1 addition & 0 deletions examples/default/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "base.html" %}

{% block content %}
<h1>500</h1>
<p>Uh oh! Something went wrong on our end.</p>
Expand Down
13 changes: 13 additions & 0 deletions examples/default/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{% load static %}
{% load django_htmx %}
{% load tailwind_cli %}

<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>

{% block title %}
Default
{% endblock title %}

</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="preconnect" href="https://rsms.me" preconnect>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">

{% block css %}
{% endblock css %}

{% tailwind_css %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"
Expand Down Expand Up @@ -65,18 +70,26 @@
src="https://unpkg.com/[email protected]"
integrity="sha384-Rpe/8orFUm5Q1GplYBHxbuA8Az8O8C5sAoOsdbRWkqPjKFaxPgGZipj4zeHL7lxX"
crossorigin="anonymous"></script>

{% block javascript_head %}
{% endblock javascript_head %}

</head>

{% block body %}
<body {% if debug %}class="debug-screens"{% endif %}
hx-ext="head-support, preload">
<main class="mt-16">

{% block content %}
{% endblock content %}

</main>

{% block javascript_foot %}
{% endblock javascript_foot %}

</body>
{% endblock body %}

</html>
6 changes: 4 additions & 2 deletions examples/postgis/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)
ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)

ASGI_APPLICATION = "default.asgi.application"

Expand Down Expand Up @@ -446,7 +448,7 @@
)

# sentry
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down
6 changes: 3 additions & 3 deletions examples/postgis/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise",
"whitenoise"
]
dynamic = ["version"]
name = "default"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -76,7 +76,7 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl",
"types-openpyxl"
]

[tool.bumpver]
Expand Down
13 changes: 13 additions & 0 deletions examples/postgis/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{% load static %}
{% load django_htmx %}
{% load tailwind_cli %}

<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>

{% block title %}
Default
{% endblock title %}

</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="preconnect" href="https://rsms.me" preconnect>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">

{% block css %}
{% endblock css %}

{% tailwind_css %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"
Expand Down Expand Up @@ -65,18 +70,26 @@
src="https://unpkg.com/[email protected]"
integrity="sha384-Rpe/8orFUm5Q1GplYBHxbuA8Az8O8C5sAoOsdbRWkqPjKFaxPgGZipj4zeHL7lxX"
crossorigin="anonymous"></script>

{% block javascript_head %}
{% endblock javascript_head %}

</head>

{% block body %}
<body {% if debug %}class="debug-screens"{% endif %}
hx-ext="head-support, preload">
<main class="mt-16">

{% block content %}
{% endblock content %}

</main>

{% block javascript_foot %}
{% endblock javascript_foot %}

</body>
{% endblock body %}

</html>
12 changes: 6 additions & 6 deletions examples/with_vite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise",
"whitenoise"
]
dynamic = ["version"]
name = "with_vite"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -77,7 +77,7 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl",
"types-openpyxl"
]

[tool.bumpver]
Expand All @@ -92,12 +92,12 @@ version_pattern = "YYYY.MM.INC1"
".copier/project.yml" = [
'current_version: {version}'
]
"with_vite/__init__.py" = [
'__version__ = "{version}"'
]
"tests/test_version.py" = [
'assert __version__ == "{version}"'
]
"with_vite/__init__.py" = [
'__version__ = "{version}"'
]

[tool.coverage.report]
exclude_lines = [
Expand Down
1 change: 1 addition & 0 deletions examples/with_vite/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "base.html" %}

{% block content %}
<h1>Index</h1>
<p>
Expand Down
6 changes: 4 additions & 2 deletions examples/with_vite/with_vite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)
ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)

ASGI_APPLICATION = "with_vite.asgi.application"

Expand Down Expand Up @@ -456,7 +458,7 @@
DJANGO_VITE_DEV_SERVER_PORT = 5173

# sentry
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down
Loading