Skip to content

Commit 4904201

Browse files
authored
Use Poetry to install and run linters (#7)
This ensures that developers and the CI are using the same versions of our linting tools. As a bonus, Poetry is now installed using the install script, ensuring that its dependencies don't conflict with ours.
1 parent 3391643 commit 4904201

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.circleci/config.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
- image: circleci/python:3.6
2323
steps:
2424
- checkout
25-
- run: pip3 install --upgrade mypy black
26-
- run: black --check .
27-
- run: mypy -p "brainframe.cli"
25+
- run: "curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
26+
| python3 - --version 1.1.0"
27+
- run: poetry install --no-root
28+
- run: poetry run black --check .
29+
- run: poetry run mypy -p "brainframe.cli"
2830
upload_to_pypi:
2931
docker:
3032
- image: circleci/python:3.6
@@ -33,6 +35,7 @@ jobs:
3335

3436
steps:
3537
- checkout
36-
- run: pip3 install --upgrade poetry
38+
- run: "curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
39+
| python3 - --version 1.1.0"
3740
- run: poetry build
3841
- run: POETRY_HTTP_BASIC_PYPI_PASSWORD=${PYPI_PASSWORD} poetry publish

0 commit comments

Comments
 (0)