From dba0f0c2aaa735b19c250fb0a2fd917e8074427d Mon Sep 17 00:00:00 2001 From: FujisakiEx <111629523+FujisakiEx@users.noreply.github.com> Date: Fri, 14 Jul 2023 02:58:45 +0900 Subject: [PATCH 1/5] =?UTF-8?q?pre-commit=20=E3=81=A8Github=20Actions?= =?UTF-8?q?=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92=E8=A1=8C=E3=81=84=E3=81=BE?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 56 ++++++++++++++++++++++++++++++++++++++ .pre-commit-config.yaml | 5 ++++ poetry_export_all.py | 50 ++++++++++++++++++++++++++++++++++ pyproject.toml | 1 + requirements-test.txt | 33 ++++++++++++++++++++++ 5 files changed, 145 insertions(+) create mode 100644 poetry_export_all.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b32dd4677..00152a0b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,8 @@ name: test +env: + POETRY_VERSION: "1.3.1" + on: push: pull_request: @@ -37,6 +40,59 @@ jobs: python -m pip install --upgrade pip setuptools wheel python -m pip install -r requirements-test.txt + - name: Add Path for ubuntu + if: matrix.os == 'ubuntu-20.04' + run: + echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Add Path for Windows + if: matrix.os == 'windows-latest' + run: + echo "C:\Users\runneradmin\AppData\Roaming\Python\Scripts" >> $GITHUB_PATH + + - name: Run poetry + 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 license -o requirements-license.txt.check + + - name: Check poetry export ubuntu + continue-on-error: true + id: poetry_export_check_ubuntu + if: matrix.os == 'ubuntu-20.04' + run: + 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-license.txt requirements-license.txt.check > /dev/null + if [$? = 1]; then + exit 1 + fi + + - name: Check poetry export windows + continue-on-error: true + id: poetry_export_check_windows + if: matrix.os == 'windows-latest' + run: + diff /M requirements.txt requirements.txt.check && \ + diff /M requirements-dev.txt requirements-dev.txt.check && \ + diff /M requirements-test.txt requirements-test.txt.check && \ + diff /M requirements-license.txt requirements-license.txt.check + if %ERRORLEVEL% == 1 exit 1 + + - name: Check poetry export Error handling + if: ${{ steps.poetry_export_check.outcome_ubuntu == 'failure' }} + run: + echo "poetry export has some diff on ubuntu" + exit 1 + + - name: Check poetry export Error handling + if: ${{ steps.poetry_export_check.outcome_windows == 'failure' }} + run: + echo "poetry export has some diff on windows" + exit 1 + - run: pysen run lint - name: Run pytest and get coverage diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d26cdeb92..ab6a0a092 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,8 @@ repos: types: [file, python] stages: [push] pass_filenames: false + - id: poetry-export + name: poetry-export + entry: python poetry_export_all.py + language: python + stages: [commit] diff --git a/poetry_export_all.py b/poetry_export_all.py new file mode 100644 index 000000000..63e7d4e37 --- /dev/null +++ b/poetry_export_all.py @@ -0,0 +1,50 @@ +import subprocess + + +def main(): + subprocess.run( + ["poetry", "export", "--without-hashes", "-o", "requirements.txt"], shell=True + ) + subprocess.run( + [ + "poetry", + "export", + "--without-hashes", + "--with", + "dev", + "-o", + "requirements-dev.txt", + ], + shell=True, + ) + subprocess.run( + [ + "poetry", + "export", + "--without-hashes", + "--with", + "test", + "-o", + "requirements-test.txt", + ], + shell=True, + ) + subprocess.run( + [ + "poetry", + "export", + "--without-hashes", + "--with", + "license", + "-o", + "requirements-license.txt", + ], + shell=True, + ) + + return subprocess.run(["git", "diff", "--exit-code", "--quiet"], shell=True) + + +if __name__ == "__main__": + if main().returncode == 1: + print("Please add requirement files") diff --git a/pyproject.toml b/pyproject.toml index 923e89850..b8a1af7f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,7 @@ isort = "^5.12.0" mypy = "~0.991" pytest = "^6.2.5" coveralls = "^3.2.0" +poetry = "^1.3.1" [tool.poetry.group.license.dependencies] pip-licenses = "^4.2.0" diff --git a/requirements-test.txt b/requirements-test.txt index 703bb73f8..6594911fe 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,50 +5,78 @@ asgiref==3.6.0 ; python_version >= "3.11" and python_version < "3.12" atomicwrites==1.4.0 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "win32" attrs==22.2.0 ; python_version >= "3.11" and python_version < "3.12" black==22.12.0 ; python_version >= "3.11" and python_version < "3.12" +cachecontrol[filecache]==0.12.11 ; python_version >= "3.11" and python_version < "3.12" certifi==2022.12.7 ; python_version >= "3.11" and python_version < "3.12" cffi==1.15.1 ; python_version >= "3.11" and python_version < "3.12" charset-normalizer==2.1.1 ; python_version >= "3.11" and python_version < "3.12" +cleo==2.0.1 ; python_version >= "3.11" and python_version < "3.12" click==8.0.4 ; python_version >= "3.11" and python_version < "3.12" colorama==0.4.4 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "win32" or python_version >= "3.11" and python_version < "3.12" and platform_system == "Windows" colorlog==4.8.0 ; python_version >= "3.11" and python_version < "3.12" coverage==5.5 ; python_version >= "3.11" and python_version < "3.12" coveralls==3.2.0 ; python_version >= "3.11" and python_version < "3.12" +crashtest==0.4.1 ; python_version >= "3.11" and python_version < "3.12" +cryptography==39.0.0 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "linux" cython==0.29.34 ; python_version >= "3.11" and python_version < "3.12" dacite==1.7.0 ; python_version >= "3.11" and python_version < "3.12" +distlib==0.3.6 ; python_version >= "3.11" and python_version < "3.12" docopt==0.6.2 ; python_version >= "3.11" and python_version < "3.12" +dulwich==0.20.50 ; python_version >= "3.11" and python_version < "3.12" fastapi==0.70.0 ; python_version >= "3.11" and python_version < "3.12" +filelock==3.8.2 ; python_version >= "3.11" and python_version < "3.12" flake8-bugbear==23.1.20 ; python_version >= "3.11" and python_version < "3.12" flake8==6.0.0 ; python_version >= "3.11" and python_version < "3.12" gitdb==4.0.10 ; python_version >= "3.11" and python_version < "3.12" gitpython==3.1.29 ; python_version >= "3.11" and python_version < "3.12" h11==0.14.0 ; python_version >= "3.11" and python_version < "3.12" +html5lib==1.1 ; python_version >= "3.11" and python_version < "3.12" idna==3.4 ; python_version >= "3.11" and python_version < "3.12" +importlib-metadata==4.13.0 ; python_version >= "3.11" and python_version < "3.12" iniconfig==1.1.1 ; python_version >= "3.11" and python_version < "3.12" isort==5.12.0 ; python_version >= "3.11" and python_version < "3.12" +jaraco-classes==3.2.3 ; python_version >= "3.11" and python_version < "3.12" +jeepney==0.8.0 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "linux" jinja2==3.1.2 ; python_version >= "3.11" and python_version < "3.12" +jsonschema==4.17.3 ; python_version >= "3.11" and python_version < "3.12" +keyring==23.13.1 ; python_version >= "3.11" and python_version < "3.12" +lockfile==0.12.2 ; python_version >= "3.11" and python_version < "3.12" markupsafe==2.1.2 ; python_version >= "3.11" and python_version < "3.12" mccabe==0.7.0 ; python_version >= "3.11" and python_version < "3.12" +more-itertools==9.0.0 ; python_version >= "3.11" and python_version < "3.12" +msgpack==1.0.4 ; python_version >= "3.11" and python_version < "3.12" mypy-extensions==0.4.3 ; python_version >= "3.11" and python_version < "3.12" mypy==0.991 ; python_version >= "3.11" and python_version < "3.12" numpy==1.24.2 ; python_version >= "3.11" and python_version < "3.12" packaging==22.0 ; python_version >= "3.11" and python_version < "3.12" pathspec==0.10.3 ; python_version >= "3.11" and python_version < "3.12" +pexpect==4.8.0 ; python_version >= "3.11" and python_version < "3.12" +pkginfo==1.9.4 ; python_version >= "3.11" and python_version < "3.12" platformdirs==2.6.2 ; python_version >= "3.11" and python_version < "3.12" pluggy==1.0.0 ; python_version >= "3.11" and python_version < "3.12" +poetry-core==1.4.0 ; python_version >= "3.11" and python_version < "3.12" +poetry-plugin-export==1.2.0 ; python_version >= "3.11" and python_version < "3.12" +poetry==1.3.1 ; python_version >= "3.11" and python_version < "3.12" +ptyprocess==0.7.0 ; python_version >= "3.11" and python_version < "3.12" py==1.11.0 ; python_version >= "3.11" and python_version < "3.12" pycodestyle==2.10.0 ; python_version >= "3.11" and python_version < "3.12" pycparser==2.21 ; python_version >= "3.11" and python_version < "3.12" pydantic==1.10.2 ; python_version >= "3.11" and python_version < "3.12" pyflakes==3.0.1 ; python_version >= "3.11" and python_version < "3.12" pyopenjtalk @ git+https://github.com/VOICEVOX/pyopenjtalk@827a3fc5c7dda7bbe832c0c69da98e39cc8cb2c3 ; python_version >= "3.11" and python_version < "3.12" +pyrsistent==0.19.3 ; python_version >= "3.11" and python_version < "3.12" pysen==0.10.3 ; python_version >= "3.11" and python_version < "3.12" pytest==6.2.5 ; python_version >= "3.11" and python_version < "3.12" python-multipart==0.0.5 ; python_version >= "3.11" and python_version < "3.12" +pywin32-ctypes==0.2.0 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "win32" pyworld==0.3.2 ; python_version >= "3.11" and python_version < "3.12" pyyaml==6.0 ; python_version >= "3.11" and python_version < "3.12" +rapidfuzz==2.13.7 ; python_version >= "3.11" and python_version < "3.12" +requests-toolbelt==0.10.1 ; python_version >= "3.11" and python_version < "3.12" requests==2.28.1 ; python_version >= "3.11" and python_version < "3.12" scipy==1.10.1 ; python_version >= "3.11" and python_version < "3.12" +secretstorage==3.3.3 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "linux" semver==3.0.0 ; python_version >= "3.11" and python_version < "3.12" +shellingham==1.5.0.post1 ; python_version >= "3.11" and python_version < "3.12" six==1.16.0 ; python_version >= "3.11" and python_version < "3.12" smmap==5.0.0 ; python_version >= "3.11" and python_version < "3.12" sniffio==1.3.0 ; python_version >= "3.11" and python_version < "3.12" @@ -57,7 +85,12 @@ starlette==0.16.0 ; python_version >= "3.11" and python_version < "3.12" toml==0.10.2 ; python_version >= "3.11" and python_version < "3.12" tomlkit==0.11.6 ; python_version >= "3.11" and python_version < "3.12" tqdm==4.64.1 ; python_version >= "3.11" and python_version < "3.12" +trove-classifiers==2022.12.22 ; python_version >= "3.11" and python_version < "3.12" typing-extensions==4.4.0 ; python_version >= "3.11" and python_version < "3.12" unidiff==0.7.4 ; python_version >= "3.11" and python_version < "3.12" urllib3==1.26.13 ; python_version >= "3.11" and python_version < "3.12" uvicorn==0.15.0 ; python_version >= "3.11" and python_version < "3.12" +virtualenv==20.17.1 ; python_version >= "3.11" and python_version < "3.12" +webencodings==0.5.1 ; python_version >= "3.11" and python_version < "3.12" +xattr==0.10.1 ; python_version >= "3.11" and python_version < "3.12" and sys_platform == "darwin" +zipp==3.11.0 ; python_version >= "3.11" and python_version < "3.12" From 5bca5300c8a812d133f8122d4646c931714e516c Mon Sep 17 00:00:00 2001 From: FujisakiEx <111629523+FujisakiEx@users.noreply.github.com> Date: Sat, 15 Jul 2023 02:39:35 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=AF=E5=AF=BE=E5=BF=9C=20test.yml?= =?UTF-8?q?=E3=81=AE=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 43 +++----------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00152a0b9..9d8820232 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,59 +40,22 @@ jobs: python -m pip install --upgrade pip setuptools wheel python -m pip install -r requirements-test.txt - - name: Add Path for ubuntu - if: matrix.os == 'ubuntu-20.04' - run: - echo "$HOME/.local/bin" >> $GITHUB_PATH - - - name: Add Path for Windows - if: matrix.os == 'windows-latest' - run: - echo "C:\Users\runneradmin\AppData\Roaming\Python\Scripts" >> $GITHUB_PATH - - - name: Run poetry + - name: Run poetry and check 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 license -o requirements-license.txt.check - - - name: Check poetry export ubuntu - continue-on-error: true - id: poetry_export_check_ubuntu - if: matrix.os == 'ubuntu-20.04' - run: + 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-license.txt requirements-license.txt.check > /dev/null if [$? = 1]; then + echo "poetry export has some diff" exit 1 fi - - name: Check poetry export windows - continue-on-error: true - id: poetry_export_check_windows - if: matrix.os == 'windows-latest' - run: - diff /M requirements.txt requirements.txt.check && \ - diff /M requirements-dev.txt requirements-dev.txt.check && \ - diff /M requirements-test.txt requirements-test.txt.check && \ - diff /M requirements-license.txt requirements-license.txt.check - if %ERRORLEVEL% == 1 exit 1 - - - name: Check poetry export Error handling - if: ${{ steps.poetry_export_check.outcome_ubuntu == 'failure' }} - run: - echo "poetry export has some diff on ubuntu" - exit 1 - - - name: Check poetry export Error handling - if: ${{ steps.poetry_export_check.outcome_windows == 'failure' }} - run: - echo "poetry export has some diff on windows" - exit 1 - - run: pysen run lint - name: Run pytest and get coverage From ab55baa9050ad6efbb1e8cb6cc058775bb0398b2 Mon Sep 17 00:00:00 2001 From: FujisakiEx <111629523+FujisakiEx@users.noreply.github.com> Date: Sat, 15 Jul 2023 03:14:48 +0900 Subject: [PATCH 3/5] =?UTF-8?q?pre-commit=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 21 ++++++++++++++--- poetry_export_all.py | 50 ----------------------------------------- poetry_export_check.py | 10 +++++++++ 3 files changed, 28 insertions(+), 53 deletions(-) delete mode 100644 poetry_export_all.py create mode 100644 poetry_export_check.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab6a0a092..571ff6b58 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,21 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: + - repo: https://github.com/python-poetry/poetry + rev: '1.3.1' + hooks: + - id: poetry-export + name: poetry-export + args: ["--without-hashes", "-o", "requirements.txt" ] + - id: poetry-export + name: poetry-export-dev + args: ["--without-hashes", "--with", "dev", "-o", "requirements-dev.txt" ] + - id: poetry-export + name: poetry-export-test + args: ["--without-hashes", "--with", "test", "-o", "requirements-test.txt" ] + - id: poetry-export + name: poetry-export-license + args: ["--without-hashes", "--with", "license", "-o", "requirements-license.txt" ] - repo: local hooks: - id: pysen-lint @@ -10,8 +25,8 @@ repos: types: [file, python] stages: [push] pass_filenames: false - - id: poetry-export - name: poetry-export - entry: python poetry_export_all.py + - id: poetry-export-check + name: poetry-export-check + entry: python poetry_export_check.py language: python stages: [commit] diff --git a/poetry_export_all.py b/poetry_export_all.py deleted file mode 100644 index 63e7d4e37..000000000 --- a/poetry_export_all.py +++ /dev/null @@ -1,50 +0,0 @@ -import subprocess - - -def main(): - subprocess.run( - ["poetry", "export", "--without-hashes", "-o", "requirements.txt"], shell=True - ) - subprocess.run( - [ - "poetry", - "export", - "--without-hashes", - "--with", - "dev", - "-o", - "requirements-dev.txt", - ], - shell=True, - ) - subprocess.run( - [ - "poetry", - "export", - "--without-hashes", - "--with", - "test", - "-o", - "requirements-test.txt", - ], - shell=True, - ) - subprocess.run( - [ - "poetry", - "export", - "--without-hashes", - "--with", - "license", - "-o", - "requirements-license.txt", - ], - shell=True, - ) - - return subprocess.run(["git", "diff", "--exit-code", "--quiet"], shell=True) - - -if __name__ == "__main__": - if main().returncode == 1: - print("Please add requirement files") diff --git a/poetry_export_check.py b/poetry_export_check.py new file mode 100644 index 000000000..2d6e0e5a7 --- /dev/null +++ b/poetry_export_check.py @@ -0,0 +1,10 @@ +import subprocess + + +def main(): + return subprocess.run(["git", "diff", "--exit-code", "--quiet"], shell=True) + + +if __name__ == "__main__": + if main().returncode == 1: + print("Please add requirement files") From 8a076124a338bc99586cc04889d772b091588c0f Mon Sep 17 00:00:00 2001 From: FujisakiEx <111629523+FujisakiEx@users.noreply.github.com> Date: Sun, 16 Jul 2023 03:02:21 +0900 Subject: [PATCH 4/5] =?UTF-8?q?export=5Fcheck=E3=81=AE=E5=89=8A=E9=99=A4?= =?UTF-8?q?=E3=81=A8=E3=83=86=E3=82=B9=E3=83=88=E3=81=8C=E5=A4=B1=E6=95=97?= =?UTF-8?q?=E3=81=99=E3=82=8B=E5=8E=9F=E5=9B=A0=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 5 +---- .pre-commit-config.yaml | 46 +++++++++++++++++++++++--------------- poetry_export_check.py | 10 --------- 3 files changed, 29 insertions(+), 32 deletions(-) delete mode 100644 poetry_export_check.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d8820232..60662c451 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,5 @@ name: test -env: - POETRY_VERSION: "1.3.1" - on: push: pull_request: @@ -51,7 +48,7 @@ jobs: diff -q requirements-dev.txt requirements-dev.txt.check || \ diff -q requirements-test.txt requirements-test.txt.check || \ diff -q requirements-license.txt requirements-license.txt.check > /dev/null - if [$? = 1]; then + if [ $? = 1 ]; then echo "poetry export has some diff" exit 1 fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 571ff6b58..240bf14fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,6 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - - repo: https://github.com/python-poetry/poetry - rev: '1.3.1' - hooks: - - id: poetry-export - name: poetry-export - args: ["--without-hashes", "-o", "requirements.txt" ] - - id: poetry-export - name: poetry-export-dev - args: ["--without-hashes", "--with", "dev", "-o", "requirements-dev.txt" ] - - id: poetry-export - name: poetry-export-test - args: ["--without-hashes", "--with", "test", "-o", "requirements-test.txt" ] - - id: poetry-export - name: poetry-export-license - args: ["--without-hashes", "--with", "license", "-o", "requirements-license.txt" ] - repo: local hooks: - id: pysen-lint @@ -25,8 +10,33 @@ repos: types: [file, python] stages: [push] pass_filenames: false - - id: poetry-export-check - name: poetry-export-check - entry: python poetry_export_check.py + - id: pip-install + name: pip-install + entry: pip install -r requirements.txt + language: python + pass_filenames: false + stages: [commit] + - id: poetry-export + name: poetry-export + entry: poetry export --without-hashes -o requirements.txt language: python + pass_filenames: false + stages: [commit] + - id: poetry-export-dev + name: poetry-export-dev + entry: poetry export --without-hashes --with dev -o requirements-dev.txt + language: python + pass_filenames: false + stages: [commit] + - id: poetry-export-test + name: poetry-export-test + entry: poetry export --without-hashes --with test -o requirements-test.txt + language: python + pass_filenames: false + stages: [commit] + - id: poetry-export-license + name: poetry-export-license + entry: poetry export --without-hashes --with license -o requirements-license.txt + language: python + pass_filenames: false stages: [commit] diff --git a/poetry_export_check.py b/poetry_export_check.py deleted file mode 100644 index 2d6e0e5a7..000000000 --- a/poetry_export_check.py +++ /dev/null @@ -1,10 +0,0 @@ -import subprocess - - -def main(): - return subprocess.run(["git", "diff", "--exit-code", "--quiet"], shell=True) - - -if __name__ == "__main__": - if main().returncode == 1: - print("Please add requirement files") From dc715c4c623788e9a5dfc5076dadf458c04f901c Mon Sep 17 00:00:00 2001 From: Hiroshiba Kazuyuki Date: Mon, 17 Jul 2023 20:50:29 +0900 Subject: [PATCH 5/5] remove pip-install and commit->push --- .pre-commit-config.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 240bf14fe..86ef0cba9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,33 +10,27 @@ repos: types: [file, python] stages: [push] pass_filenames: false - - id: pip-install - name: pip-install - entry: pip install -r requirements.txt - language: python - pass_filenames: false - stages: [commit] - id: poetry-export name: poetry-export entry: poetry export --without-hashes -o requirements.txt language: python + stages: [push] pass_filenames: false - stages: [commit] - 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 - stages: [commit] - id: poetry-export-test name: poetry-export-test entry: poetry export --without-hashes --with test -o requirements-test.txt language: python + stages: [push] pass_filenames: false - stages: [commit] - id: poetry-export-license name: poetry-export-license entry: poetry export --without-hashes --with license -o requirements-license.txt language: python + stages: [push] pass_filenames: false - stages: [commit]