Spaces:
Running
Running
yuki.tsutsumi
commited on
Commit
•
6d3e7b4
1
Parent(s):
9cbbf35
precommitにmypyを追加。makefileにコンテナに入るコマンドを追加。requirements.txtのバージョンを固定。blackの文字数幅を88文字にした。
Browse files- .pre-commit-config.yaml +9 -4
- makefile +3 -1
- pyproject.toml +1 -1
- requirements.txt +10 -11
.pre-commit-config.yaml
CHANGED
@@ -5,14 +5,19 @@ repos:
|
|
5 |
- id: trailing-whitespace # 末尾の空白を削除
|
6 |
- id: end-of-file-fixer # ファイルが改行で終わり、改行のみであることを確認
|
7 |
- repo: https://github.com/psf/black
|
8 |
-
rev: 24.4.
|
9 |
hooks:
|
10 |
- id: black
|
11 |
- repo: https://github.com/PyCQA/flake8
|
12 |
-
rev: 7.
|
13 |
hooks:
|
14 |
- id: flake8
|
15 |
-
- repo: https://github.com/
|
16 |
-
rev:
|
17 |
hooks:
|
18 |
- id: isort
|
|
|
|
|
|
|
|
|
|
|
|
5 |
- id: trailing-whitespace # 末尾の空白を削除
|
6 |
- id: end-of-file-fixer # ファイルが改行で終わり、改行のみであることを確認
|
7 |
- repo: https://github.com/psf/black
|
8 |
+
rev: 24.4.2
|
9 |
hooks:
|
10 |
- id: black
|
11 |
- repo: https://github.com/PyCQA/flake8
|
12 |
+
rev: 7.1.0
|
13 |
hooks:
|
14 |
- id: flake8
|
15 |
+
- repo: https://github.com/pycqa/isort
|
16 |
+
rev: 5.13.2
|
17 |
hooks:
|
18 |
- id: isort
|
19 |
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
20 |
+
rev: v1.10.1
|
21 |
+
hooks:
|
22 |
+
- id: mypy
|
23 |
+
args: [--ignore-missing-imports]
|
makefile
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
build-image:
|
2 |
docker build -t pharma-docs:latest .
|
3 |
run:
|
4 |
-
docker run -p 8501:8501 pharma-docs:latest
|
|
|
|
|
|
1 |
build-image:
|
2 |
docker build -t pharma-docs:latest .
|
3 |
run:
|
4 |
+
docker run --name pharma-docs -p 8501:8501 pharma-docs:latest
|
5 |
+
enter:
|
6 |
+
docker container exec -it pharma-docs bash
|
pyproject.toml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[tool.black]
|
2 |
-
line-length =
|
3 |
target-version = ['py311']
|
4 |
include = '\.pyi?$'
|
5 |
exclude = '''
|
|
|
1 |
[tool.black]
|
2 |
+
line-length = 88
|
3 |
target-version = ['py311']
|
4 |
include = '\.pyi?$'
|
5 |
exclude = '''
|
requirements.txt
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
black
|
2 |
-
isort
|
3 |
-
flake8
|
4 |
-
mypy
|
5 |
-
openai
|
6 |
-
python-dotenv
|
7 |
-
streamlit
|
8 |
-
python-docx
|
9 |
-
|
10 |
-
|
11 |
-
pre-commit
|
|
|
1 |
+
black == 24.4.2
|
2 |
+
isort == 5.13.2
|
3 |
+
flake8 == 7.1.0
|
4 |
+
mypy == 1.10.1
|
5 |
+
openai == 1.35.13
|
6 |
+
python-dotenv == 1.0.1
|
7 |
+
streamlit == 1.36.0
|
8 |
+
python-docx == 1.1.2
|
9 |
+
pinecone-client == 4.1.2
|
10 |
+
pre-commit == 3.7.1
|
|