Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ name: CodeQL Analysis
on:
push:
branches: [ main, master ]
paths-ignore:
- '_data/**'
- .all-contributorsrc
pull_request:
branches: [ main, master ]
paths-ignore:
- '_data/**'
- .all-contributorsrc
schedule:
- cron: '0 0 * * 0'

Expand All @@ -22,7 +16,7 @@ jobs:
security-events: write

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@v4.37.9
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v7
- uses: actions/labeler@v7.0.0
20 changes: 0 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ vendor
.DS_Store
.idea
.tmp
.jekyll-metadata
.playwright-mcp/

# Claude Code configuration
.claude/
CLAUDE.md

# Temporary workflow files
.github/enrichment_review.md

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -67,13 +58,6 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
coverage/
test-results/

# Test files
test-*.html
*.test.html
static/test-*.html

# Translations
*.mo
Expand Down Expand Up @@ -161,7 +145,6 @@ venv.bak/

# mkdocs documentation
/site
/playwright-report

# mypy
.mypy_cache/
Expand All @@ -188,6 +171,3 @@ utils/tidy_conf/data/.tmp/
# pixi environments
.pixi
*.egg-info

# Node modules
node_modules/
18 changes: 1 addition & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
---
exclude: '.*[\\/]pretty_.*\.html$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml # Check YAML files for syntax errors
- id: debug-statements # Check for debugger imports and py37+ breakpoint()
- id: end-of-file-fixer # Ensure files end in a newline
exclude: '^pretty_.*\.html$'
- id: trailing-whitespace # Trailing whitespace checker
exclude: '^pretty_.*\.html$'
- id: check-added-large-files # Check for large files added to git
- id: check-merge-conflict # Check for files that contain merge conflict strings
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -27,7 +23,7 @@ repos:
- --force-single-line-imports
- --profile black
- repo: https://github.com/asottile/pyupgrade # Upgrade Python syntax
rev: v3.21.2
rev: v3.15.2
hooks:
- id: pyupgrade
args:
Expand Down Expand Up @@ -58,15 +54,3 @@ repos:
- --check-protected # Check protected methods
- --check-class # Check class docstrings
- --disable=E113 # Disable empty docstrings
- --summary # Print a summary

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: 'automated/pre-commit-autoupdate'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
submodules: false
10 changes: 5 additions & 5 deletions _i18n/de/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else -%}
{% assign start_date = include.start | date: "%Y-%m-%d" -%}
{% assign end_date = include.end | date: "%Y-%m-%d" -%}

{% if start_date == end_date -%}
{% assign day = start_date | date: "%-d" -%}
{% assign year = start_date | date: "%Y" -%}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% capture pretty_date %}{{ day }}. {{ month }} {{ year }}{% endcapture -%}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% assign year = start_date | date: "%Y" -%}
{% capture pretty_date %}{{ start_day }}. – {{ end_day }}. {{ month }} {{ year }}{% endcapture -%}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture -%}
{% assign year = start_date | date: "%Y" -%}
{% capture pretty_date %}{{ start_day }}. {{ start_month }} – {{ end_day }}. {{ end_month }} {{ year }}{% endcapture -%}

{% else -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" -%}
{% capture pretty_date %}{{ start_day }}. {{ start_month }} {{ start_year }} – {{ end_day }}. {{ end_month }} {{ end_year }}{% endcapture -%}
{% endif -%}
{% endif -%}{{ pretty_date | strip }}
{% endif -%}{{ pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/en/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
{% else %}
{% assign start_date = include.start | date: "%Y-%m-%d" %}
{% assign end_date = include.end | date: "%Y-%m-%d" %}

{% if start_date == end_date %}
{%- comment -%}When start and end dates are the same{%- endcomment -%}
{% assign day = start_date | date: "%-d" %}
{% assign year = start_date | date: "%Y" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture pretty_date %}{{ month }} {{ day }}, {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
{%- comment -%}When start and end dates are in the same month{% endcomment %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ month }} {{ start_day }} – {{ end_day }}, {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
{%- comment -%}When start and end dates are in the same year{%- endcomment -%}
{% assign start_day = start_date | date: "%-d" %}
Expand All @@ -39,7 +39,7 @@
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_month }} {{ start_day }} – {{ end_month }} {{ end_day }}, {{ year }}{% endcapture %}

{% else %}
{%- comment -%}When start and end dates are in different years{%- endcomment -%}
{% assign start_day = start_date | date: "%-d" %}
Expand All @@ -50,4 +50,4 @@
{% assign end_year = end_date | date: "%Y" %}
{% capture pretty_date %}{{ start_month}} {{start_day}}, {{ start_year }} – {{ end_month }} {{ end_day }}, {{ end_year }}{% endcapture %}
{% endif %}
{% endif %}{{pretty_date | strip }}
{% endif %}{{pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/es/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else -%}
{% assign start_date = include.start | date: "%Y-%m-%d" -%}
{% assign end_date = include.end | date: "%Y-%m-%d" -%}

{% if start_date == end_date -%}
{% assign day = start_date | date: "%-d" -%}
{% assign year = start_date | date: "%Y" -%}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% capture pretty_date %}{{ day }} de {{ month }} de {{ year }}{% endcapture -%}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% assign year = start_date | date: "%Y" -%}
{% capture pretty_date %}del {{ start_day }} al {{ end_day }} de {{ month }} de {{ year }}{% endcapture -%}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture -%}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture -%}
{% assign year = start_date | date: "%Y" -%}
{% capture pretty_date %}del {{ start_day }} de {{ start_month }} al {{ end_day }} de {{ end_month }} de {{ year }}{% endcapture -%}

