File tree 5 files changed +599
-71
lines changed
5 files changed +599
-71
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,13 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
15
+ - name : Install poetry
16
+ run : python -m pip install poetry
17
+
15
18
- uses : actions/setup-python@v4
16
19
with :
17
20
python-version : ' 3.11'
18
-
19
- - name : Install poetry
20
- run : |
21
- python -m pip install --upgrade pip
22
- pip install poetry
23
- poetry config virtualenvs.in-project true
24
-
25
- - name : Set up cache
26
- uses : actions/cache@v3
27
- id : cache
28
- with :
29
- path : .venv
30
- key : venv-lint-${{ hashFiles('**/poetry.lock') }}
31
-
32
- - name : Ensure cache is healthy
33
- if : steps.cache.outputs.cache-hit == 'true'
34
- run : poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
21
+ cache : " poetry"
35
22
36
23
- name : Install dependencies
37
24
run : poetry install
42
29
- name : Type-check with Pyright
43
30
run : poetry run pyright .
44
31
45
- - name : Check format with Black
46
- run : poetry run black --check --diff .
47
-
48
32
- name : Lint with ruff
49
- run : poetry run ruff --format=github .
33
+ run : poetry run ruff check --output-format=github .
34
+
35
+ - name : Format with ruff
36
+ run : poetry run ruff format .
Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
os : [Ubuntu]
12
- python-version : ['3.10 ', '3.8']
12
+ python-version : ['3.11 ', '3.8']
13
13
env :
14
14
OS : ${{ matrix.os }}
15
15
PYTHON : ${{ matrix.python-version }}
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
+ - name : Install poetry
21
+ run : python -m pip install poetry
22
+
20
23
- name : Set up Python ${{ matrix.python-version }}
21
24
uses : actions/setup-python@v4
22
25
with :
23
26
python-version : ${{ matrix.python-version }}
24
-
25
- - name : Install poetry
26
- run : |
27
- python -m pip install --upgrade pip
28
- pip install poetry
29
- poetry config virtualenvs.in-project true
30
-
31
- - name : Set up cache
32
- uses : actions/cache@v3
33
- id : cache
34
- with :
35
- path : .venv
36
- key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
37
-
38
- - name : Ensure cache is healthy
39
- if : steps.cache.outputs.cache-hit == 'true'
40
- run : poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
27
+ cache : " poetry"
41
28
42
29
- name : Install dependencies
43
30
run : poetry install
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ ipython_config.py
109
109
# This is especially recommended for binary packages to ensure reproducibility, and is more
110
110
# commonly ignored for libraries.
111
111
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
112
- poetry.lock
112
+ # poetry.lock
113
113
114
114
# pdm
115
115
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments