Skip to content

Commit 22bdedc

Browse files
authored
Merge pull request #89 from graphql-python/fixCi
Update pre-commit action, update CONTRIBUTING doc to use poetry
2 parents 6cad3b2 + 884f668 commit 22bdedc

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
name: lint
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@master
10-
- uses: actions/setup-python@v2
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v3
1111
with:
1212
python-version: 3.8
13-
- uses: pre-commit/action@v2.0.0
13+
- uses: pre-commit/action@v3.0.0
1414
pytest:
1515
name: pytest
1616
runs-on: ubuntu-latest

CONTRIBUTING.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# Contributing Guide
22

33
You will need:
4-
- Python 3.6 or higher
4+
- Python 3.7 or higher
55

66
## Getting started
77

8-
To get your development environment set up, run:
8+
To get your development environment set up, create and activate a virtual
9+
environment, and install poetry:
10+
11+
```
12+
pipx install poetry
13+
# or with conda
14+
conda install poetry
15+
```
16+
17+
Then install dependencies with poetry:
918

1019
```sh
11-
pip install -e .[dev]
20+
poetry install
1221
```
1322

14-
in an activated virtual environment. This will install the repo version of
23+
This will install the repo version of
1524
`graphene-pydantic` and then install the development dependencies. Once that
1625
has completed, you can start developing.
1726

0 commit comments

Comments
 (0)