{% else -%}
{% assign start_day = start_date | date: "%-d" -%}
{% assign end_day = end_date | date: "%-d" -%}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" -%}
{% capture pretty_date %}del {{ start_day }} de {{ start_month }} de {{ start_year }} al {{ end_day }} de {{ end_month }} de {{ end_year }}{% endcapture -%}
{% endif -%}
{% endif -%}{{ pretty_date | strip }}
{% endif -%}{{ pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/fr/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else %}
{% assign start_date = include.start | date: "%Y-%m-%d" %}
{% assign end_date = include.end | date: "%Y-%m-%d" %}

{% if start_date == end_date %}
{% assign day = start_date | date: "%-d" %}
{% assign year = start_date | date: "%Y" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture pretty_date %}{{ day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} – {{ end_day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} – {{ end_day }} {{ end_month }} {{ year }}{% endcapture %}

{% else %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} {{ start_year }} – {{ end_day }} {{ end_month }} {{ end_year }}{% endcapture %}
{% endif %}
{% endif %}{{ pretty_date | strip }}
{% endif %}{{ pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/hi/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else %}
{% assign start_date = include.start | date: "%Y-%m-%d" %}
{% assign end_date = include.end | date: "%Y-%m-%d" %}

{% if start_date == end_date %}
{% assign day = start_date | date: "%-d" %}
{% assign year = start_date | date: "%Y" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture pretty_date %}{{ day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {% t "times.from" %} {{ end_day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} {% t "times.from" %} {{ end_day }} {{ end_month }} {{ year }}{% endcapture %}

{% else %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} {{ start_year }} {% t "times.from" %} {{ end_day }} {{ end_month }} {{ end_year }}{% endcapture %}
{% endif %}
{% endif %}{{ pretty_date | strip }}
{% endif %}{{ pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/id/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else %}
{% assign start_date = include.start | date: "%Y-%m-%d" %}
{% assign end_date = include.end | date: "%Y-%m-%d" %}

{% if start_date == end_date %}
{% assign day = start_date | date: "%-d" %}
{% assign year = start_date | date: "%Y" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture pretty_date %}{{ day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} - {{ end_day }} {{ month }} {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} - {{ end_day }} {{ end_month }} {{ year }}{% endcapture %}

{% else %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} {{ start_month }} {{ start_year }} - {{ end_day }} {{ end_month }} {{ end_year }}{% endcapture %}
{% endif %}
{% endif %}{{ pretty_date | strip }}
{% endif %}{{ pretty_date | strip }}
10 changes: 5 additions & 5 deletions _i18n/pt-br/dates/pretty_dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
{% else %}
{% assign start_date = include.start | date: "%Y-%m-%d" %}
{% assign end_date = include.end | date: "%Y-%m-%d" %}

{% if start_date == end_date %}
{% assign day = start_date | date: "%-d" %}
{% assign year = start_date | date: "%Y" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture pretty_date %}{{ day }} de {{ month }} de {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y-%m" == end_date | date: "%Y-%m" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} a {{ end_day }} de {{ month }} de {{ year }}{% endcapture %}

{% elsif start_date | date: "%Y" == end_date | date: "%Y" %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
{% capture start_month %}{% t "times.months.{{ start_date | date: '%B' }}" %}{% endcapture %}
{% capture end_month %}{% t "times.months.{{ end_date | date: '%B' }}" %}{% endcapture %}
{% assign year = start_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} de {{ start_month }} a {{ end_day }} de {{ end_month }} de {{ year }}{% endcapture %}

{% else %}
{% assign start_day = start_date | date: "%-d" %}
{% assign end_day = end_date | date: "%-d" %}
Expand All @@ -46,4 +46,4 @@
{% assign end_year = end_date | date: "%Y" %}
{% capture pretty_date %}{{ start_day }} de {{ start_month }} de {{ start_year }} a {{ end_day }} de {{ end_month }} de {{ end_year }}{% endcapture %}
{% endif %}
{% endif %}{{ pretty_date | strip }}
{% endif %}{{ pretty_date | strip }}
Loading
Loading