[014e6e]: / src / codellama-main / .circleci / config.yaml

Download this file

45 lines (43 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 2.1
jobs:
check_python_format:
docker:
- image: circleci/python:3.9
steps:
- checkout
- run:
name: "Check format of .py with ufmt"
command: |
pip install black==22.12.0
pip install usort==1.0.5
pip install ufmt==2.0.1
ufmt check .
check_type_annotation:
docker:
- image: circleci/python:3.9
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r dev-requirements.txt
- run:
name: "mypy"
command: |
. venv/bin/activate
mkdir .mypy_cache
mypy --install-types --non-interactive ./ --cache-dir=.mypy_cache/
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
workflows:
frontend:
jobs:
- check_python_format