Skip to content

Commit

Permalink
整理: requirements-dev.txt を削除 (#1312)
Browse files Browse the repository at this point in the history
* refactor: `requirements-dev.txt` に不要なライブラリを削除

* refactor: `requirements-dev.txt` を削除
  • Loading branch information
tarepan authored May 28, 2024
1 parent d939d71 commit 718c89e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pip install -r requirements-test.txt

- name: <Test> Check Python dependency security
run: safety check -r requirements.txt -r requirements-dev.txt -r requirements-test.txt -r requirements-build.txt -r requirements-license.txt -o bare
run: safety check -r requirements.txt -r requirements-test.txt -r requirements-build.txt -r requirements-license.txt -o bare

- name: <Deploy> Notify Discord of security testing result
uses: sarisia/actions-status-discord@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ jobs:
- name: <Test> Check dependency lists
run: |
poetry export --without-hashes -o requirements.txt.check
poetry export --without-hashes --with dev -o requirements-dev.txt.check
poetry export --without-hashes --with test -o requirements-test.txt.check
poetry export --without-hashes --with build -o requirements-build.txt.check
poetry export --without-hashes --with license -o requirements-license.txt.check
diff -q requirements.txt requirements.txt.check || \
diff -q requirements-dev.txt requirements-dev.txt.check || \
diff -q requirements-test.txt requirements-test.txt.check || \
diff -q requirements-build.txt requirements-build.txt.check || \
diff -q requirements-license.txt requirements-license.txt.check > /dev/null
Expand Down
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ repos:
language: python
stages: [push]
pass_filenames: false
- id: poetry-export-dev
name: poetry-export-dev
entry: poetry export --without-hashes --with dev -o requirements-dev.txt
language: python
stages: [push]
pass_filenames: false
- id: poetry-export-test
name: poetry-export-test
entry: poetry export --without-hashes --with test -o requirements-test.txt
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cd ./voicevox_engine
git switch -c "<your_branch_name>"

# 実行・開発・テスト環境のインストール
python -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-test.txt -r requirements-build.txt
python -m pip install -r requirements.txt -r requirements-test.txt -r requirements-build.txt
```

<!-- このプロジェクトでは
Expand Down Expand Up @@ -217,7 +217,6 @@ requirements.txt の更新

```bash
poetry export --without-hashes -o requirements.txt # こちらを更新する場合は下3つも更新する必要があります。
poetry export --without-hashes --with dev -o requirements-dev.txt
poetry export --without-hashes --with test -o requirements-test.txt
poetry export --without-hashes --with build -o requirements-build.txt
poetry export --without-hashes --with license -o requirements-license.txt
Expand All @@ -237,7 +236,7 @@ poetry export --without-hashes --with license -o requirements-license.txt
以下のコマンドにより脆弱性を診断できます:

```bash
safety check -r requirements.txt -r requirements-dev.txt -r requirements-test.txt -r requirements-build.txt -r requirements-license.txt
safety check -r requirements.txt -r requirements-test.txt -r requirements-build.txt -r requirements-license.txt
```

### API ドキュメントの確認
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Issue 側で取り組み始めたことを伝えるか、最初に Draft プル
python -m pip install -r requirements.txt

# 開発環境・テスト環境・ビルド環境のインストール
python -m pip install -r requirements-dev.txt -r requirements-test.txt -r requirements-build.txt
python -m pip install -r requirements-test.txt -r requirements-build.txt
```
### 実行
Expand Down Expand Up @@ -650,7 +650,6 @@ poetry update # 全部更新
# requirements.txtの更新
poetry export --without-hashes -o requirements.txt # こちらを更新する場合は下3つも更新する必要があります。
poetry export --without-hashes --with dev -o requirements-dev.txt
poetry export --without-hashes --with test -o requirements-test.txt
poetry export --without-hashes --with build -o requirements-build.txt
poetry export --without-hashes --with license -o requirements-license.txt
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ soxr = "^0.3.6"
pydantic = "^1.10.15"
starlette = "^0.37.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^2.16.0"
poetry = "1.8.2"
poetry-plugin-export = "^1.8.0"

[tool.poetry.group.test.dependencies]
pysen = "^0.11.0"
black = "^24.4.0"
Expand All @@ -76,6 +71,7 @@ httpx = "^0.27.0" # NOTE: required by fastapi.testclient.TestClient
syrupy = "^4.6.1"
types-pyyaml = "^6.0.12"
safety = "^3.1.0"
pre-commit = "^2.16.0"

[tool.poetry.group.build.dependencies]
pyinstaller = "^5.13"
Expand Down
70 changes: 0 additions & 70 deletions requirements-dev.txt

This file was deleted.

4 changes: 4 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build==1.2.1 ; python_version >= "3.11" and python_version < "3.12"
cachecontrol[filecache]==0.14.0 ; python_version >= "3.11" and python_version < "3.12"
certifi==2024.2.2 ; python_version >= "3.11" and python_version < "3.12"
cffi==1.16.0 ; python_version >= "3.11" and python_version < "3.12"
cfgv==3.4.0 ; python_version >= "3.11" and python_version < "3.12"
charset-normalizer==3.3.2 ; python_version >= "3.11" and python_version < "3.12"
cleo==2.1.0 ; python_version >= "3.11" and python_version < "3.12"
click==8.1.7 ; python_version >= "3.11" and python_version < "3.12"
Expand All @@ -31,6 +32,7 @@ gitpython==3.1.43 ; python_version >= "3.11" and python_version < "3.12"
h11==0.14.0 ; python_version >= "3.11" and python_version < "3.12"
httpcore==1.0.5 ; python_version >= "3.11" and python_version < "3.12"
httpx==0.27.0 ; python_version >= "3.11" and python_version < "3.12"
identify==2.5.36 ; python_version >= "3.11" and python_version < "3.12"
idna==3.7 ; python_version >= "3.11" and python_version < "3.12"
importlib-metadata==7.1.0 ; python_version >= "3.11" and python_version < "3.12"
iniconfig==2.0.0 ; python_version >= "3.11" and python_version < "3.12"
Expand All @@ -49,6 +51,7 @@ more-itertools==10.2.0 ; python_version >= "3.11" and python_version < "3.12"
msgpack==1.0.8 ; python_version >= "3.11" and python_version < "3.12"
mypy-extensions==1.0.0 ; python_version >= "3.11" and python_version < "3.12"
mypy==1.10.0 ; python_version >= "3.11" and python_version < "3.12"
nodeenv==1.8.0 ; python_version >= "3.11" and python_version < "3.12"
numpy==1.26.4 ; python_version >= "3.11" and python_version < "3.12"
packaging==24.0 ; python_version >= "3.11" and python_version < "3.12"
pathspec==0.12.1 ; python_version >= "3.11" and python_version < "3.12"
Expand All @@ -59,6 +62,7 @@ pluggy==1.5.0 ; python_version >= "3.11" and python_version < "3.12"
poetry-core==1.9.0 ; python_version >= "3.11" and python_version < "3.12"
poetry-plugin-export==1.8.0 ; python_version >= "3.11" and python_version < "3.12"
poetry==1.8.2 ; python_version >= "3.11" and python_version < "3.12"
pre-commit==2.21.0 ; python_version >= "3.11" and python_version < "3.12"
ptyprocess==0.7.0 ; python_version >= "3.11" and python_version < "3.12"
pycodestyle==2.11.1 ; python_version >= "3.11" and python_version < "3.12"
pycparser==2.22 ; python_version >= "3.11" and python_version < "3.12"
Expand Down

0 comments on commit 718c89e

Please sign in to comment.