Skip to content

Commit

Permalink
👷Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
7rikazhexde committed Jan 11, 2025
1 parent ee980c7 commit 3aba816
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 11 deletions.
26 changes: 18 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,25 @@ repos:
verbose: true
- id: poetry-lock
verbose: true

- repo: local
hooks:
- id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt", "--without-hashes"]
verbose: true
files: ^pyproject\.toml$
- id: poetry-export
args: ["--with", "dev", "-f", "requirements.txt", "-o", "requirements-dev.txt",
"--without-hashes"]
verbose: true
files: ^pyproject\.toml$
name: Export requirements.txt
entry: poetry export -f requirements.txt -o requirements.txt --without-hashes
language: python
pass_filenames: false
additional_dependencies:
- "poetry"
- "poetry-plugin-export"
- id: poetry-export-dev
name: Export dev requirements.txt
entry: poetry export --with dev -f requirements.txt -o requirements-dev.txt --without-hashes
language: python
pass_filenames: false
additional_dependencies:
- "poetry"
- "poetry-plugin-export"

# https://github.com/shellcheck-py/shellcheck-py?tab=readme-ov-file#usage
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down
2 changes: 1 addition & 1 deletion docs/en/development/programming/python/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Python
tags:
tags:
- Python
description:
---
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/development/programming/python/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Python
tags:
tags:
- Python
description:
---
Expand Down
17 changes: 16 additions & 1 deletion poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mypy = "^1.3.0"
ruamel-yaml = "^0.18.10"
ruff = "^0.9.1"
taskipy = "^1.11.0"
poetry-plugin-export = "^1.8.0"

[tool.taskipy.tasks]
black = "poetry run black ci scripts"
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pkginfo==1.12.0 ; python_version >= "3.10" and python_version < "4.0"
plantuml-markdown==3.10.4 ; python_version >= "3.10" and python_version < "4.0"
platformdirs==4.3.6 ; python_version >= "3.10" and python_version < "4.0"
poetry-core==2.0.0 ; python_version >= "3.10" and python_version < "4.0"
poetry-plugin-export==1.8.0 ; python_version >= "3.10" and python_version < "4.0"
poetry==2.0.0 ; python_version >= "3.10" and python_version < "4.0"
pre-commit==4.0.1 ; python_version >= "3.10" and python_version < "4.0"
psutil==6.1.1 ; python_version >= "3.10" and python_version < "4.0"
Expand Down

0 comments on commit 3aba816

Please sign in to comment.