From 7381da022392e6be099799351d84c767856772aa Mon Sep 17 00:00:00 2001 From: shatakshiiii Date: Wed, 25 Oct 2023 16:21:19 +0530 Subject: [PATCH 1/3] Add support for python 3.12 --- .github/workflows/tox.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9c4a7ff..b2a4df3 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -26,7 +26,7 @@ jobs: uses: coactions/dynamic-matrix@v1 with: min_python: "3.7" - max_python: "3.11" + max_python: "3.12" default_python: "3.11" # used by jobs in other_names other_names: | lint diff --git a/pyproject.toml b/pyproject.toml index fa330f4..7d3360a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ classifiers = [ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ] From 1dbcb46ae6d18cd09669b7f6f6b503d81f29e502 Mon Sep 17 00:00:00 2001 From: shatakshiiii Date: Thu, 26 Oct 2023 10:14:45 +0530 Subject: [PATCH 2/3] revert some changes --- .darglint | 7 ------- .pre-commit-config.yaml | 9 +++++++-- pyproject.toml | 6 ++++++ 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 .darglint diff --git a/.darglint b/.darglint deleted file mode 100644 index 8e68aa3..0000000 --- a/.darglint +++ /dev/null @@ -1,7 +0,0 @@ -[darglint] -# NOTE: All `darglint` styles except for `sphinx` hit ridiculously low -# NOTE: performance on some of the in-project Python modules. -# Refs: -# * https://github.com/terrencepreilly/darglint/issues/186 -docstring_style = sphinx -strictness = full diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92aa268..7662e49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,16 +57,21 @@ repos: - id: cspell name: Spell check with cspell - # untill ruff has parity with darglint - repo: https://github.com/PyCQA/flake8.git rev: 6.1.0 hooks: - id: flake8 language_version: python3 additional_dependencies: - - darglint - flake8-docstrings + - repo: https://github.com/jsh9/pydoclint + rev: 0.3.4 + hooks: + - id: pydoclint + args: + - "--config=pyproject.toml" + - repo: https://github.com/pycqa/pylint.git rev: v3.0.1 hooks: diff --git a/pyproject.toml b/pyproject.toml index 7d3360a..ade69e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,12 @@ write_to = "src/tox_ansible/_version.py" [tool.black] line-length = 100 +[tool.pydoclint] +allow-init-docstring = true +arg-type-hints-in-docstring = false +check-return-types = false +style = 'google' + [tool.pylint] [tool.pylint.format] From 5056b05216673f542af77aa920b35218081380f7 Mon Sep 17 00:00:00 2001 From: shatakshiiii Date: Thu, 26 Oct 2023 19:18:06 +0530 Subject: [PATCH 3/3] update pyyaml --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index eae1c3a..0f5ace7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,7 @@ pre-commit==3.2.2 pyproject-api==1.5.1 pytest==7.3.1 pytest-xdist==3.2.1 -pyyaml==6.0 +pyyaml==6.0.1 tox==4.5.1 virtualenv==20.23.0