Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 19f137f

Browse files
committed
updates from review
1 parent 73ad00d commit 19f137f

17 files changed

+73
-38
lines changed

.containerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist/
44
.mypy_cache
55
.tox
66
.venv*
7+
venv*

.devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
// Set *default* container specific settings.json values on container create.
1414
"settings": {
15-
"python.defaultInterpreterPath": "/usr/local/bin/python",
15+
"python.defaultInterpreterPath": "/venv/bin/python",
1616
"python.linting.enabled": true
1717
},
1818
// Add the IDs of extensions you want installed when the container is created.
@@ -23,7 +23,6 @@
2323
// Make sure the files we are mapping into the container exist on the host
2424
"initializeCommand": "bash -c 'for i in $HOME/.inputrc $HOME/.bashrc_dev; do [ -f $i ] || touch $i; done'",
2525
"runArgs": [
26-
"--privileged",
2726
"--net=host",
2827
"-v=${localEnv:HOME}/.ssh:/root/.ssh",
2928
"-v=${localEnv:HOME}/.bashrc_dev:/root/.bashrc",

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/code.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
schedule:
77
# Run every Monday at 8am to check latest versions of dependencies
8-
- cron: "0 8 * * MON"
8+
- cron: "0 8 * * WED"
99

1010
jobs:
1111
lint:
@@ -23,9 +23,9 @@ jobs:
2323

2424
- name: Lint
2525
run: |
26-
touch requirements_dev.txt
26+
touch requirements_dev.txt requirements.txt
2727
python -m pip install --upgrade pip
28-
python -m pip install -r requirements_dev.txt -e .[dev]
28+
python -m pip install -r requirements.txt -r requirements_dev.txt -e .[dev]
2929
tox -e pre-commit,mypy
3030
3131
test:
@@ -59,7 +59,7 @@ jobs:
5959
run: pytest tests
6060

6161
- name: Upload coverage to Codecov
62-
uses: codecov/codecov-action@v2
62+
uses: codecov/codecov-action@v3
6363
with:
6464
name: ${{ matrix.python }}/${{ matrix.os }}
6565
files: cov.xml
@@ -82,8 +82,7 @@ jobs:
8282
with:
8383
path: /tmp/.buildx-cache
8484
key: ${{ runner.os }}-buildx-${{ github.sha }}
85-
restore-keys: |
86-
${{ runner.os }}-buildx-
85+
restore-keys: ${{ runner.os }}-buildx-
8786

8887
- name: Log in to GitHub Docker Registry
8988
if: github.event_name != 'pull_request'
@@ -118,10 +117,17 @@ jobs:
118117

119118
- name: Run tests in the container locked with requirements_dev.txt
120119
run: |
121-
docker run --name test build bash /project/tests/container_tests.sh
120+
docker run --name test build bash /project/.github/workflows/container_tests.sh
122121
docker cp test:/project/dist .
123122
docker cp test:/project/requirements.txt .
124123
docker cp test:/project/requirements_dev.txt .
124+
docker cp test:/project/cov.xml .
125+
126+
- name: Upload coverage to Codecov
127+
uses: codecov/codecov-action@v3
128+
with:
129+
name: 3.10-locked/ubuntu-latest
130+
files: cov.xml
125131

126132
- name: Build runtime image
127133
uses: docker/build-push-action@v3
@@ -147,9 +153,6 @@ jobs:
147153
runs-on: ubuntu-latest
148154

149155
steps:
150-
- name: Checkout
151-
uses: actions/checkout@v2
152-
153156
- uses: actions/setup-python@v4
154157
with:
155158
python-version: "3.10"

.github/workflows/linkcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Link Check
33
on:
44
schedule:
55
# Run every Monday at 8am to check URL links still resolve
6-
- cron: "0 8 * * MON"
6+
- cron: "0 8 * * WED"
77

88
jobs:
99
docs:

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The code in this repository conforms to standards set by the following tools:
6161
- isort_ for import ordering
6262
- mypy_ for static type checking
6363

64-
flake8 and black be run by pre-commit_. You can run the above checks on
64+
flake8 and black and isort are run by pre-commit_. You can run the above checks on
6565
all files with this command::
6666

6767
$ tox -e pre-commit,mypy
@@ -125,7 +125,7 @@ Release Process
125125

126126
To make a new release, please follow this checklist:
127127

128-
- Choose a new PEP440 compliant release number
128+
- Choose a new PEP440 compliant release number (see https://peps.python.org/pep-0440/)
129129
- Go to the GitHub release_ page
130130
- Choose ``Draft New Release``
131131
- Click ``Choose Tag`` and supply the new tag you chose (click create new tag)

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN cd /project && \
3131
pip install --upgrade pip && \
3232
pip install -r requirements.txt dist/*.whl && \
3333
pip freeze > requirements.txt && \
34+
# we don't want to include our own wheel in requirements - remove with sed
3435
sed -i '/file:\/\//d' requirements.txt
3536

3637
FROM python:3.10-slim as runtime

docs/explanations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Explanation of how the library works and why it works that way.
88
.. toctree::
99
:caption: Explanations
1010

11-
explanations/why-is-something-so
11+
explanations/decisions

docs/explanations/decisions.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. This Source Code Form is subject to the terms of the Mozilla Public
2+
.. License, v. 2.0. If a copy of the MPL was not distributed with this
3+
.. file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
Architectural Decision Records
6+
==============================
7+
8+
We record major architectural decisions in Architecture Decision Records (ADRs),
9+
as `described by Michael Nygard
10+
<http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions>`_.
11+
Below is the list of our current ADRs.
12+
13+
.. toctree::
14+
:maxdepth: 1
15+
:glob:
16+
17+
decisions/*

0 commit comments

Comments
 (0)