-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from Jenselme/miscs
Miscs
- Loading branch information
Showing
21 changed files
with
442 additions
and
442 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ default_language_version: | |
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
|
@@ -50,33 +50,33 @@ repos: | |
- --allow-past-years | ||
|
||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: "1.16.0" | ||
rev: "1.22.1" | ||
hooks: | ||
- id: django-upgrade | ||
args: ["--target-version", "5.0"] | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.16.0 | ||
rev: v3.19.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py312-plus] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.9 | ||
rev: v0.7.4 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --preview] | ||
- id: ruff-format | ||
args: [--preview] | ||
|
||
- repo: https://github.com/seddonym/import-linter | ||
rev: v2.0 | ||
rev: v2.1 | ||
hooks: | ||
- id: import-linter | ||
|
||
- repo: https://github.com/Riverside-Healthcare/djLint | ||
rev: v1.34.1 | ||
rev: v1.36.1 | ||
hooks: | ||
- id: djlint-reformat-django | ||
- id: djlint-django | ||
|
@@ -88,7 +88,7 @@ repos: | |
args: [-e, SC1091] | ||
|
||
- repo: https://github.com/thibaudcolas/pre-commit-stylelint | ||
rev: v16.3.1 | ||
rev: v16.10.0 | ||
hooks: | ||
- id: stylelint | ||
args: [--fix] | ||
|
@@ -97,7 +97,7 @@ repos: | |
- "[email protected]" | ||
|
||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: "v9.12.0" | ||
rev: "v9.15.0" | ||
hooks: | ||
- id: eslint | ||
args: [--fix] | ||
|
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
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
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
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
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
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 |
---|---|---|
|
@@ -361,7 +361,14 @@ <h1>Unread</h1> | |
|
||
</p> | ||
<p class="mb-1"> | ||
<a class="text-white" href="https://github.com/Jenselme/legadilo/issues">Report a bug</a> | ||
<a class="text-white" href="https://github.com/Jenselme/legadilo/issues">Report a bug.</a> | ||
|
||
<span> | ||
|
||
Contact us at <a href="mailto:[email protected]">[email protected]</a> | ||
|
||
</span> | ||
|
||
</p> | ||
</footer> | ||
</body> | ||
|
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
from allauth.account.models import EmailAddress, EmailConfirmationHMAC | ||
from django.contrib.sites.models import Site | ||
from django.core import mail | ||
from django.test import override_settings | ||
from django.urls import reverse | ||
|
||
from legadilo.core.middlewares import CSPMiddleware | ||
|
@@ -39,6 +40,7 @@ class TestUserRegistration: | |
user_email = "[email protected]" | ||
password = "tester-password" # noqa: S105 possible hardcoded password. | ||
|
||
@override_settings(CONTACT_EMAIL="[email protected]") | ||
def test_registration_success(self, client, utc_tz, mocker, snapshot): | ||
self.client = client | ||
self.mocker = mocker | ||
|
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.