From 5b9b51db3f87b94e806771d414cd0cb4cf2a27b0 Mon Sep 17 00:00:00 2001 From: long2ice Date: Tue, 2 Jun 2020 18:38:39 +0800 Subject: [PATCH] update github actions --- .github/workflows/pypi.yml | 1 + .github/workflows/test.yml | 1 + Makefile | 4 ++-- poetry.lock | 8 +++---- setup.cfg | 47 -------------------------------------- 5 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 setup.cfg diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index e97424c..5dde7af 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,6 +14,7 @@ jobs: POETRY_VIRTUALENVS_CREATE: false with: python_version: 3.8.0 + poetry_version: 1.0.5 args: install - name: Build dists run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 745c26c..a6204c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: POETRY_VIRTUALENVS_CREATE: false with: python_version: 3.8.0 + poetry_version: 1.0.5 args: install - name: CI env: diff --git a/Makefile b/Makefile index 61835f0..2557482 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,10 @@ help: @echo " style Auto-formats the code" up: - @poetry install + @poetry update deps: - @poetry update + @poetry install style: deps isort -rc $(checkfiles) diff --git a/poetry.lock b/poetry.lock index 600d4d2..2f44da6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -446,11 +446,11 @@ version = "3.7.4.2" [[package]] category = "dev" -description = "Measures number of Terminal column cells of wide-character codes" +description = "Measures the displayed width of unicode strings in a terminal" name = "wcwidth" optional = false python-versions = "*" -version = "0.1.9" +version = "0.2.2" [extras] dbdrivers = [] @@ -687,6 +687,6 @@ typing-extensions = [ {file = "typing_extensions-3.7.4.2.tar.gz", hash = "sha256:79ee589a3caca649a9bfd2a8de4709837400dfa00b6cc81962a1e6a1815969ae"}, ] wcwidth = [ - {file = "wcwidth-0.1.9-py2.py3-none-any.whl", hash = "sha256:cafe2186b3c009a04067022ce1dcd79cb38d8d65ee4f4791b8888d6599d1bbe1"}, - {file = "wcwidth-0.1.9.tar.gz", hash = "sha256:ee73862862a156bf77ff92b09034fc4825dd3af9cf81bc5b360668d425f3c5f1"}, + {file = "wcwidth-0.2.2-py2.py3-none-any.whl", hash = "sha256:b651b6b081476420e4e9ae61239ac4c1b49d0c5ace42b2e81dc2ff49ed50c566"}, + {file = "wcwidth-0.2.2.tar.gz", hash = "sha256:3de2e41158cb650b91f9654cbf9a3e053cee0719c9df4ddc11e4b568669e9829"}, ] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 66a6dec..0000000 --- a/setup.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[flake8] -max-line-length = 100 -exclude = -ignore = E501,W503,DAR101,DAR201,DAR402 - -[darglint] -docstring_style=sphinx - -[isort] -not_skip=__init__.py -multi_line_output=3 -include_trailing_comma=True -force_grid_wrap=0 -use_parentheses=True -line_length=100 - -[tool:pytest] -addopts = -n auto --tb=native -q - -[mypy] -pretty = True -ignore_missing_imports = True -check_untyped_defs = True -disallow_subclassing_any = True -disallow_untyped_calls = True -disallow_untyped_defs = False -disallow_incomplete_defs = False -disallow_untyped_decorators = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = True -warn_no_return = True -warn_return_any = False -warn_unused_configs = True -warn_unreachable = True -allow_redefinition = True -strict_equality = True -show_error_context = True - -[mypy-tests.*] -check_untyped_defs = False -disallow_untyped_defs = False -disallow_incomplete_defs = False -warn_unreachable = False - -[mypy-conftest] -disallow_untyped_defs = False \ No newline at end of file