Closed joapuiib closed 2 weeks ago
@joapuiib thanks a lot for your proposal, plz check CI reports
It seems there's a problem with the styles check hatch run style:check
.
I'm not familiar with style checking, but it seems the ruff
is not set properly.
Creating environment: style
Checking dependencies
Syncing dependencies
cmd [1] | isort --check-only --diff mkdocs_static_i18n
cmd [2] | black -q --check --diff mkdocs_static_i18n
cmd [3] | ruff mkdocs_static_i18n
error: unrecognized subcommand 'mkdocs_static_i18n'
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
Updating pyproject.tml
with the following changes seem to make it work.
diff --git a/pyproject.toml b/pyproject.toml
index 7cbeb84..8da3cf5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -97,7 +97,7 @@ dependencies = [
check = [
"isort --check-only --diff mkdocs_static_i18n",
"black -q --check --diff mkdocs_static_i18n",
- "ruff mkdocs_static_i18n",
+ "ruff check mkdocs_static_i18n",
]
format = [
"isort -q mkdocs_static_i18n",
I can update this in this PR with those changes, but I don't want to break anything.
A commit with the changes has been made.
If those changes are not wanted, the commit can be reverted.
Thanks a lot @joapuiib !
I've replaced all occurrences of
theme._vars
withtheme
in order to access theme variables directly.Fixes: #314
I've run tests and tested it locally, and it seems to work.