티스토리 뷰
# requirements.txt
virtualenv
black
pre-commit
# pyproject.toml
[tool.black]
line-length = 80
# .pre-commit-config.yaml
repos:
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
rm -rf .venv
virtualenv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
pre-commit install
https://velog.io/@samnaka/pycharm-vscode-black-%EC%A0%81%EC%9A%A9
pycharm vscode black 적용, pre-commit
pycharm에서 python 가상환경을 생성해주고 pip install poetry로 poetry라는 패키지 관리 도구를 설치한다.poetry init으로 .toml 파일 생성 및 설정을 해준다.poetry add black으로 black을 설치한다.which bla
velog.io
https://dev.to/adamlombard/vscode-setting-line-lengths-in-the-black-python-code-formatter-1g62
VSCode: Setting line lengths in the Black Python code formatter
How to set Black Python code formatter line lengths in VSCode
dev.to
https://www.daleseo.com/python-black/
Black으로 파이썬 코드 스타일 통일하기
Engineering Blog by Dale Seo
www.daleseo.com
Run Pylint for all Python files in a directory and all subdirectories
I have find . -iname "*.py" -exec pylint -E {} ;\ and FILES=$(find . -iname "*.py") pylint -E $FILES If I understand correctly, the first command will run pylint for each of the Python files, ...
stackoverflow.com
'공부' 카테고리의 다른 글
[python] xor `bool(a) != bool(b)`; not xor `bool(a) == bool(b)` (0) | 2023.09.29 |
---|---|
[fastapi] locale i18n; async def asdf(request: Request): accept_language = request.headers.get("Accept-Language") (0) | 2023.09.28 |
[prometheus] alertmanager (0) | 2023.09.22 |
[java] for vs stream vs parallelStrem (0) | 2023.09.20 |
[spring] assertThrows (0) | 2023.09.20 |
- Total
- Today
- Yesterday
- COUNT
- 테슬라 레퍼럴
- 테슬라
- 개리마커스
- 테슬라 리퍼럴 코드
- follower
- 모델 Y 레퍼럴
- 모델y
- 연애학개론
- 테슬라 레퍼럴 적용 확인
- 인스타그램
- 팔로워 수 세기
- 테슬라 리퍼럴 코드 생성
- 테슬라 추천
- 테슬라 리퍼럴 코드 혜택
- Bot
- 김달
- 클루지
- 레퍼럴
- Kluge
- 어떻게 능력을 보여줄 것인가?
- 메디파크 내과 전문의 의학박사 김영수
- 책그림
- wlw
- 테슬라 레퍼럴 코드 확인
- 유투브
- 할인
- 테슬라 크레딧 사용
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |