From 0cf81f8b0b4920683b10d9e9e6012575b3adadae Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 17:44:28 +0900 Subject: [PATCH 1/7] ADD: black target versions --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bb589da..9bd464e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] [tool.black] preview = "True" line-length = "79" -target-version = ['py310'] +target-version = ['py39', 'py310', 'py311'] skip-string-normalization = "True" [tool.pytest.ini_options] From ea923274bf9cff08bf2515a315239afd5523347d Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 17:46:07 +0900 Subject: [PATCH 2/7] DEL: Remove skip single quote black setting --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9bd464e..bc5e128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,6 @@ sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] preview = "True" line-length = "79" target-version = ['py39', 'py310', 'py311'] -skip-string-normalization = "True" [tool.pytest.ini_options] addopts = "-p no:cacheprovider" From 6fc7bfd344726b7896ff46b6c4e833a3fbe1826b Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 17:53:29 +0900 Subject: [PATCH 3/7] CHG: Max length to 88 as black format --- pyproject.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bc5e128..8eb2aad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,12 +32,10 @@ build-backend = "poetry.core.masonry.api" [tool.isort] force_single_line = "True" profile = "black" -line_length = "79" sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] [tool.black] preview = "True" -line-length = "79" target-version = ['py39', 'py310', 'py311'] [tool.pytest.ini_options] From 176f6843b3c7dd3430597d5839c12311ee5dc5ab Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 17:58:11 +0900 Subject: [PATCH 4/7] CHG: isort config --- pyproject.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8eb2aad..66b9481 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,9 +30,7 @@ build-backend = "poetry.core.masonry.api" # Lint Configurations [tool.isort] -force_single_line = "True" profile = "black" -sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] [tool.black] preview = "True" From 665c6f8c84817dfdc4ad1ccbe2d18eb5bf4c4f51 Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 18:01:52 +0900 Subject: [PATCH 5/7] REF: toml style --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 66b9481..5dab703 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ build-backend = "poetry.core.masonry.api" profile = "black" [tool.black] -preview = "True" +preview = true target-version = ['py39', 'py310', 'py311'] [tool.pytest.ini_options] From ba64ffd89e5116abbeb1d9725bc52be18bf19b8f Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 18:03:40 +0900 Subject: [PATCH 6/7] ADD: Set line length 88 --- .flake8 | 1 + pyproject.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.flake8 b/.flake8 index 6dcaf9b..ee69542 100644 --- a/.flake8 +++ b/.flake8 @@ -2,3 +2,4 @@ extend-ignore = # E203: Whitespace before ':' (pycqa/pycodestyle#373) E203, +max-line-length = 88 diff --git a/pyproject.toml b/pyproject.toml index 5dab703..1f20040 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,9 +31,11 @@ build-backend = "poetry.core.masonry.api" # Lint Configurations [tool.isort] profile = "black" +line_length = 88 [tool.black] preview = true +line-length = 88 target-version = ['py39', 'py310', 'py311'] [tool.pytest.ini_options] From 325624790b00dbcb30eb3e37dcc5162e1d0c9e68 Mon Sep 17 00:00:00 2001 From: Jeongseop Lim Date: Fri, 1 Dec 2023 18:04:50 +0900 Subject: [PATCH 7/7] REF: Format with black --- src/python_library/__init__.py | 2 +- tests/test_python_library.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python_library/__init__.py b/src/python_library/__init__.py index 8a81504..92192ee 100644 --- a/src/python_library/__init__.py +++ b/src/python_library/__init__.py @@ -1 +1 @@ -__version__ = '1.0.4' +__version__ = "1.0.4" diff --git a/tests/test_python_library.py b/tests/test_python_library.py index 17a2ff7..823e251 100644 --- a/tests/test_python_library.py +++ b/tests/test_python_library.py @@ -2,4 +2,4 @@ def test_version(): - assert __version__ == '1.0.4' + assert __version__ == "1.0.4"