-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
345 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml (rejected hunks) | ||
@@ -20,25 +20,3 @@ jobs: | ||
py3version: "12" | ||
notebook_kernel: pam | ||
lint: false | ||
- | ||
- aws-pre-check: | ||
- runs-on: ubuntu-latest | ||
- outputs: | ||
- aws-secrets-exist: ${{ steps.secret-checker.outputs.SECRETS_EXIST }} | ||
- steps: | ||
- - id: secret-checker | ||
- name: 'Check secret access for fast fail' | ||
- run: | | ||
- echo "SECRETS_EXIST=$AWS_SECRETS_EXIST" >> $GITHUB_OUTPUT | ||
- echo "SECRETS_EXIST=$AWS_SECRETS_EXIST" >> $GITHUB_STEP_SUMMARY | ||
- env: | ||
- AWS_SECRETS_EXIST: ${{ secrets.AWS_ACCESS_KEY_ID != '' && secrets.AWS_SECRET_ACCESS_KEY != '' && secrets.AWS_S3_CODE_BUCKET != '' }} | ||
- | ||
- aws-upload: | ||
- needs: [test, aws-pre-check] | ||
- if: always() && needs.test.result == 'success' && needs.aws-pre-check.outputs.aws-secrets-exist == 'true' | ||
- uses: arup-group/actions-city-modelling-lab/.github/workflows/aws-upload.yml@main | ||
- secrets: | ||
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- AWS_S3_CODE_BUCKET: ${{ secrets.AWS_S3_CODE_BUCKET }} | ||
\ No newline at end of file |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
diff a/.github/workflows/docs.yml b/.github/workflows/docs.yml (rejected hunks) | ||
@@ -29,4 +29,4 @@ jobs: | ||
uses: arup-group/actions-city-modelling-lab/.github/workflows/docs-deploy.yml@main | ||
with: | ||
deploy_type: update_latest | ||
- notebook_kernel: pam | ||
\ No newline at end of file | ||
+ notebook_kernel: pam |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"defaults": { | ||
"reporters": [ | ||
"cli", | ||
[ | ||
"pa11y-ci-reporter-html", | ||
{ "destination": "./reports/pa11y", "includeZeroIssues": false } | ||
] | ||
], | ||
"timeout": 100000, | ||
"wait": 2000, | ||
"ignore": ["color-contrast"], | ||
"runners": [ | ||
"htmlcs", "axe" | ||
], | ||
"hideElements": "[id^='__codelineno'], .md-search__form, #__toc, clipboard-copy" | ||
}, | ||
"standard": "WCAG2AA", | ||
"comments": [ | ||
"Ignoring color-contrast due to https://github.com/pa11y/pa11y/issues/697.", | ||
"Hiding `clipboard-copy` until https://github.com/danielfrg/mkdocs-jupyter/pull/206 is merged.", | ||
"Hiding `[id^='__codelineno'], .md-search__form, #__toc` due to known false positives in mkdocs-material: https://github.com/squidfunk/mkdocs-material/discussions/4102" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks) | ||
@@ -8,22 +8,11 @@ repos: | ||
- id: check-added-large-files | ||
args: ["--maxkb=1000"] | ||
|
||
- - repo: https://github.com/psf/black | ||
- rev: 24.2.0 | ||
- hooks: | ||
- - id: black | ||
- | ||
- repo: https://github.com/astral-sh/ruff-pre-commit # https://beta.ruff.rs/docs/usage/#github-action | ||
- rev: v0.3.0 | ||
+ rev: v0.6.8 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix, --exit-non-zero-on-fix ] | ||
- - repo: https://github.com/nbQA-dev/nbQA | ||
- rev: 1.8.3 | ||
- hooks: | ||
- - id: nbqa-black | ||
- - id: nbqa-ruff | ||
- args: [ --fix, --exit-non-zero-on-fix ] | ||
|
||
- repo: local | ||
hooks: |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff a/CONTRIBUTING.md b/CONTRIBUTING.md (rejected hunks) | ||
@@ -4,11 +4,12 @@ We're really glad you're reading this, because we need volunteer developers to h | ||
|
||
Some of the resources to look at if you're interested in contributing: | ||
|
||
-* Look at open issues tagged with ["help wanted"](https://github.com/arup-group/pam/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) and ["good first issue"](https://github.com/arup-group/pam/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) | ||
-* Look at the [contributing guide in our documentation](https://arup-group.github.io/pam/contributing) | ||
+- Look at open issues tagged with ["help wanted"](https://github.com/arup-group/pam/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) and ["good first issue"](https://github.com/arup-group/pam/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) | ||
+- Look at the [contributing guide in our documentation](https://arup-group.github.io/pam/contributing) | ||
|
||
## Licensing | ||
By contributing to pam, i.e. through opening a pull request, you represent that your contributions are your own original work and that you have the right to license them, and you agree that your contributions are licensed under the MIT license. | ||
+ | ||
## Reporting bugs and requesting features | ||
|
||
You can open an issue on GitHub to report bugs or request new pam features. | ||
@@ -79,24 +80,23 @@ When adding docstrings, we request you use the [Google docstring style](https:// | ||
|
||
### Pre-release | ||
|
||
-- [ ] Make sure all unit and integration tests pass (This is best done by creating a pre-release pull request). | ||
-- [ ] Re-run tutorial Jupyter notebooks (`pytest examples/ --overwrite`). | ||
-- [ ] Make sure documentation builds without errors (`mike deploy [version]`, where `[version]` is the current minor release of the form `X.Y`). | ||
-- [ ] Make sure the [changelog][changelog] is up-to-date, especially that new features and backward incompatible changes are clearly marked. | ||
+- Make sure all unit and integration tests pass (This is best done by creating a pre-release pull request). | ||
+- Re-run tutorial Jupyter notebooks (`pytest examples/ --overwrite`). | ||
+- Make sure documentation builds without errors (`mike deploy [version]`, where `[version]` is the current minor release of the form `X.Y`). | ||
+- Make sure the [changelog][changelog] is up-to-date, especially that new features and backward incompatible changes are clearly marked. | ||
|
||
### Create release | ||
|
||
-- [ ] Bump the version number in `src/pam/__init__.py` | ||
-- [ ] Update the [changelog][changelog] with final version number of the form `vX.Y.Z`, release date, and [github `compare` link](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits) (at the bottom of the page). | ||
-- [ ] Commit with message `Release vX.Y.Z`, then add a `vX.Y.Z` tag. | ||
-- [ ] Create a release pull request to verify that the conda package builds successfully. | ||
-- [ ] Once the PR is approved and merged, create a release through the GitHub web interface, using the same tag, titling it `Release vX.Y.Z` and include all the changelog elements that are *not* flagged as **internal**. | ||
+- Bump the version number in `src/pam/__init__.py` | ||
+- Update the [changelog][changelog] with final version number of the form `vX.Y.Z`, release date, and [github `compare` link](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits) (at the bottom of the page). | ||
+- Commit with message `Release vX.Y.Z`, then add a `vX.Y.Z` tag. | ||
+- Create a release pull request to verify that the conda package builds successfully. | ||
+- Once the PR is approved and merged, create a release through the GitHub web interface, using the same tag, titling it `Release vX.Y.Z` and include all the changelog elements that are *not- flagged as **internal**. | ||
|
||
### Post-release | ||
|
||
-- [ ] Update the changelog, adding a new `[Unreleased]` heading. | ||
-- [ ] Update `src/pam/__init__.py` to the next version appended with `.dev0`, in preparation for the next main commit. | ||
- | ||
+- Update the changelog, adding a new `[Unreleased]` heading. | ||
+- Update `src/pam/__init__.py` to the next version appended with `.dev0`, in preparation for the next main commit. | ||
|
||
<!--- --8<-- [end:docs] --> | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff a/README.md b/README.md (rejected hunks) | ||
@@ -21,7 +21,6 @@ To install pam | ||
### As a user | ||
<!--- --8<-- [start:docs-install-user] --> | ||
|
||
- | ||
``` shell | ||
|
||
mamba create -n pam -c conda-forge -c city-modelling-lab cml-pam | ||
@@ -60,14 +59,13 @@ For more information, see our [documentation](https://arup-group.github.io/pam/l | ||
## Building the documentation | ||
|
||
If you are unable to access the online documentation, you can build the documentation locally. | ||
-First, [install a development environment of pam](https://arup-group.github.io/pam/latest/contributing/coding/), then deploy the documentation using [mike](https://github.com/jimporter/mike): | ||
+First, [install a development environment of pam](https://arup-group.github.io/pam/latest/contributing/coding/), then deploy the documentation using [MkDocs](https://www.mkdocs.org/): | ||
|
||
-``` | ||
-mike deploy develop | ||
-mike serve | ||
+``` shell | ||
+mkdocs serve | ||
``` | ||
|
||
-Then you can view the documentation in a browser at http://localhost:8000/. | ||
+Then you can view the documentation in a browser at <http://localhost:8000/>. | ||
|
||
## Credits | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff a/docs/overrides/main.html b/docs/overrides/main.html (rejected hunks) | ||
@@ -3,8 +3,6 @@ | ||
{% extends "base.html" %} | ||
|
||
<!--Add download button to all pages built from jupyter notebooks--> | ||
- | ||
- | ||
{% block content %} | ||
{% if page.nb_url %} | ||
<a href="{{ page.nb_url }}" title="Download Notebook" class="md-content__button md-icon"> | ||
@@ -14,4 +12,3 @@ | ||
|
||
{{ super() }} | ||
{% endblock content %} | ||
- |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
diff a/mkdocs.yml b/mkdocs.yml (rejected hunks) | ||
@@ -14,7 +14,6 @@ theme: | ||
- navigation.indexes | ||
- navigation.top | ||
- content.code.copy | ||
- - content.code.annotate | ||
repo_url: https://github.com/arup-group/pam/ | ||
site_dir: .docs | ||
markdown_extensions: |
Oops, something went wrong.