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

Commit cfcc162

Browse files
committed
system python for lint
1 parent 19f137f commit cfcc162

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
"ms-python.vscode-pylance"
2222
],
2323
// Make sure the files we are mapping into the container exist on the host
24-
"initializeCommand": "bash -c 'for i in $HOME/.inputrc $HOME/.bashrc_dev; do [ -f $i ] || touch $i; done'",
24+
"initializeCommand": "bash -c 'for i in $HOME/.inputrc; do [ -f $i ] || touch $i; done'",
2525
"runArgs": [
2626
"--net=host",
2727
"-v=${localEnv:HOME}/.ssh:/root/.ssh",
28-
"-v=${localEnv:HOME}/.bashrc_dev:/root/.bashrc",
2928
"-v=${localEnv:HOME}/.inputrc:/root/.inputrc"
3029
],
3130
"mounts": [

.github/workflows/code.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v2
1919

20-
- uses: actions/setup-python@v4
20+
- name: Setup python
21+
uses: actions/setup-python@v4
2122
with:
2223
python-version: "3.10"
2324

2425
- name: Lint
2526
run: |
2627
touch requirements_dev.txt requirements.txt
27-
python -m pip install --upgrade pip
28-
python -m pip install -r requirements.txt -r requirements_dev.txt -e .[dev]
28+
pip install -r requirements.txt -r requirements_dev.txt -e .[dev]
2929
tox -e pre-commit,mypy
3030
3131
test:
@@ -153,18 +153,13 @@ jobs:
153153
runs-on: ubuntu-latest
154154

155155
steps:
156-
- uses: actions/setup-python@v4
157-
with:
158-
python-version: "3.10"
159-
160156
- uses: actions/download-artifact@v3
161157

162158
- name: Install sdist in a venv and check cli works
163159
# ${GITHUB_REPOSITORY##*/} is the repo name without org
164160
# Replace this with the cli command if different to the repo name
165161
run: |
166-
python -m pip install --upgrade pip
167-
python -m pip install build_files/dist/*.gz
162+
pip install build_files/dist/*.gz
168163
${GITHUB_REPOSITORY##*/} --version
169164
170165
release:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
2+
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]

0 commit comments

Comments
 (0)