Skip to content

Commit

Permalink
build: add package in Pipfile
Browse files Browse the repository at this point in the history
調整項目:
1. Pipfile 安裝 pylint、isort、black 及 pre-commit
2. linters.yml 加入換行
3. .pre-commit-config.yaml 加入換行
  • Loading branch information
w305jack committed Dec 26, 2022
1 parent 95cb9fe commit 62e504e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ jobs:
run: |
[[ -n "${{ steps.changed-files.outputs.all_changed_files }}" ]] &&
echo "${{ steps.changed-files.outputs.all_changed_files }}" | xargs black --check --diff ||
echo "0 Python files changed."
echo "0 Python files changed."
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ repos:
entry: pylint
language: system
types: [python]
args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I"]
args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I"]
4 changes: 4 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ pytest-order = "~=1.0.1"
pytest-sugar = "~=0.9.4"
pytest-mock = "~=3.10.0"
coverage = "~=6.3.2"
pylint = "~=2.15.5"
isort = "~=5.10.1"
black = "~=22.10.0"
pre-commit = "~=2.20.0"

[dev-packages]

Expand Down

0 comments on commit 62e504e

Please sign in to comment.