Skip to content

Commit

Permalink
🐛Fix: pre-commit 설정 변경 및 import 컨벤션 적용
Browse files Browse the repository at this point in the history
- pre commit ymal파일이 CI에 적용된 설정 중 isort가 조금 달라서 변경하여 적용했습니다
  • Loading branch information
JaeHyuckSa committed Oct 27, 2023
1 parent 55fa48c commit 9afae8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ repos:
hooks:
- id: black
args: ['-l', '140', '-t', 'py311']

- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --remove-unused-variables
- --ignore-init-module-imports
- --in-place
- --recursive

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--line-length', '140']
args: ['--profile', 'black', '--filter-files', 'true']

default_language_version:
python: python3.11
6 changes: 5 additions & 1 deletion posts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
from posts.filters import PostFilter
from posts.models import Post
from posts.paginations import PaginationHandlerMixin
from posts.serializers import PostListSerializer, StatisticsListSerializer, StatisticsQuerySerializer
from posts.serializers import (
PostListSerializer,
StatisticsListSerializer,
StatisticsQuerySerializer,
)


class StatisticsListView(APIView):
Expand Down

0 comments on commit 9afae8d

Please sign in to comment.