Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/sphinx-8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Sep 10, 2024
2 parents 76f27a9 + 9cd7e6b commit b7b81f2
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ codecov:

require_ci_to_pass: false

token: 796e466d-bf08-4b98-8d5b-0e9c442aef06 # repo-scoped

comment:
require_changes: true

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ jobs:
coverage xml
shell: bash
- name: Send coverage data to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: coverage.xml
flags: >-
CI-GHA,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
make lint
- name: Send coverage data to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.codecov-token }}
files: >-
Expand All @@ -72,7 +72,7 @@ jobs:
flags: >-
CI-GHA,
MyPy
fail_ci_if_error: false
fail_ci_if_error: true
- name: Install spell checker
run: |
sudo apt install libenchant-2-dev
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ repos:
additional_dependencies:
- types-docutils
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest < 8
- Sphinx >= 5.3.0, < 6
- pytest
- Sphinx >= 5.3.0
args:
- --python-version=3.8
- --txt-report=.tox/.tmp/.mypy/python-3.8
Expand Down
23 changes: 14 additions & 9 deletions CHANGES/.TEMPLATE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

{% if definitions[category]['showcontent'] %}
{% for text, change_note_refs in sections[section][category].items() %}
- {{ text + '\n' }}
- {{ text }}

{#
{{- '\n' * 2 -}}

{#-
NOTE: Replacing 'e' with 'f' is a hack that prevents Jinja's `int`
NOTE: filter internal implementation from treating the input as an
NOTE: infinite float when it looks like a scientific notation (with a
Expand Down Expand Up @@ -45,20 +47,23 @@
{%- endfor -%}
{%- endwith -%}

{% if pr_issue_numbers -%}
{% if pr_issue_numbers %}
*Related issues and pull requests on GitHub:*
:issue:`{{ pr_issue_numbers | join('`, :issue:`') }}`.
{% endif %}
{{- '\n' * 2 -}}
{%- endif -%}

{% if commit_refs -%}
{% if commit_refs %}
*Related commits on GitHub:*
:commit:`{{ commit_refs | join('`, :commit:`') }}`.
{% endif %}
{{- '\n' * 2 -}}
{%- endif -%}

{% if arbitrary_refs -%}
{% if arbitrary_refs %}
*Unlinked references:*
{{ arbitrary_refs | join(', ') }}`.
{% endif %}
{{ arbitrary_refs | join(', ') }}.
{{- '\n' * 2 -}}
{%- endif -%}

{% endfor %}
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)
if IS_RELEASE_ON_RTD:
tags: set[str]
tags.add("is_release")
tags.add("is_release") # noqa: F821


_docs_path = Path(__file__).parent
Expand Down
4 changes: 3 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ addopts =

# `pytest-cov`:
--cov
--cov-context=test
--cov-config=.coveragerc
--cov-context=test

# Fail on config parsing warnings:
# --strict-config
Expand Down Expand Up @@ -80,3 +80,5 @@ norecursedirs =
*.egg

testpaths = tests/

xfail_strict = true
2 changes: 1 addition & 1 deletion requirements/pytest.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest==8.3.2; python_version >= "3.8"
pytest==8.3.2
pytest-cov==5.0.0

0 comments on commit b7b81f2

Please sign in to comment.