Skip to content

Commit 3a508eb

Browse files
committed
Apply ruff
1 parent 5206902 commit 3a508eb

72 files changed

Lines changed: 277 additions & 201 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ codecov:
2323
# running CI pipelines. This configuration is particularly useful on PRs
2424
# to avoid confusion. Note that this value is set to the number of Azure
2525
# Pipeline jobs uploading coverage reports.
26-
after_n_builds: 6
26+
after_n_builds: 6

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ jobs:
3939
uses: pypa/gh-action-pypi-publish@release/v1
4040

4141
- name: Deploy mkdocs site
42-
run: |
42+
run: |
4343
uv run mkdocs gh-deploy --force

.github/workflows/scheduled_unittests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ jobs:
2424
git config --global user.email "githubaction@gmail.com"
2525
uv sync --upgrade
2626
uv run pytest
27-

.github/workflows/unittests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ jobs:
2323
git config --global user.name "Github Action"
2424
git config --global user.email "githubaction@gmail.com"
2525
uv run pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
26-

.github/workflows/unittests_codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
flags: unittests
4141
fail_ci_if_error: false
4242
env:
43-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ repos:
1919
- id: ruff-check
2020
args: [ --fix ]
2121
# Run the formatter.
22-
- id: ruff-format
22+
- id: ruff-format

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ Contributions are very welcome! Please read [CONTRIBUTING.md](https://github.com
6969
- [mkdocs-git-authors-plugin](https://github.com/timvink/mkdocs-git-authors-plugin) for displaying the authors from git
7070
- [mkdocs-git-committers-plugin-2](https://github.com/ojacques/mkdocs-git-committers-plugin-2) for displaying authors' github user profiles
7171
- [mkdocs-document-dates](https://github.com/jaywhj/mkdocs-document-dates) for displaying dates based on file creation and modification dates.
72-
- Initial fork from [mkdocs-git-revision-date-plugin](https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin).
72+
- Initial fork from [mkdocs-git-revision-date-plugin](https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin).

docs/available-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you do not want to include revision dates manually in each markdown file, or
2525
- `page.meta.git_creation_date_localized`
2626
- `page.meta.git_revision_date_localized_raw_date`
2727

28-
To allow for more flexibility when overriding a theme there are also variables for each different `type` available (regardless of the setting for `type` in [options](options.md)), where the output is also not wrapped in `<span>` elements (so you can do the CSS styling yourself):
28+
To allow for more flexibility when overriding a theme there are also variables for each different `type` available (regardless of the setting for `type` in [options](options.md)), where the output is also not wrapped in `<span>` elements (so you can do the CSS styling yourself):
2929

3030
- `page.meta.git_revision_date_localized_raw_date`
3131
- `page.meta.git_revision_date_localized_raw_datetime`

docs/howto/custom-styling.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Apply custom styling
22

3-
You can change the appearance of the revision dates by [including extra CSS](https://www.mkdocs.org/user-guide/configuration/#extra_css) to your mkdocs site.
3+
You can change the appearance of the revision dates by [including extra CSS](https://www.mkdocs.org/user-guide/configuration/#extra_css) to your mkdocs site.
44

55
## CSS Classes
66

@@ -14,7 +14,7 @@ For example when `type: datetime` is set, using the following in a markdown file
1414
Could output the following HTML:
1515

1616
```django
17-
Last update:
17+
Last update:
1818
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">28 November, 2019 13:57:28</span>
1919
```
2020

@@ -34,4 +34,3 @@ Making all revision dates red is as easy as:
3434
extra_css:
3535
css/extra.css
3636
```
37-

docs/howto/override-a-theme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You can [customize an existing theme](https://www.mkdocs.org/user-guide/styling-
44

55
## Example: default `mkdocs` theme
66

7-
To add a revision date to the default `mkdocs` theme, add a `overrides/partials` folder to your `docs` folder and update your `mkdocs.yml` file.
7+
To add a revision date to the default `mkdocs` theme, add a `overrides/partials` folder to your `docs` folder and update your `mkdocs.yml` file.
88
Then you can extend the base `mkdocs` theme by adding a new file `docs/overrides/content.html`:
99

1010
=== ":octicons-file-code-16: mkdocs.yml"
@@ -18,7 +18,7 @@ Then you can extend the base `mkdocs` theme by adding a new file `docs/overrides
1818
=== ":octicons-file-code-16: docs/overrides/content.html"
1919

2020
```html
21-
<!-- Overwrites content.html base mkdocs theme, taken from
21+
<!-- Overwrites content.html base mkdocs theme, taken from
2222
https://github.com/mkdocs/mkdocs/blob/master/mkdocs/themes/mkdocs/content.html -->
2323

2424
{% if page.meta.source %}
@@ -42,7 +42,7 @@ Then you can extend the base `mkdocs` theme by adding a new file `docs/overrides
4242

4343
## Example: `mkdocs-material` theme
4444

45-
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/) has built-in support for `git_revision_date_localized` and `git_created_date_localized`. You can see that when viewing their [`source-file.html`](https://github.com/squidfunk/mkdocs-material/blob/master/src/partials/source-file.html) partial.
45+
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/) has built-in support for `git_revision_date_localized` and `git_created_date_localized`. You can see that when viewing their [`source-file.html`](https://github.com/squidfunk/mkdocs-material/blob/master/src/partials/source-file.html) partial.
4646

4747
If you want, you can customize further by [extending the mkdocs-material theme](https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme) and overriding the `source-file.html` partial as follows:
4848

@@ -59,9 +59,9 @@ If you want, you can customize further by [extending the mkdocs-material theme](
5959
```html
6060
{% import "partials/language.html" as lang with context %}
6161

62-
<!-- taken from
62+
<!-- taken from
6363
https://github.com/squidfunk/mkdocs-material/blob/master/src/partials/source-file.html -->
64-
64+
6565
<hr />
6666
<div class="md-source-file">
6767
<small>
@@ -85,7 +85,7 @@ If you want, you can customize further by [extending the mkdocs-material theme](
8585
</div>
8686
```
8787

88-
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/) also supports [custom translations](https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#custom-translations) that you can use to specify alternative translations for `source.file.date.updated` ("Last updated") and `source.file.date.created` ("Created").
88+
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/) also supports [custom translations](https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#custom-translations) that you can use to specify alternative translations for `source.file.date.updated` ("Last updated") and `source.file.date.created` ("Created").
8989

9090
## Example: List last updated pages
9191

0 commit comments

Comments
 (0)