Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
지라 팀에 추가되는대로 이슈 추가하여 PR title이랑 description 변경하겠습니다.
poetry run pre-commit install을 반드시 실행해야 사용할 수 있음.pre-commit-config.yaml에 등록된ruff관련 셋업의 id가 ruff라는 legacy alias로 세팅되어 린팅이 제대로 수행되지 않았습니다. 이를 개선하기 위해 id를ruff에서ruff-check로 변경하였습니다. 앞으로는 커밋시 아래와 같이ruff check작업과black작업이 시행됨을 확인할 수 있을 것입니다.poetry run ruff check . --fix명령어로 전체 린팅을 실시했습니다.ruff에서 권장하는 방식으로 exception 관련 코드들 변경했습니다. ruff로 인해try-except문에는 반드시from절을 통해 에러를 추적해야 커밋에 성공할 것입니다. 아래는 예시 코드입니다.협업을 위한 프리커밋 셋업이므로 테스트는 따로 진행할 수 없습니다.
이 브랜치가 합쳐지게 되면 앞으로는 ruff의 권장사항을 잘 준수해야 합니다.
ruff-check으로 린팅을ruff-format으로 포맷팅도 동시에 진행할 수 있어서 이 방식으로 구성한다면 일관성이 더 높을 것 같아 논의해보는게 좋을 것 같습니다.3번 관련 참고자료