Skip to content

Commit

Permalink
Generate requirement.txt from poetry in pre-commit to allow github ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
joelee committed Feb 25, 2024
1 parent 05537a8 commit 3a8081e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,35 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)

- repo: local
hooks:
- id: black
name: Black
entry: black --check .
language: system
pass_filenames: false
- id: isort
name: Isort
entry: isort --gitignore --color --py 311 .
- id: poetry
name: Poetry
entry: poetry check
language: system
pass_filenames: false
- id: flake8
name: Flake8
entry: flake8 .
- id: poetry_export
name: Poetry - export requirements.txt
entry: poetry export --without-hashes -f requirements.txt -o requirements.txt
language: system
pass_filenames: false
- id: poetry
name: Poetry
entry: poetry check
- id: poetry_export_dev
name: Poetry - export requirements-dev.txt
entry: poetry export --without-hashes --with=dev -f requirements.txt -o requirements-dev.txt
language: system
pass_filenames: false
28 changes: 28 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
asttokens==2.4.1 ; python_version >= "3.11" and python_version < "4.0"
cfgv==3.4.0 ; python_version >= "3.11" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.11" and python_version < "4.0"
coverage[toml]==7.4.3 ; python_version >= "3.11" and python_version < "4.0"
distlib==0.3.8 ; python_version >= "3.11" and python_version < "4.0"
executing==2.0.1 ; python_version >= "3.11" and python_version < "4.0"
filelock==3.13.1 ; python_version >= "3.11" and python_version < "4.0"
flake8==7.0.0 ; python_version >= "3.11" and python_version < "4.0"
icecream==2.1.3 ; python_version >= "3.11" and python_version < "4.0"
identify==2.5.35 ; python_version >= "3.11" and python_version < "4.0"
iniconfig==2.0.0 ; python_version >= "3.11" and python_version < "4.0"
isort==5.13.2 ; python_version >= "3.11" and python_version < "4.0"
mccabe==0.7.0 ; python_version >= "3.11" and python_version < "4.0"
nodeenv==1.8.0 ; python_version >= "3.11" and python_version < "4.0"
packaging==23.2 ; python_version >= "3.11" and python_version < "4.0"
pillow==10.2.0 ; python_version >= "3.11" and python_version < "4.0"
platformdirs==4.2.0 ; python_version >= "3.11" and python_version < "4.0"
pluggy==1.4.0 ; python_version >= "3.11" and python_version < "4.0"
pre-commit==3.6.2 ; python_version >= "3.11" and python_version < "4.0"
pycodestyle==2.11.1 ; python_version >= "3.11" and python_version < "4.0"
pyflakes==3.2.0 ; python_version >= "3.11" and python_version < "4.0"
pygments==2.17.2 ; python_version >= "3.11" and python_version < "4.0"
pytest-cov==4.1.0 ; python_version >= "3.11" and python_version < "4.0"
pytest==8.0.2 ; python_version >= "3.11" and python_version < "4.0"
pyyaml==6.0.1 ; python_version >= "3.11" and python_version < "4.0"
setuptools==69.1.1 ; python_version >= "3.11" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.11" and python_version < "4.0"
virtualenv==20.25.1 ; python_version >= "3.11" and python_version < "4.0"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pillow==10.2.0 ; python_version >= "3.11" and python_version < "4.0"

0 comments on commit 3a8081e

Please sign in to comment.