Skip to content

Commit b17bf73

Browse files
author
Isac Byeonghoon Yoo
authored
Packaged nitpick style (#49)
* ⬆️ - Upgrade dependencies * ✨ - Get style from installed python package https://nitpick.readthedocs.io/en/latest/configuration.html#style-inside-python-package * 🔖 - Bump up version to 1.3.0 * 📝 - Update README
1 parent d5e9625 commit b17bf73

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ cost_video_owner = models.BigIntegerField( )
7070

7171
**항상 프로젝트의 root directory에서 실행해야함**
7272

73-
[IDE 연동](https://black.readthedocs.io/en/stable/editor_integration.html) 또한 가능
73+
[IDE 연동](https://black.readthedocs.io/en/stable/integrations/editors.html) 또한 가능
7474

7575
```bash
7676
black .
@@ -134,11 +134,9 @@ buzzvil-python-styleguide==LATEST_RELEASE
134134

135135
`pyproject.toml`에 아래 항목 추가 (파일이 없다면 project root directory에 추가)
136136

137-
(`VERSION`에는 패키지 버전과 동일한 값을 사용한다)
138-
139137
```toml
140138
[tool.nitpick]
141-
style = "https://github.com/Buzzvil/buzzvil-python-styleguide/raw/v{VERSION}/src/buzzvil_python_styleguide/styles/nitpick-style.toml"
139+
style = "py://buzzvil_python_styleguide/styles/nitpick-style.toml"
142140
```
143141

144142
### 2.4 툴들의 설정파일 적용

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
44

55
[tool.poetry]
66
name = "buzzvil-python-styleguide"
7-
version = "1.2.1"
7+
version = "1.3.0"
88
description = "Buzzvil's shared style preset"
99
authors = ["Isac Byeonghoon Yoo <[email protected]>"]
1010
maintainers = ["Isac Byeonghoon Yoo <[email protected]>"]
@@ -43,7 +43,7 @@ flake8-comprehensions = "^3.7.0"
4343
flake8-datetimez = "^20.10.0"
4444
flake8-django = { version = "^1.1.2", optional = true }
4545
flake8-eradicate = "^1.2.0"
46-
flake8-force-keyword-arguments = "^1.0.1"
46+
flake8-force-keyword-arguments = "^1.0.3"
4747
flake8-functions = "^0.0.6"
4848
flake8-future-import = "^0.4.6"
4949
flake8-logging-format = "^0.6.0"
@@ -52,7 +52,7 @@ flake8-pytest-style = "^1.5.0"
5252
flake8-return = "^1.1.3"
5353
importlib-metadata = {version = "*", python = "<3.8"}
5454
mypy = ">=0.910"
55-
nitpick = "^0.27.0"
55+
nitpick = "^0.28.0"
5656
pep8-naming = "^0.12.1"
5757
typing-extensions = { version = "^3.7.4.3", python = "<3.8" }
5858

@@ -75,7 +75,7 @@ target-version = ["py36", "py37", "py38", "py39"]
7575

7676

7777
[tool.nitpick]
78-
style = "src/buzzvil_python_styleguide/styles/nitpick-style.toml"
78+
style = "py://buzzvil_python_styleguide/styles/nitpick-style.toml"
7979
cache = "never"
8080

8181
[tool.mypy]

src/buzzvil_python_styleguide/styles/nitpick-style.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[nitpick]
2-
minimum_version = "0.22.0"
2+
minimum_version = "0.28.0"
33

44
[nitpick.styles]
55
include = [

0 commit comments

Comments
 (0)