From 181bb1ecb8bdc2687daf9c8bfe5523a77192848f Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Thu, 31 Oct 2024 15:10:41 -0400 Subject: [PATCH] style: :art: ran pre-commit hooks, apply fixes --- .github/_project-dependabot.yml | 1 - .github/workflows/add-to-project.yml | 6 ++---- .github/workflows/deploy-docs.yml | 4 ++-- .vscode/python.code-snippets | 9 ++++----- .../seedcase-project/seedcase-theme/_extension.yml | 4 ++-- .../seedcase-theme/favicon/site.webmanifest | 2 +- .../seedcase-theme/logos/mjoelner-logo.svg | 2 +- .../seedcase-project/seedcase-theme/logos/rm-logo.svg | 2 +- justfile | 2 +- ruff.toml | 6 +++--- 10 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/_project-dependabot.yml b/.github/_project-dependabot.yml index 59e1867..711e97d 100644 --- a/.github/_project-dependabot.yml +++ b/.github/_project-dependabot.yml @@ -10,4 +10,3 @@ updates: include: scope assignees: - "lwjohnst86" - diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index dddcc49..4b52395 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -6,7 +6,7 @@ on: - opened - reopened - transferred - pull_request: + pull_request: types: - reopened - opened @@ -21,7 +21,7 @@ jobs: steps: - name: Add issue or PR to project board uses: actions/add-to-project@v1.0.2 - with: + with: project-url: https://github.com/orgs/seedcase-project/projects/18 github-token: ${{ secrets.ADD_TO_BOARD }} @@ -33,5 +33,3 @@ jobs: AUTHOR: ${{ github.event.pull_request.user.login }} PR: ${{ github.event.pull_request.html_url }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 562dc78..4001fa7 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -2,7 +2,7 @@ name: Deploy documentation as website on: push: - branches: + branches: - main paths: - docs/** @@ -14,5 +14,5 @@ on: jobs: build-deploy-docs: uses: seedcase-project/.github/.github/workflows/deploy-docs-with-python.yml@main - secrets: + secrets: netlify-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.vscode/python.code-snippets b/.vscode/python.code-snippets index 7ae72cc..0b74d75 100644 --- a/.vscode/python.code-snippets +++ b/.vscode/python.code-snippets @@ -1,7 +1,7 @@ { - // Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and + // Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: - // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected. // Example: // "Print to console": { @@ -13,7 +13,7 @@ // "description": "Log output to console" // } "Insert a Python test": { - "prefix": "test-aaa", + "prefix": "test-aaa", "body": [ "def test_$1():", " # Arrange", @@ -25,9 +25,8 @@ " # Assert", " $4", "", - ], + ], "description": "Create AAA test" } } - diff --git a/_extensions/seedcase-project/seedcase-theme/_extension.yml b/_extensions/seedcase-project/seedcase-theme/_extension.yml index decfb32..a8cfb04 100644 --- a/_extensions/seedcase-project/seedcase-theme/_extension.yml +++ b/_extensions/seedcase-project/seedcase-theme/_extension.yml @@ -12,7 +12,7 @@ contributes: toc: true toc-location: right toc-depth: 3 - + project: project: type: website @@ -41,7 +41,7 @@ contributes: href: "https://community.seedcase-project.org/guides/" - text: "Funded by the Novo Nordisk Foundation" href: https://seedcase-project.org/#acknowledgements - + csl: vancouver.csl format: seedcase-theme-html diff --git a/_extensions/seedcase-project/seedcase-theme/favicon/site.webmanifest b/_extensions/seedcase-project/seedcase-theme/favicon/site.webmanifest index 45dc8a2..1dd9112 100644 --- a/_extensions/seedcase-project/seedcase-theme/favicon/site.webmanifest +++ b/_extensions/seedcase-project/seedcase-theme/favicon/site.webmanifest @@ -1 +1 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} diff --git a/_extensions/seedcase-project/seedcase-theme/logos/mjoelner-logo.svg b/_extensions/seedcase-project/seedcase-theme/logos/mjoelner-logo.svg index ca3479f..994d034 100644 --- a/_extensions/seedcase-project/seedcase-theme/logos/mjoelner-logo.svg +++ b/_extensions/seedcase-project/seedcase-theme/logos/mjoelner-logo.svg @@ -7,4 +7,4 @@ - \ No newline at end of file + diff --git a/_extensions/seedcase-project/seedcase-theme/logos/rm-logo.svg b/_extensions/seedcase-project/seedcase-theme/logos/rm-logo.svg index d782e8d..b97372c 100644 --- a/_extensions/seedcase-project/seedcase-theme/logos/rm-logo.svg +++ b/_extensions/seedcase-project/seedcase-theme/logos/rm-logo.svg @@ -22,4 +22,4 @@ - \ No newline at end of file + diff --git a/justfile b/justfile index f6733e1..90687a1 100644 --- a/justfile +++ b/justfile @@ -48,7 +48,7 @@ add-test-data: install-deps update-migrations poetry run python manage.py loaddata */*/fixtures/*.json # Reset local Sprout (remove __pycache__ folders, db, migrations, and persistent storage raw files) -reset-local: +reset-local: find . -type d -name "__pycache__" -exec rm -rf {} + find */**/migrations -type f ! -name '__init__.py' -exec rm {} \; rm db.sqlite3 diff --git a/ruff.toml b/ruff.toml index c07976c..f8ae9db 100644 --- a/ruff.toml +++ b/ruff.toml @@ -4,8 +4,8 @@ target-version = "py310" # In addition to the default formatters/linters, add these as well. [lint] extend-select = [ - # Add the `line-too-long` rule to the enforced rule set. - "E501", + # Add the `line-too-long` rule to the enforced rule set. + "E501", # Add rule that all functions have docstrings. "D", # Add isort to list. @@ -26,4 +26,4 @@ docstring-code-format = true [lint.per-file-ignores] # ignore "Module imported but unused" error in all init files "__init__.py" = ["F401"] -"**/tests/*" = ["D"] \ No newline at end of file +"**/tests/*" = ["D"]