From 663d34c907fb826e802a50a0b618cf9260085d85 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 28 Aug 2025 22:33:01 +0200 Subject: [PATCH] Fix typos discovered by codespell --- CONTRIBUTING.md | 2 +- Makefile | 4 ++-- SECURITY.md | 4 ++-- .../homepage_elements/featured/templates/featured_setup.html | 2 +- src/templates/admin/core/flat_base.html | 2 +- src/templates/admin/core/manage_access_requests.html | 2 +- src/templates/admin/cron/readers.html | 2 +- src/templates/admin/elements/account_roles.html | 2 +- src/templates/admin/elements/give_me_options_js.html | 2 +- src/templates/admin/elements/issue/new_galley.html | 2 +- src/templates/admin/repository/author_article.html | 2 +- .../admin/repository/review/list_review_recommendations.html | 4 ++-- src/templates/admin/repository/review/manage_review.html | 2 +- .../admin/repository/review/manage_review_recommendation.html | 4 ++-- src/templates/admin/repository/review/review_detail.html | 2 +- src/templates/admin/repository/submit/files.html | 2 +- src/templates/admin/submission/edit/author.html | 2 +- src/templates/common/metadata/preprint_dc.html | 2 +- src/themes/OLH/assets/foundation-sites/customizer/index.html | 2 +- src/themes/clean/README.md | 2 +- .../templates/elements/accounts/edit_profile_body_block.html | 2 +- .../templates/typesetting/elements/production_files.html | 2 +- src/typesetting/templates/typesetting/index.html | 2 +- src/utils/install/journal_defaults.json | 4 ++-- 24 files changed, 29 insertions(+), 29 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ad4905c71..6847bab11e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Thanks for considering contributing to Janeway! - To report a bug please provide as much information as possible on the action you were undertaking. It would be preferable if we could have the stack trace for the error supplied. - To suggest a new feature please describe it as in depth as possible, it will be considered and may be added to a future release of Janeway. -- To maintain a consistent and readable codebase, we require all Python code to be automatically formatted with Black and linted with [Ruff](https://docs.astral.sh/ruff/formatter/). These tools help ensure code style uniformity and catch potential issues early. Once you have installed the development dependencies, you can run `ruff format .`. We strongly recommend adding our hooks to your repository config (`git config --local core.hooksPath .git-hooks`) to avoid commiting unformatted code. +- To maintain a consistent and readable codebase, we require all Python code to be automatically formatted with Black and linted with [Ruff](https://docs.astral.sh/ruff/formatter/). These tools help ensure code style uniformity and catch potential issues early. Once you have installed the development dependencies, you can run `ruff format .`. We strongly recommend adding our hooks to your repository config (`git config --local core.hooksPath .git-hooks`) to avoid committing unformatted code. - When writing a commit message, we adhere to the [conventional commits specification](https://www.conventionalcommits.org/en/v1.0.0/). We also add a reference in the commit message (e.g `fix: #123 fixed a bug where [...]`) - When a PR is expected to resolve an issue you can flag it as `closes #123` and the issue will be closed once the PR is merged into the main branch 4 diff --git a/Makefile b/Makefile index d1b0082220..1b2811b54d 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ all: help run: janeway help: ## Show this help. @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' -janeway: ## Run Janeway web server in attached mode. If NO_DEPS is not set, runs all dependant services detached. +janeway: ## Run Janeway web server in attached mode. If NO_DEPS is not set, runs all dependent services detached. $(COMPOSE_CMD) run --rm start_dependencies $(COMPOSE_CMD) $(_VERBOSE) run $(NO_DEPS) --rm --service-ports janeway-web $(entrypoint) command: ## Run Janeway in a container and pass through a django command passed as the CMD environment variable (e.g make command CMD="migrate -v core 0024") @@ -102,7 +102,7 @@ db-save-backup: # Archives the current db as a tarball. Returns the output file @sudo tar -zcf $(DB_VENDOR)-$(DATE)-$(SUFFIX).tar.gz $(DB_VOLUME) @echo "$(DB_VENDOR)-$(DATE)-$(SUFFIX).tar.gz" @sudo chown -R `id -un`:`id -gn` $(DB_VENDOR)-$(DATE)-$(SUFFIX).tar.gz -db-load-backup: #Loads a previosuly captured backup in the db directory (e.g.: make db-load_backup DB=postgres-21-02-03-3948681d1b6dc2.tar.gz) +db-load-backup: #Loads a previously captured backup in the db directory (e.g.: make db-load_backup DB=postgres-21-02-03-3948681d1b6dc2.tar.gz) @BACKUP=$(BACKUP);echo "Loading $${BACKUP:?Please set to the name of the backup file}" @tar -zxf $(BACKUP) -C /tmp/ @docker kill `docker ps -q --filter 'name=janeway-*'` 2>&1 | true diff --git a/SECURITY.md b/SECURITY.md index e91a7f5f2c..f0261bdc58 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,7 +2,7 @@ ## Supported Versions -We currently only support one major version of Janeway. The master development branch becomes the next major release of Janeway and receieves security support. Security issues that only affect the master branch and not any stable released versions can be reported as Bugs and are fixed in public. Security vulnerabilities that effect a support branch, listed below, should be reported using the details provided under Reporting a Vulnerability. +We currently only support one major version of Janeway. The master development branch becomes the next major release of Janeway and receives security support. Security issues that only affect the master branch and not any stable released versions can be reported as Bugs and are fixed in public. Security vulnerabilities that effect a support branch, listed below, should be reported using the details provided under Reporting a Vulnerability. | Version | Supported | | ------- | ------------------ | @@ -33,7 +33,7 @@ We will follow this process: | Activity | Days From Initial Report | |---------------------------------------|--------------------------| | Acknowledge Initial Report | 1 day | -| Provide Initial Assesment to Reporter | 5 days | +| Provide Initial Assessment to Reporter | 5 days | | Create and Test Fix | 14 days | | Publish Security Advisory on Github | 21 days | diff --git a/src/core/homepage_elements/featured/templates/featured_setup.html b/src/core/homepage_elements/featured/templates/featured_setup.html index 4b38399dc8..2ebdaf97f3 100644 --- a/src/core/homepage_elements/featured/templates/featured_setup.html +++ b/src/core/homepage_elements/featured/templates/featured_setup.html @@ -54,7 +54,7 @@

Add New Featured Article

{{ article.date_published }} {{ article.author_list }} - diff --git a/src/templates/admin/core/flat_base.html b/src/templates/admin/core/flat_base.html index b86d3da57b..931a9614c8 100644 --- a/src/templates/admin/core/flat_base.html +++ b/src/templates/admin/core/flat_base.html @@ -3,7 +3,7 @@ {% comment %} A base template that includes some accessibility features: - the contextual_title block, which adds the contextual site name for the browser tab -- supression of toastr modal, so that you can include messages_in_callout where you like +- suppression of toastr modal, so that you can include messages_in_callout where you like {% endcomment %} {% block title %} diff --git a/src/templates/admin/core/manage_access_requests.html b/src/templates/admin/core/manage_access_requests.html index f41f7660fc..0320d94d42 100644 --- a/src/templates/admin/core/manage_access_requests.html +++ b/src/templates/admin/core/manage_access_requests.html @@ -9,7 +9,7 @@ {% block body %}
-

Active permission requests are listed below. Once approved or rejected they will be removed. Requesters will be notifed of your decision automatically.

+

Active permission requests are listed below. Once approved or rejected they will be removed. Requesters will be notified of your decision automatically.

diff --git a/src/templates/admin/cron/readers.html b/src/templates/admin/cron/readers.html index 2570685f47..7ae3c8a5dc 100644 --- a/src/templates/admin/cron/readers.html +++ b/src/templates/admin/cron/readers.html @@ -19,7 +19,7 @@

Readers

-

Readers recieve notifications when new articles are published in a journal. Note: Only users themselves can add and remove themselves from the Reader role.

+

Readers receive notifications when new articles are published in a journal. Note: Only users themselves can add and remove themselves from the Reader role.

diff --git a/src/templates/admin/elements/account_roles.html b/src/templates/admin/elements/account_roles.html index d9c0897fbb..6713d2a37f 100644 --- a/src/templates/admin/elements/account_roles.html +++ b/src/templates/admin/elements/account_roles.html @@ -16,7 +16,7 @@ {% if accountrole.role.slug == 'author' and request.journal %} (base role) {% comment %} - This attempts to gaurd against removing the last role a person has, + This attempts to guard against removing the last role a person has, when doing so would remove them from view, preventing the user from undoing their action or adding another role. {% endcomment %} diff --git a/src/templates/admin/elements/give_me_options_js.html b/src/templates/admin/elements/give_me_options_js.html index 22f59e5b06..9e91aa21f1 100644 --- a/src/templates/admin/elements/give_me_options_js.html +++ b/src/templates/admin/elements/give_me_options_js.html @@ -2,7 +2,7 @@ Give me options This component is CSS and JS only. The HTML must be rewritten each time it is used. - pid - a unique id that allows the component to be re-used on the same page. + pid - a unique id that allows the component to be reused on the same page. {% endcomment %}