Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-rstcheck for openSUSE:Factory
checked in at 2024-09-09 14:44:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rstcheck (Old)
and /work/SRC/openSUSE:Factory/.python-rstcheck.new.10096 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rstcheck"
Mon Sep 9 14:44:28 2024 rev:8 rq:1199453 version:6.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rstcheck/python-rstcheck.changes
2024-04-07 22:13:51.151844675 +0200
+++
/work/SRC/openSUSE:Factory/.python-rstcheck.new.10096/python-rstcheck.changes
2024-09-09 14:45:21.448978491 +0200
@@ -1,0 +2,12 @@
+Sun Sep 8 13:10:42 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 6.2.4:
+ * Add note on how to disable pretty exception output
+ * Fix typer dependency by removing the `[standard]` extra which
+ is only used on typer-slim.
+ * Typer by default has the extras included.
+ * Bump min. version of typer and fix dependency group name
+ * Update configs for dev tooling
+ * Bump default python version to 3.12
+
+-------------------------------------------------------------------
Old:
----
rstcheck-6.2.1.tar.gz
New:
----
rstcheck-6.2.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-rstcheck.spec ++++++
--- /var/tmp/diff_new_pack.LkyssK/_old 2024-09-09 14:45:22.441019759 +0200
+++ /var/tmp/diff_new_pack.LkyssK/_new 2024-09-09 14:45:22.445019925 +0200
@@ -17,7 +17,7 @@
Name: python-rstcheck
-Version: 6.2.1
+Version: 6.2.4
Release: 0
Summary: Python module to check syntax of reStructuredText
License: MIT
++++++ rstcheck-6.2.1.tar.gz -> rstcheck-6.2.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/AUTHORS.rst
new/rstcheck-6.2.4/AUTHORS.rst
--- old/rstcheck-6.2.1/AUTHORS.rst 2024-03-23 09:28:58.000000000 +0100
+++ new/rstcheck-6.2.4/AUTHORS.rst 2024-07-07 11:08:50.000000000 +0200
@@ -17,6 +17,7 @@
- Dmitry <[email protected]>
- Doyle Rowland <[email protected]>
- Eugene Lorman <[email protected]>
+- Fabian Affolter <[email protected]>
- Jochen Sprickerhof <[email protected]>
- John Vandenberg <[email protected]>
- Kagami Sascha Rosylight <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/CHANGELOG.md
new/rstcheck-6.2.4/CHANGELOG.md
--- old/rstcheck-6.2.1/CHANGELOG.md 2024-03-23 10:31:32.000000000 +0100
+++ new/rstcheck-6.2.4/CHANGELOG.md 2024-07-07 18:16:34.000000000 +0200
@@ -17,11 +17,42 @@
## Unreleased
-[diff
v6.2.1...main](https://github.com/rstcheck/rstcheck/compare/v6.2.1...main)
+[diff
v6.2.4...main](https://github.com/rstcheck/rstcheck/compare/v6.2.4...main)
-## [6.2.1 (2024-03-23)](https://github.com/rstcheck/rstcheck/releases/v6.2.1)
+## [v6.2.4 (2024-07-07)](https://github.com/rstcheck/rstcheck/releases/v6.2.4)
-[diff
vv6.2.0...v6.2.1](https://github.com/rstcheck/rstcheck/compare/vv6.2.0...v6.2.1)
+[diff
v6.2.3...v6.2.4](https://github.com/rstcheck/rstcheck/compare/v6.2.3...v6.2.4)
+
+### Documentation
+
+- Add note on how to disable pretty exception output
([#228](https://github.com/rstcheck/rstcheck/pull/228))
+
+### Miscellaneous
+
+- Add help text to `--version` flag
([#228](https://github.com/rstcheck/rstcheck/pull/228))
+
+## [v6.2.3 (2024-07-07)](https://github.com/rstcheck/rstcheck/releases/v6.2.3)
+
+[diff
v6.2.2...v6.2.3](https://github.com/rstcheck/rstcheck/compare/v6.2.2...v6.2.3)
+
+### Bugfixes
+
+- Fix typer dependency by removing the `[standard]` extra which is only used
on typer-slim.
+ Typer by default has the extras included.
+
+## [v6.2.2 (2024-07-07)](https://github.com/rstcheck/rstcheck/releases/v6.2.2)
+
+[diff
v6.2.1...v6.2.2](https://github.com/rstcheck/rstcheck/compare/v6.2.1...v6.2.2)
+
+### Miscellaneous
+
+- Bump min. version of typer and fix dependency group name
([#223](https://github.com/rstcheck/rstcheck/issues/223))
+- Update configs for dev tooling
([#225](https://github.com/rstcheck/rstcheck/pull/225))
+- Bump default python version to 3.12
([#225](https://github.com/rstcheck/rstcheck/pull/225))
+
+## [v6.2.1 (2024-03-23)](https://github.com/rstcheck/rstcheck/releases/v6.2.1)
+
+[diff
v6.2.0...v6.2.1](https://github.com/rstcheck/rstcheck/compare/v6.2.0...v6.2.1)
### Miscellaneous
@@ -29,9 +60,9 @@
- Drop support for sphinx v4
([#207](https://github.com/rstcheck/rstcheck/pull/207))
- Added `__main__.py` to enable command-line execution via python -m rstcheck
([#206](https://github.com/rstcheck/rstcheck/pull/206))
-## [6.2.0 (2023-09-09)](https://github.com/rstcheck/rstcheck/releases/v6.2.0)
+## [v6.2.0 (2023-09-09)](https://github.com/rstcheck/rstcheck/releases/v6.2.0)
-[diff
vv6.1.2...v6.2.0](https://github.com/rstcheck/rstcheck/compare/v6.1.2...v6.2.0)
+[diff
v6.1.2...v6.2.0](https://github.com/rstcheck/rstcheck/compare/v6.1.2...v6.2.0)
### Bugfixes
@@ -47,7 +78,7 @@
- Change dev tooling ([#188](https://github.com/rstcheck/rstcheck/pull/188))
- Add python 3.12 to CI ([#188](https://github.com/rstcheck/rstcheck/pull/188))
-## [6.1.2 (2023-03-12)](https://github.com/rstcheck/rstcheck/releases/v6.1.2)
+## [v6.1.2 (2023-03-12)](https://github.com/rstcheck/rstcheck/releases/v6.1.2)
[diff
v6.1.1...v6.1.2](https://github.com/rstcheck/rstcheck/compare/v6.1.1...v6.1.2)
@@ -57,7 +88,7 @@
- Set tomli extra dependency to python < 3.11 like rstcheck-core
([#162](https://github.com/rstcheck/rstcheck/issues/162))
- Drop python 3.7 ([#177](https://github.com/rstcheck/rstcheck/pull/177))
-## [6.1.1 (2022-11-12)](https://github.com/rstcheck/rstcheck/releases/v6.1.1)
+## [v6.1.1 (2022-11-12)](https://github.com/rstcheck/rstcheck/releases/v6.1.1)
[diff
v6.1.0...v6.1.1](https://github.com/rstcheck/rstcheck/compare/v6.1.0...v6.1.1)
@@ -71,7 +102,7 @@
- Remove unused dependencies (docutils & its stubs, pydantic)
([#149](https://github.com/rstcheck/rstcheck/pull/149))
- Add python 3.11 to CI
-## [6.1.0 (2022-08-14)](https://github.com/rstcheck/rstcheck/releases/v6.1.0)
+## [v6.1.0 (2022-08-14)](https://github.com/rstcheck/rstcheck/releases/v6.1.0)
[diff
v6.0.0.post1...v6.1.0](https://github.com/rstcheck/rstcheck/compare/v6.0.0.post1...v6.1.0)
@@ -89,7 +120,7 @@
- Update development tooling dependencies
- Bump lower version constraint on typer from 0.3.2 to 0.4.1
([#138](https://github.com/rstcheck/rstcheck/issues/138))
-## [6.0.0.post1
(2022-06-05)](https://github.com/rstcheck/rstcheck/releases/v6.0.0.post1)
+## [v6.0.0.post1
(2022-06-05)](https://github.com/rstcheck/rstcheck/releases/v6.0.0.post1)
[diff
v6.0.0...v6.0.0.post1](https://github.com/rstcheck/rstcheck/compare/v6.0.0...v6.0.0.post1)
@@ -98,7 +129,7 @@
- Move release date into version headline link
- Don't include failing test example in sdist
([#128](https://github.com/rstcheck/rstcheck/issues/128))
-## [6.0.0 (2022-06-04)](https://github.com/rstcheck/rstcheck/releases/v6.0.0)
+## [v6.0.0 (2022-06-04)](https://github.com/rstcheck/rstcheck/releases/v6.0.0)
[diff
v6.0.0rc3...v6.0.0](https://github.com/rstcheck/rstcheck/compare/v6.0.0rc3...v6.0.0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/PKG-INFO new/rstcheck-6.2.4/PKG-INFO
--- old/rstcheck-6.2.1/PKG-INFO 2024-03-23 10:31:35.305953000 +0100
+++ new/rstcheck-6.2.4/PKG-INFO 2024-07-07 18:16:49.115837800 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: rstcheck
-Version: 6.2.1
+Version: 6.2.4
Summary: Checks syntax of reStructuredText and code blocks nested within it
Author-email: Steven Myint <[email protected]>
Maintainer-email: Christian Riedel <[email protected]>
@@ -15,9 +15,7 @@
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: rstcheck-core>=1.1
-Requires-Dist: importlib-metadata>=1.6; python_version <= "3.8"
-Requires-Dist: typing-extensions>=3.7.4; python_version <= "3.8"
-Requires-Dist: typer[all]>=0.4.1
+Requires-Dist: typer>=0.12.0
Provides-Extra: sphinx
Requires-Dist: sphinx>=5.0; extra == "sphinx"
Provides-Extra: toml
@@ -31,7 +29,7 @@
Requires-Dist: pytest-randomly>=3.0; extra == "testing"
Provides-Extra: docs
Requires-Dist: sphinx>=5.0; extra == "docs"
-Requires-Dist: m2r2>=0.3.2; extra == "docs"
+Requires-Dist: myst-parser>=3; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.2; extra == "docs"
Requires-Dist: sphinxcontrib-spelling>=7.3; extra == "docs"
Requires-Dist: sphinx-click>=4.0.3; extra == "docs"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/pyproject.toml
new/rstcheck-6.2.4/pyproject.toml
--- old/rstcheck-6.2.1/pyproject.toml 2024-01-24 17:59:55.000000000 +0100
+++ new/rstcheck-6.2.4/pyproject.toml 2024-07-07 17:56:49.000000000 +0200
@@ -22,9 +22,7 @@
dependencies = [
"rstcheck-core >=1.1",
- "importlib-metadata >=1.6; python_version<='3.8'",
- "typing-extensions >=3.7.4; python_version<='3.8'",
- "typer[all] >=0.4.1",
+ "typer >=0.12.0",
]
[project.scripts]
@@ -43,7 +41,7 @@
]
docs = [
"sphinx >=5.0",
- "m2r2 >=0.3.2",
+ "myst-parser >=3",
"sphinx-rtd-theme >=1.2",
"sphinxcontrib-spelling >=7.3",
"sphinx-click >=4.0.3",
@@ -66,120 +64,152 @@
write_to = "src/rstcheck/__version__.py"
-# -- BLACK CONFIG
---------------------------------------------------------------------
-[tool.black]
-line-length = 100
-exclude = "venv/"
-include = '\.pyi?$' # single quotes needed
-
-
# -- MYPY CONFIG
----------------------------------------------------------------------
[tool.mypy]
-show_error_codes = true
+python_version = "3.12"
+follow_imports = "silent"
+disallow_any_generics = true
+disallow_subclassing_any = true
+disallow_untyped_defs = true
+check_untyped_defs = true
strict_optional = true
-warn_unused_ignores = true
warn_redundant_casts = true
+warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
-disallow_any_generics = true
-check_untyped_defs = true
implicit_reexport = false
-python_version = "3.11" # CHANGE ME
-plugins = "pydantic.mypy"
+show_error_context = true
+show_column_numbers = true
+plugins = ["pydantic.mypy"]
+exclude = "\\.bak\\."
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = false
warn_required_dynamic_aliases = true
-warn_untyped_fields = true
# -- RUFF CONFIG
----------------------------------------------------------------------
[tool.ruff]
-target-version = "py311"
+target-version = "py312"
line-length = 100
-output-format = "grouped"
+output-format = "full"
show-fixes = true
-show-source = true
-task-tags = ["TODO", "FIXME", "XXX", "NOTE", "BUG", "HACK", "CHANGE ME"]
extend-exclude = [
"*venv*/",
"*.bak.*",
]
src = ["src", "tests"]
-unfixable = ["ERA001"]
-
+[tool.ruff.lint]
+# MISSING
+# flake8-aaa https://github.com/astral-sh/ruff/issues/3462
+# flake8-broken-line https://github.com/astral-sh/ruff/issues/3465
+# flake8-cognitive-complexity https://github.com/astral-sh/ruff/issues/2418 #
max_cognitive_complexity = 10
+# flake8-docstrings via pydocstyle?
+# flake8-rst-docstrings = ">=0.2.5" # RST...
+# flake8-sql https://github.com/sqlfluff/sqlfluff/
+# flake8-typing-imports https://github.com/astral-sh/ruff/issues/2302
+# flake8-use-fstring partial via UP031/UP032
https://github.com/astral-sh/ruff/issues/2097
+# flake8-variables-names https://github.com/astral-sh/ruff/issues/3463
+# flake8-walrus https://github.com/astral-sh/ruff/issues/3464
+#########
select = [
- "A", # flake8-builtins
- "AIR", # Airflow
- "ANN", # flake8-annotations
- "ARG", # flake8-unused-arguments
+ "A", # flake8-builtins
+ "AIR", # Airflow
+ "ANN", # flake8-annotations
+ "ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
- "B", # flake8-bugbear
- "BLE", # flake8-blind-except
- "C4", # flake8-comprehensions
- "C90", # mccabe
- # "COM", # flake8-commas # black does that
- "D", # pydocstyle
- "DJ", # flake8-django
- "DTZ", # flake8-datetimez
- "E", # pycodestyle
- "EM", # flake8-errmsg
- "ERA", # flake8-eradicate
- "EXE", # flake8-executable
- "F", # pyflakes
- "FA", # flake8-future-annotations
- "FBT", # flake8-boolean-trap
- # "FIX", # flake8-fixme # custom pre-commit hook does with RegEx
- "FLY", # flynt
- "G", # flake8-logging-format
- "I", # isort
- "ICN", # flake8-import-conventions
- "INP", # flake8-no-pep420
- "INT", # flake8-gettext
- "ISC", # flake8-implicit-str-concat
- "N", # pep8-naming
- "NPY", # NumPy-specific rules
- "PD", # flake8-vet
+ "B", # flake8-bugbear
+ "BLE", # flake8-blind-except
+ "C4", # flake8-comprehensions
+ "C90", # mccabe
+ # "COM", # flake8-commas # black does that
+ # "CPY", # flake8-copyright # not needed
+ "D", # pydocstyle
+ "DJ", # flake8-django
+ "DTZ", # flake8-datetimez
+ "E", # pycodestyle
+ "EM", # flake8-errmsg
+ "ERA", # flake8-eradicate
+ "EXE", # flake8-executable
+ "F", # pyflakes
+ "FA", # flake8-future-annotations
+ "FBT", # flake8-boolean-trap
+ # "FIX", # flake8-fixme # custom pre-commit hook does with RegEx
+ "FLY", # flynt
+ "FURB", # refurb
+ "G", # flake8-logging-format
+ "I", # isort
+ "ICN", # flake8-import-conventions
+ "INP", # flake8-no-pep420
+ "INT", # flake8-gettext
+ "ISC", # flake8-implicit-str-concat
+ "LOG", # flake8-logging
+ "N", # pep8-naming
+ "NPY", # NumPy-specific rules
+ "PD", # flake8-vet
"PERF", # Perflint
- "PGH", # pygrep-hooks
- "PIE", # flake8-pie
- "PLC", # Pylint - Convention
- "PLE", # Pylint - Error
- "PLR", # Pylint - Refactor
- "PLW", # Pylint - Warning
- "PT", # flake8-pytest-style
- "PTH", # flake8-use-pathlib
- "PYI", # flake8-pyi
- "Q", # flake8-quotes
- "RET", # flake8-return
- "RUF", # Ruff-specific rules
- "RSE", # flake8-raise
- "S", # flake8-bandit
- "SLF", # flake8-self
- "SLOT", # flake8-slots
- "SIM", # flake8-simplify
- # "T10", # flake8-debugger # pre-commit hook does that
- "T20", # flake8-print
- "TCH", # flake8-type-checking
- # "TD", # flake8-todo
- "TID", # flake8-tidy-imports
- "TRY", # tryceratops
- "UP", # pyupgrade
- "W", # pycodestyle
- "YTT", # flake8-2020
+ "PGH", # pygrep-hooks
+ "PIE", # flake8-pie
+ "PLC", # Pylint - Convention
+ "PLE", # Pylint - Error
+ "PLR", # Pylint - Refactor
+ "PLW", # Pylint - Warning
+ "PT", # flake8-pytest-style
+ "PTH", # flake8-use-pathlib
+ "PYI", # flake8-pyi
+ "Q", # flake8-quotes
+ "RET", # flake8-return
+ "RSE", # flake8-raise
+ "RUF", # Ruff-specific rules
+ "S", # flake8-bandit
+ "SIM", # flake8-simplify
+ "SLF", # flake8-self
+ "SLOT", # flake8-slots
+ # "T10", # flake8-debugger # pre-commit hook does that
+ "T20", # flake8-print
+ "TCH", # flake8-type-checking
+ "TD", # flake8-todos
+ "TID", # flake8-tidy-imports
+ "TRY", # tryceratops
+ "UP", # pyupgrade
+ "W", # pycodestyle
+ "YTT", # flake8-2020
]
-
ignore = [
# deactivate because unwanted
- "ANN101", # type self
- "ANN102", # type cls
- "E501", # line length
+ "ANN101", # type self
+ "ANN102", # type cls
+ "E501", # line length
+ "G00", # logging uses format strings
+ "PT011", # Use match for specific exceptions in pytest.raises
+ # Deactivated for ruff-fmt
+ "W191", # tab-indentation
+ "E111", # indentation-with-invalid-multiple
+ "E114", # indentation-with-invalid-multiple-comment
+ "E117", # over-indented
+ "D206", # indent-with-spaces
+ "D300", # triple-single-quotes
+ "TD001", # invalid-todo-tag
+ "TD002", # missing-todo-author
+ "TD003", # missing-todo-link
+ "Q000", # bad-quotes-inline-string
+ "Q001", # bad-quotes-multiline-string
+ "Q002", # bad-quotes-docstring
+ "Q003", # avoidable-escaped-quote
+ "COM812", # missing-trailing-comma
+ "COM819", # prohibited-trailing-comma
"PT011", # Use match for specific exceptions in pytest.raises
+ "ISC001", # single-line-implicit-string-concatenation
+ "ISC002", # multi-line-implicit-string-concatenation
]
+unfixable = ["ERA001"]
+
+task-tags = ["TODO", "FIXME", "XXX", "NOTE", "BUG", "HACK", "CHANGE ME"]
+# typing-modules = []
-[tool.ruff.per-file-ignores]
+[tool.ruff.lint.per-file-ignores]
"**/tests/**" = [
"ARG", # unused arguments
"PLR0913", # Too many arguments to function call
@@ -202,59 +232,62 @@
]
"__version__.py" = ["ALL"]
-[tool.ruff.flake8-annotations]
+[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
-[tool.ruff.flake8-bugbear]
+[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"typer.Argument",
"typer.Option",
]
-[tool.ruff.flake8-builtins]
+[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = [
"id",
]
-[tool.ruff.flake8-import-conventions.extend-aliases]
+[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"typing" = "t"
-[tool.ruff.flake8-pytest-style]
+[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
-[tool.ruff.flake8-type-checking]
+[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = [
"pydantic.BaseModel",
]
-[tool.ruff.isort]
+[tool.ruff.lint.isort]
combine-as-imports = true
+known-first-party = []
+known-third-party = []
required-imports = [
"from __future__ import annotations",
]
-[tool.ruff.mccabe]
+[tool.ruff.lint.mccabe]
max-complexity = 20
-[tool.ruff.pep8-naming]
+[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
- "pydantic.validator",
+ "pydantic.field_validator",
+ "pydantic.model_validator",
]
staticmethod-decorators = []
-[tool.ruff.pycodestyle]
+[tool.ruff.lint.pycodestyle]
ignore-overlong-task-comments = true
max-doc-length = 100
-[tool.ruff.pydocstyle]
+[tool.ruff.lint.pydocstyle]
convention = "pep257"
ignore-decorators = [
"typing.overload",
]
property-decorators = []
-[tool.ruff.pylint]
+[tool.ruff.lint.pylint]
max-args = 6
@@ -262,6 +295,8 @@
[tool.pytest.ini_options]
addopts = "-ra --showlocals"
mock_use_standalone_module = true
+junit_family = "xunit2"
+asyncio_mode = "strict"
# -- COVERAGE CONFIG
------------------------------------------------------------------
@@ -302,6 +337,7 @@
"if 0:",
"if False:",
"if TYPE_CHECKING:",
+ "if typing.TYPE_CHECKING:",
"if MYPY:",
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/src/rstcheck/__version__.py
new/rstcheck-6.2.4/src/rstcheck/__version__.py
--- old/rstcheck-6.2.1/src/rstcheck/__version__.py 2024-03-23
10:31:35.000000000 +0100
+++ new/rstcheck-6.2.4/src/rstcheck/__version__.py 2024-07-07
18:16:49.000000000 +0200
@@ -12,5 +12,5 @@
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE
-__version__ = version = '6.2.1'
-__version_tuple__ = version_tuple = (6, 2, 1)
+__version__ = version = '6.2.4'
+__version_tuple__ = version_tuple = (6, 2, 4)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/src/rstcheck/_cli.py
new/rstcheck-6.2.4/src/rstcheck/_cli.py
--- old/rstcheck-6.2.1/src/rstcheck/_cli.py 2024-03-23 09:28:58.000000000
+0100
+++ new/rstcheck-6.2.4/src/rstcheck/_cli.py 2024-07-07 18:15:53.000000000
+0200
@@ -47,13 +47,14 @@
HELP_IGNORE_MESSAGES = """A regular expression to match linting issue messages
against to ignore.
Can be set in config file.
"""
+HELP_VERSION = "Print versions and exit."
def setup_logger(loglevel: str) -> None:
"""Set up logging.
:param loglevel: Level to log at.
- :raises TypeError: On invalid logging leveles.
+ :raises TypeError: On invalid logging levels.
"""
numeric_level = getattr(logging, loglevel.upper(), None)
if not isinstance(numeric_level, int):
@@ -85,7 +86,7 @@
report_level: t.Optional[str] = typer.Option( # noqa: UP007
None, metavar="LEVEL", help=HELP_REPORT_LEVEL
),
- # TODO:#i# use `t.Literal["INFO", "WARNING", "ERROR", "SEVERE", "NONE"]`
when supported
+ # TODO: #i# use `t.Literal["INFO", "WARNING", "ERROR", "SEVERE", "NONE"]`
when supported
log_level: str = typer.Option("WARNING", metavar="LEVEL",
help=HELP_LOG_LEVEL),
ignore_directives: t.Optional[str] = typer.Option( # noqa: UP007
None, help=HELP_IGNORE_DIRECTIVES
@@ -101,9 +102,9 @@
None, metavar="REGEX", help=HELP_IGNORE_MESSAGES
),
version: t.Optional[bool] = typer.Option( # noqa: ARG001, UP007
- None, "--version", callback=version_callback, is_eager=True
+ None, "--version", callback=version_callback, is_eager=True,
help=HELP_VERSION
),
-) -> int:
+) -> None:
"""CLI of rstcheck."""
setup_logger(log_level)
logger = logging.getLogger(__name__)
@@ -137,9 +138,11 @@
exit_code = _runner.print_result()
except FileNotFoundError as exc:
- if not exc.strerror == "Passed config path not found.": # pragma: no
cover
- raise
- logger.critical("### Passed config path was not found: '%(path)s'",
{"path": exc.filename})
+ if exc.strerror == "Passed config path not found.": # pragma: no cover
+ logger.critical("Passed config path was not found: '%(path)s'",
{"path": exc.filename})
+ raise typer.Exit(code=1) from None
+
+ raise
raise typer.Exit(code=exit_code)
@@ -154,7 +157,7 @@
Enabled features: {enabled_features}
-Pass one ore more rst FILES to check.
+Pass one or more RST FILES to check.
Can be files or directories if --recursive is passed too.
Pass "-" if you want to read from stdin.
"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/src/rstcheck.egg-info/PKG-INFO
new/rstcheck-6.2.4/src/rstcheck.egg-info/PKG-INFO
--- old/rstcheck-6.2.1/src/rstcheck.egg-info/PKG-INFO 2024-03-23
10:31:35.000000000 +0100
+++ new/rstcheck-6.2.4/src/rstcheck.egg-info/PKG-INFO 2024-07-07
18:16:49.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: rstcheck
-Version: 6.2.1
+Version: 6.2.4
Summary: Checks syntax of reStructuredText and code blocks nested within it
Author-email: Steven Myint <[email protected]>
Maintainer-email: Christian Riedel <[email protected]>
@@ -15,9 +15,7 @@
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: rstcheck-core>=1.1
-Requires-Dist: importlib-metadata>=1.6; python_version <= "3.8"
-Requires-Dist: typing-extensions>=3.7.4; python_version <= "3.8"
-Requires-Dist: typer[all]>=0.4.1
+Requires-Dist: typer>=0.12.0
Provides-Extra: sphinx
Requires-Dist: sphinx>=5.0; extra == "sphinx"
Provides-Extra: toml
@@ -31,7 +29,7 @@
Requires-Dist: pytest-randomly>=3.0; extra == "testing"
Provides-Extra: docs
Requires-Dist: sphinx>=5.0; extra == "docs"
-Requires-Dist: m2r2>=0.3.2; extra == "docs"
+Requires-Dist: myst-parser>=3; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.2; extra == "docs"
Requires-Dist: sphinxcontrib-spelling>=7.3; extra == "docs"
Requires-Dist: sphinx-click>=4.0.3; extra == "docs"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/src/rstcheck.egg-info/requires.txt
new/rstcheck-6.2.4/src/rstcheck.egg-info/requires.txt
--- old/rstcheck-6.2.1/src/rstcheck.egg-info/requires.txt 2024-03-23
10:31:35.000000000 +0100
+++ new/rstcheck-6.2.4/src/rstcheck.egg-info/requires.txt 2024-07-07
18:16:49.000000000 +0200
@@ -1,9 +1,5 @@
rstcheck-core>=1.1
-typer[all]>=0.4.1
-
-[:python_version <= "3.8"]
-importlib-metadata>=1.6
-typing-extensions>=3.7.4
+typer>=0.12.0
[dev]
rstcheck[docs,sphinx,testing,toml,type-check]
@@ -11,7 +7,7 @@
[docs]
sphinx>=5.0
-m2r2>=0.3.2
+myst-parser>=3
sphinx-rtd-theme>=1.2
sphinxcontrib-spelling>=7.3
sphinx-click>=4.0.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rstcheck-6.2.1/tests/_cli_test.py
new/rstcheck-6.2.4/tests/_cli_test.py
--- old/rstcheck-6.2.1/tests/_cli_test.py 2024-03-23 09:28:58.000000000
+0100
+++ new/rstcheck-6.2.4/tests/_cli_test.py 2024-07-07 14:26:09.000000000
+0200
@@ -1,7 +1,7 @@
"""Tests for ``_cli`` module.
``_cli.cli`` is not really good testable with unit tests.
-Therfore tests are in the ``integration_tests`` directory.
+Therefore tests are in the ``integration_tests`` directory.
"""
from __future__ import annotations
@@ -20,5 +20,5 @@
@pytest.mark.parametrize("level", ["debug", "InFO", "WARNING", "ErRor",
"critical"])
def test_setup_logger_valid_levels(level: str) -> None:
- """Test no execption is raised on valid levels."""
+ """Test no exception is raised on valid levels."""
_cli.setup_logger(level) # act