From cdfd92fdbf5f2641b7506095cccbc2e6f386d957 Mon Sep 17 00:00:00 2001 From: Kosta Date: Sat, 30 Nov 2024 21:06:00 +0000 Subject: [PATCH] chore: rst linter --- Makefile | 1 + poetry.lock | 26 +++++++++++++++++++++++++- pyproject.toml | 3 ++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a548f1d..9f272ab 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ code-format: .PHONY: static-analysis # Runs static analysis static-analysis: @prospector --profile ./prospector.yaml src + @rst-lint . .PHONY: security-analysis # Runs security analysis looking for vulnerabilities in code; required arguments:~file=[file path]: the file to analyze security-analysis: diff --git a/poetry.lock b/poetry.lock index 8e3e654..d83cdfb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -226,6 +226,17 @@ files = [ graph = ["objgraph (>=1.7.2)"] profile = ["gprof2dot (>=2022.7.29)"] +[[package]] +name = "docutils" +version = "0.21.2" +description = "Docutils -- Python Documentation Utilities" +optional = false +python-versions = ">=3.9" +files = [ + {file = "docutils-0.21.2-py3-none-any.whl", hash = "sha256:dafca5b9e384f0e419294eb4d2ff9fa826435bf15f15b7bd45723e8ad76811b2"}, + {file = "docutils-0.21.2.tar.gz", hash = "sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f"}, +] + [[package]] name = "dodgy" version = "0.2.1" @@ -823,6 +834,19 @@ packaging = ">=21.3" semver = ">=3.0.0,<4.0.0" toml = {version = ">=0.10.2,<0.11.0", markers = "python_version < \"3.11\""} +[[package]] +name = "restructuredtext-lint" +version = "1.4.0" +description = "reStructuredText linter" +optional = false +python-versions = "*" +files = [ + {file = "restructuredtext_lint-1.4.0.tar.gz", hash = "sha256:1b235c0c922341ab6c530390892eb9e92f90b9b75046063e047cacfb0f050c45"}, +] + +[package.dependencies] +docutils = ">=0.11,<1.0" + [[package]] name = "rich" version = "13.9.4" @@ -1018,4 +1042,4 @@ dev = [] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4.0" -content-hash = "77ef6bdd86de71461baf2a336dd50743954b9864397136412c103f17b896cd62" +content-hash = "bcdbb358fb5932f577486751ffcd478c040fe9a6c68476245d70c908fdd3b415" diff --git a/pyproject.toml b/pyproject.toml index ed3bcab..f3b5cc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,7 @@ build = "~1.2.1" black = "*" pylint = "*" [tool.poetry.extras] -dev = ["pytest", "pytest-cov", "prospector", "bandit", "setuptools", "build", "black", "pylint"] +dev = ["pytest", "pytest-cov", "prospector", "bandit", "setuptools", "build", "black", "pylint", "restructuredtext-lint"] [tool.poetry.plugins."ofxstatement"] alfabank = "ofxstatement_ru.alfabank:AlfabankPlugin" avangard = "ofxstatement_ru.avangard:AvangardPlugin" @@ -75,6 +75,7 @@ vtb = "ofxstatement_ru.vtb:VtbPlugin" [tool.poetry.group.dev.dependencies] pylint = "^3.3.1" +restructuredtext-lint = "^1.4.0" [tool.poetry-dynamic-versioning] enable = true