From d681be98ef5184e2d4d0fa56a17aa0a0774058a8 Mon Sep 17 00:00:00 2001 From: Doyle Rowland Date: Wed, 28 Dec 2022 12:03:51 -0500 Subject: [PATCH 1/4] chore: update tool versions --- .github/workflows/all-lints.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/all-lints.yml b/.github/workflows/all-lints.yml index 1995600..d08d13c 100644 --- a/.github/workflows/all-lints.yml +++ b/.github/workflows/all-lints.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: weibullguy/python-lint@master + - uses: weibullguy/python-lint-plus@master with: python-root-list: "tests" use-check-manifest: false diff --git a/Dockerfile b/Dockerfile index 7aa2e54..1c97250 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Container image that runs your code -FROM weibullguy/python-lint-image:1.9.0 +FROM weibullguy/python-lint-image:1.10.0 # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh diff --git a/README.md b/README.md index a9d88ad..4c1a310 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ recommended that the tools you use in this action be used in-line with your editor or IDE and/or as pre-commit hooks. This action just verifies you didn't forget to do that. -However, you could choose to have fixes applies by each tool. If you do, it's +However, you could choose to have fixes applied by each tool. If you do, it's recommended that the autoformatters come first, followed by the style checking tools to verify the autoformatter results. After this, the type checkers and linters can be run. @@ -60,7 +60,7 @@ steps: - uses: actions/checkout@v2 - uses: weibullguy/python-lint-plus@master with: - python-root-list: "python_alelo tests" + python-root-list: "tests" use-black: false use-yapf: false use-isort: false From 9b0d5e40b0b981ea21da675cd3ed4be2951027e2 Mon Sep 17 00:00:00 2001 From: Doyle Rowland Date: Wed, 28 Dec 2022 12:06:30 -0500 Subject: [PATCH 2/4] style: add docstring to test package --- tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..5ed976b 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1 @@ +"""Tests package for python-lint-plus""" From 6e1e94264681583c1b104294ae8bd52dfc22d6f2 Mon Sep 17 00:00:00 2001 From: Doyle Rowland Date: Wed, 28 Dec 2022 12:08:46 -0500 Subject: [PATCH 3/4] style: add newline to __init__.py --- tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index d9962e3..13fb542 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,2 @@ -"""Tests package for python-lint-plus""" \ No newline at end of file +"""Tests package for python-lint-plus""" + From ffd393303eb9d6dfbfe6a1023c29408e0279a930 Mon Sep 17 00:00:00 2001 From: Doyle Rowland Date: Wed, 28 Dec 2022 12:22:07 -0500 Subject: [PATCH 4/4] style: format test files --- tests/__init__.py | 3 +-- tests/test_python_code.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 13fb542..40bde95 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1 @@ -"""Tests package for python-lint-plus""" - +"""Tests package for python-lint-plus.""" diff --git a/tests/test_python_code.py b/tests/test_python_code.py index d36007e..4c191db 100644 --- a/tests/test_python_code.py +++ b/tests/test_python_code.py @@ -9,6 +9,6 @@ def get_name_len(name: str) -> int: def start(): - "Run ... " + "Run ..." print(get_name_len("Doyle")) print(uuid.uuid4().hex)