diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b59c89..96472ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: minimum_pre_commit_version: 2.9.0 exclude: ^locale - repo: https://github.com/mondeja/project-config - rev: v0.9.3 + rev: v0.9.5 hooks: - id: project-config - repo: meta @@ -33,7 +33,7 @@ repos: - id: end-of-file-fixer name: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.3.1 hooks: - id: ruff args: @@ -44,7 +44,7 @@ repos: hooks: - id: autopep8 - repo: https://github.com/mondeja/mdpo - rev: v1.1.4 + rev: v2.0.0 hooks: - id: md2po2md files: ^README\.md @@ -63,11 +63,11 @@ repos: - id: untranslated-messages - id: remove-metadata - repo: https://github.com/adrienverge/yamllint - rev: v1.33.0 + rev: v1.35.1 hooks: - id: yamllint - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.12.0 + rev: v0.12.1 hooks: - id: markdownlint-cli2 name: markdownlint-readme diff --git a/README.md b/README.md index a8c89b3..a4130eb 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,8 @@ Paths of included files can be either: - Absolute paths (starting with a path separator). - Relative from the file that includes them (starting with `./` or `../`). - Relative to the [`docs_dir`] directory. For instance if your `docs_dir` is - _./docs/_, then `includes/header.md` will match the file _./docs/includes/header.md_. + _./docs/_, then `includes/header.md` will match the file + _./docs/includes/header.md_. - [Bash wildcard globs] matching multiple local files. File paths to include and string arguments can be wrapped by double `"` or @@ -274,6 +275,10 @@ Includes the content of a file or a group of files. [giving me the permissions][cibuildwheel-470] to separate this plugin from the documentation of [cibuildwheel][cibuildwheel-repo-link]. +[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax + + + [pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin [pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white [tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master @@ -287,5 +292,4 @@ Includes the content of a file or a group of files. [cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel [es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md [fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md -[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax [`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir diff --git a/locale/es/README.md b/locale/es/README.md index 95e8fc5..006c8af 100644 --- a/locale/es/README.md +++ b/locale/es/README.md @@ -108,9 +108,7 @@ Las rutas de los archivos a incluir pueden ser: - Relativo al directorio [`docs_dir`]. Por ejemplo, si tu `docs_dir` es _./docs/_, entonces `includes/header.md` coincidirá con el archivo *_./docs/includes/header.md_*. -- [Bash wildcard globs] matching multiple local files. -[Patrones glob de Bash] -que coincidan con múltiples archivos locales. +- [Patrones glob de Bash] que coincidan con múltiples archivos locales. Las rutas de archivo para incluir y los argumentos de cadena se pueden envolver con comillas dobles `"` o simples `'`, que se pueden escapar anteponiendo un @@ -268,6 +266,7 @@ se usará `utf-8`. separar este plugin de la documentación de [cibuildwheel][cibuildwheel-repo-link]. +[Patrones glob de Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax [pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin [pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white [tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master @@ -281,5 +280,4 @@ separar este plugin de la documentación de [cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel [es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md [fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md -[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax [`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir diff --git a/locale/es/README.md.po b/locale/es/README.md.po index dbf304e..6cb4a9e 100644 --- a/locale/es/README.md.po +++ b/locale/es/README.md.po @@ -282,9 +282,6 @@ msgstr "" "El comportamiento global del plugin puede ser personalizado en la " "configuración." -msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" -msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" - msgid "" "[coverage-image]: https://img.shields.io/codecov/c/github/mondeja/mkdocs-" "include-markdown-plugin?logo=codecov&logoColor=white" @@ -346,14 +343,7 @@ msgid "Absolute paths (starting with a path separator)." msgstr "Rutas absolutas (comenzando con un separador de rutas)." msgid "[Bash wildcard globs] matching multiple local files." -msgstr "" -"[Bash wildcard globs] matching multiple local files.\n" -"[Patrones glob de Bash] que coincidan con múltiples archivos locales." - -msgid "" -"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" -msgstr "" -"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" +msgstr "[Patrones glob de Bash] que coincidan con múltiples archivos locales." msgid "" "Relative from the file that includes them (starting with `./` or `../`)." @@ -408,3 +398,11 @@ msgstr "" "Relativo al directorio [`docs_dir`]. Por ejemplo, si tu `docs_dir` es " "_./docs/_, entonces `includes/header.md` coincidirá con el archivo " "*_./docs/includes/header.md_*." + +msgid "" +"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" +msgstr "" +"[Patrones glob de Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax" + +msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" +msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" diff --git a/locale/fr/README.md b/locale/fr/README.md index 4e90c2f..2caeee1 100644 --- a/locale/fr/README.md +++ b/locale/fr/README.md @@ -108,7 +108,7 @@ Les chemins des fichiers inclus peuvent être soit: - Relatif au répertoire [`docs_dir`]. Par exemple, si votre `docs_dir` est _./docs/_, alors `includes/header.md` va correspondre au fichier *_./docs/includes/header.md_*. -- Globs génériques Bash correspondant à plusieurs fichiers locaux. +- [Globs génériques Bash] correspondant à plusieurs fichiers locaux. Les chemins d'accès aux fichiers à inclure et les arguments de chaîne peuvent être entourés de guillemets doubles `"` ou simples `'`, qui peuvent être @@ -265,6 +265,7 @@ valeurs possibles sont `true` et `false`. autorisations][cibuildwheel-470] pour séparer ce plugin de la documentation de [cibuildwheel][cibuildwheel-repo-link]. +[Globs génériques Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax [pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin [pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white [tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master @@ -278,5 +279,4 @@ autorisations][cibuildwheel-470] pour séparer ce plugin de la documentation de [cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel [es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md [fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md -[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax [`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir diff --git a/locale/fr/README.md.po b/locale/fr/README.md.po index d7f3959..20c3964 100644 --- a/locale/fr/README.md.po +++ b/locale/fr/README.md.po @@ -282,9 +282,6 @@ msgstr "" "Le comportement global du plugin peut être personnalisé dans la " "configuration." -msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" -msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" - msgid "" "[coverage-image]: https://img.shields.io/codecov/c/github/mondeja/mkdocs-" "include-markdown-plugin?logo=codecov&logoColor=white" @@ -345,12 +342,7 @@ msgid "Absolute paths (starting with a path separator)." msgstr "Chemins de fichier absolus (commençant par un séparateur de chemin)." msgid "[Bash wildcard globs] matching multiple local files." -msgstr "Globs génériques Bash correspondant à plusieurs fichiers locaux." - -msgid "" -"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" -msgstr "" -"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" +msgstr "[Globs génériques Bash] correspondant à plusieurs fichiers locaux." msgid "" "Relative from the file that includes them (starting with `./` or `../`)." @@ -404,3 +396,12 @@ msgstr "" "Relatif au répertoire [`docs_dir`]. Par exemple, si votre `docs_dir` est " "_./docs/_, alors `includes/header.md` va correspondre au fichier " "*_./docs/includes/header.md_*." + +msgid "" +"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax" +msgstr "" +"[Globs génériques Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax" + +#, fuzzy +msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" +msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin" diff --git a/pyproject.toml b/pyproject.toml index 30a97b8..4f4097a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,9 +103,9 @@ targets = [{ file = "pyproject.toml" }] [tool.project-config] cache = "2 days" style = [ - "gh://mondeja/project-config-styles@v5.1/base/pre-commit/md2po2md.json5", - "gh://mondeja/project-config-styles@v5.1/python/base.json5", - "gh://mondeja/project-config-styles@v5.1/python/mypy.json5", + "gh://mondeja/project-config-styles@v5.2.1/base/pre-commit/md2po2md.json5", + "gh://mondeja/project-config-styles@v5.2.1/python/base.json5", + "gh://mondeja/project-config-styles@v5.2.1/python/mypy.json5", ] [tool.coverage.run] @@ -121,6 +121,8 @@ fail_under = 1 [tool.ruff] line-length = 80 target-version = "py38" + +[tool.ruff.lint] select = [ "W", "B", @@ -150,19 +152,19 @@ select = [ ] ignore = ["G004"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" -[tool.ruff.flake8-quotes] +[tool.ruff.lint.flake8-quotes] inline-quotes = "single" multiline-quotes = "single" -[tool.ruff.flake8-pytest-style] +[tool.ruff.lint.flake8-pytest-style] fixture-parentheses = false parametrize-values-type = "tuple" parametrize-values-row-type = "tuple" -[tool.ruff.isort] +[tool.ruff.lint.isort] lines-after-imports = 2 combine-as-imports = true force-wrap-aliases = true @@ -176,7 +178,7 @@ extra-standard-library = [ "wsgiref.types" ] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "tests/**" = [ "I002", "D100",