Skip to content
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Python packages with our recommended tooling set up and ready to go.
## Using our Python package template

Some quick instructions for using our template are below.
We also have a longer [tutorial](./tutorial.md) that has been presented in workshops for researchers at UCL.
We also have a longer [tutorial](./docs/pages/tutorial.md) that has been presented in workshops for researchers at UCL.
Slides from presentations we have given on the project are available in the
[`python-tooling-presentations` repository](https://github.com/ucl-arc/python-tooling-presentations).

Expand Down
1 change: 1 addition & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ gem 'jekyll', '~>4'

group :jekyll_plugins do
gem 'just-the-docs','~>0'
gem 'jekyll-gfm-admonitions', '~>1.2'
end
7 changes: 7 additions & 0 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GEM
bigdecimal (3.1.9)
colorator (1.1.0)
concurrent-ruby (1.3.5)
cssminify (1.0.2)
csv (3.3.4)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
Expand Down Expand Up @@ -64,6 +65,10 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-gfm-admonitions (1.2.0)
cssminify (~> 1.0)
jekyll (>= 3.0, < 5.0)
octicons (~> 19.8)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (3.1.0)
Expand All @@ -87,6 +92,7 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
octicons (19.21.2)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (6.0.2)
Expand Down Expand Up @@ -166,6 +172,7 @@ PLATFORMS

DEPENDENCIES
jekyll (~> 4)
jekyll-gfm-admonitions (~> 1.2)
just-the-docs (~> 0)

BUNDLED WITH
Expand Down
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ aux_links:
aux_links_new_tab: true

logo: "https://raw.githubusercontent.com/UCL-ARC/python-tooling/main/images/logo.svg"

plugins:
- jekyll-gfm-admonitions
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ other packages.
If you just want to get started with our recommendations, we have
[our own Python package template](https://github.com/UCL-ARC/python-tooling#using-this-template)
that lives in the same repository as these pages.
A [tutorial]({% link pages/tutorial.md %}) explaining how to use the template is also available.

Otherwise, each page on this site highlights recommended packages or services
for each area. These should not be taken as set in stone for every project, but
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/templates.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.LIX] Try to keep the LIX score (49.92) below 35.
Raw output
{"message": "[Readability.LIX] Try to keep the LIX score (49.92) below 35.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.SMOG] Try to keep the SMOG grade (11.77) below 10.
Raw output
{"message": "[Readability.SMOG] Try to keep the SMOG grade (11.77) below 10.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.FleschReadingEase] Try to keep the Flesch reading ease score (49.26) above 70.
Raw output
{"message": "[Readability.FleschReadingEase] Try to keep the Flesch reading ease score (49.26) above 70.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.AutomatedReadability] Try to keep the Automated Readability Index (10.94) below 8.
Raw output
{"message": "[Readability.AutomatedReadability] Try to keep the Automated Readability Index (10.94) below 8.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.ColemanLiau] Try to keep the Coleman–Liau Index grade (11.27) below 9.
Raw output
{"message": "[Readability.ColemanLiau] Try to keep the Coleman–Liau Index grade (11.27) below 9.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.GunningFog] Try to keep the Gunning-Fog index (11.48) below 10.
Raw output
{"message": "[Readability.GunningFog] Try to keep the Gunning-Fog index (11.48) below 10.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/templates.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/templates.md#L1

[Readability.FleschKincaid] Try to keep the Flesch–Kincaid grade level (11.07) below 8.
Raw output
{"message": "[Readability.FleschKincaid] Try to keep the Flesch–Kincaid grade level (11.07) below 8.", "location": {"path": "docs/pages/templates.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}
title: Templates
layout: default
nav_order: 2
nav_order: 3
---

## Package templates
Expand All @@ -12,7 +12,7 @@
repository contains our recommended package template for new ARC projects. It
pre-configures the recommended tools listed in the other pages of this site. If
you are working on a new project, our template should be a good starting point!
We have a [tutorial](https://github.com/UCL-ARC/python-tooling/blob/main/tutorial.md)
We have a [tutorial]({% link pages/tutorial.md %})
available with detailed instructions for creating a package using the template
and how to use the newly created package with some of the tools included.

Expand Down
12 changes: 9 additions & 3 deletions tutorial.md → docs/pages/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Tutorial: creating a package using our template
---

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.ColemanLiau] Try to keep the Coleman–Liau Index grade (9.82) below 9.
Raw output
{"message": "[Readability.ColemanLiau] Try to keep the Coleman–Liau Index grade (9.82) below 9.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.GunningFog] Try to keep the Gunning-Fog index (10.65) below 10.
Raw output
{"message": "[Readability.GunningFog] Try to keep the Gunning-Fog index (10.65) below 10.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.FleschKincaid] Try to keep the Flesch–Kincaid grade level (8.70) below 8.
Raw output
{"message": "[Readability.FleschKincaid] Try to keep the Flesch–Kincaid grade level (8.70) below 8.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.LIX] Try to keep the LIX score (39.17) below 35.
Raw output
{"message": "[Readability.LIX] Try to keep the LIX score (39.17) below 35.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.SMOG] Try to keep the SMOG grade (11.20) below 10.
Raw output
{"message": "[Readability.SMOG] Try to keep the SMOG grade (11.20) below 10.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}

Check warning on line 1 in docs/pages/tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/pages/tutorial.md#L1

[Readability.FleschReadingEase] Try to keep the Flesch reading ease score (58.10) above 70.
Raw output
{"message": "[Readability.FleschReadingEase] Try to keep the Flesch reading ease score (58.10) above 70.", "location": {"path": "docs/pages/tutorial.md", "range": {"start": {"line": 1, "column": 1}}}, "severity": "WARNING"}
title: Template tutorial
layout: default
nav_order: 2
---

## Tutorial: creating a package using our template

In this tutorial, we will go through the steps to set up a Python package using the `UCL-ARC/python-tooling` 🍪 cookiecutter template.
We'll also show you how to use your new package with some of the tools included.
Expand All @@ -10,7 +16,7 @@

## ⚙️ Prerequisites for using the template

<details><summary>Click to expand… </summary> <!-- markdownlint-disable-line MD033 -->
<details markdown="1"><summary markdown="span">Click to expand… </summary> <!-- markdownlint-disable-line MD033 -->

To use the template you'll need the following software:

Expand Down Expand Up @@ -298,7 +304,7 @@

from the root of the project repository. Note that `uv>=0.6.7` is required to use the `--group` option.

<details><summary>Using venv as an alternative to uv </summary> <!-- markdownlint-disable-line MD033 -->
<details markdown="1"><summary markdown="span">Using venv as an alternative to uv </summary> <!-- markdownlint-disable-line MD033 -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My limited understanding of this is that these attributes give extra information to the Kramdown Markdown processor to avoid it mangling the HTML blocks. I found them from a blog post which references a GitHub issue on GitHub Docs repository.


Alternatively, you can use the [`venv` module](https://docs.python.org/3/library/venv.html), which is slower and has fewer features, when compared to `uv`, but is built-in to the Python standard library. `venv` has the advantage of being available in any Python (3.3+) environment, but unlike `uv` will not by itself allow you to use a different Python version from the system level install. A common pattern is to store the virtual environment files in a directory `.venv` within the root directory of the project repository. This can be achieved by running

Expand Down