twisted / towncrier

Manage the release notes for your project.
https://towncrier.readthedocs.io
MIT License
776 stars 120 forks source link

Add explicit encoding to read_text. #577

Closed jaraco closed 5 months ago

jaraco commented 7 months ago

Closes #561

Description

Checklist

graingert commented 7 months ago

Might be worth enabling encoding warnings

jaraco commented 7 months ago

Here's where I do that for my projects:

https://github.com/jaraco/skeleton/blob/68ac292eb37ce92e992e6fab05a44ad86f32e8f1/tox.ini#L4-L5

I scanned through the equivalent config for towncrier (the noxfile), but I don't immediately see how a environment variable could be set. It's also not obvious to me if it should be set for tests only or for all sessions. Reading through the docs, the env parameter exists for run() and as a property on the session, but it's unclear what it's role is. Reading between the lines, it sounds like env is similar to the env parameter to subprocess.Popen(env=) - that is, if supplied, it replaces the default environment rather than supplementing it, which is very different to tox's setenv (which supplements the environment variables).

Interestingly, running tox-to-nox on that config creates a noxfile that uses session.env.__setitem__ in each session to set the value:

import nox

@nox.session(python='/Users/jaraco/Library/Application Support/pipx/venvs/nox/bin/python')
def diffcov(session):
    """run tests and check that diff from main is covered"""
    session.env['PYTHONWARNDEFAULTENCODING'] = '1'
    session.install('diff-cover')
    session.install('-e', '.')
    session.run('pytest', '--cov-report', 'xml')
    session.run('diff-cover', 'coverage.xml', '--compare-branch=origin/main', '--html-report', 'diffcov.html')
    session.run('diff-cover', 'coverage.xml', '--compare-branch=origin/main', '--fail-under=100')

@nox.session(python='/Users/jaraco/Library/Application Support/pipx/venvs/nox/bin/python')
def docs(session):
    """build the documentation"""
    session.env['PYTHONWARNDEFAULTENCODING'] = '1'
    session.install('-e', '.')
    session.chdir('docs')
    session.run('python', '-m', 'sphinx', '-W', '--keep-going', '.', '/Users/jaraco/code/jaraco/skeleton/build/html')
    session.run('python', '-m', 'sphinxlint', '--jobs', '1')

@nox.session(python='/Users/jaraco/Library/Application Support/pipx/venvs/nox/bin/python')
def finalize(session):
    """assemble changelog and tag a release"""
    session.env['PYTHONWARNDEFAULTENCODING'] = '1'
    session.install('towncrier', 'jaraco.develop >= 7.23')
    session.run('python', '-m', 'jaraco.develop.finalize')

@nox.session(python='/Users/jaraco/Library/Application Support/pipx/venvs/nox/bin/python')
def py(session):
    """perform primary checks (tests, style, types, coverage)"""
    session.env['PYTHONWARNDEFAULTENCODING'] = '1'
    session.install('-e', '.')
    session.run('pytest')

@nox.session(python='/Users/jaraco/Library/Application Support/pipx/venvs/nox/bin/python')
def release(session):
    """publish the package to PyPI and GitHub"""
    session.env['TWINE_USERNAME'] = '__token__'
    session.install('build', 'twine>=3', 'jaraco.develop>=7.1')
    session.run('python', '-c', 'import shutil; shutil.rmtree('dist', ignore_errors=True)')
    session.run('python', '-m', 'build')
    session.run('python', '-m', 'twine', 'upload', 'dist/*')
    session.run('python', '-m', 'jaraco.develop.create-github-release')
jaraco commented 7 months ago

Adding the environment variable to the tests does reveal that there are many more locations in the code where the warning is triggered:

``` towncrier tests/encoding-warnings @ git diff HEAD~1 diff --git a/noxfile.py b/noxfile.py index d3e7d02..e7a4baf 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,6 +20,7 @@ def pre_commit(session: nox.Session) -> None: # Keep list in-sync with ci.yml/test-linux & pyproject.toml @nox.session(python=["pypy3.8", "3.8", "3.9", "3.10", "3.11", "3.12"]) def tests(session: nox.Session) -> None: + session.env["PYTHONWARNDEFAULTENCODING"] = "1" session.install("Twisted", "coverage[toml]") posargs = list(session.posargs) towncrier tests/encoding-warnings @ nox -e tests-3.12 nox > Running session tests-3.12 nox > Re-using existing virtual environment at .nox/tests-3-12. nox > python -m pip install Twisted 'coverage[toml]' nox > python -m pip install . nox > coverage run --module twisted.trial towncrier towncrier.test.test_build TestCli test_all_version_notes_in_a_single_file ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:844: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:822: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_bullet_points_false ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:911: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:913: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:915: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:917: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_collision ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:222: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:224: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_command ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:26: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:32: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:36: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:39: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:41: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:43: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:45: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:47: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:49: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:52: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:55: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_confirmation_says_no ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp_n3r312v/.git/ [main (root-commit) 2e4ad7b] Initial Commit 2 files changed, 3 insertions(+) create mode 100644 foo/__init__.py create mode 100644 pyproject.toml [main e57621d] Second Commit 2 files changed, 2 insertions(+) create mode 100644 foo/newsfragments/123.feature create mode 100644 foo/newsfragments/124.feature.rst [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:484: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:486: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_default_start_string ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_default_start_string_markdown ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_draft_no_date ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpa3sgayke/.git/ [main (root-commit) 2e4ad7b] Initial Commit 2 files changed, 3 insertions(+) create mode 100644 foo/__init__.py create mode 100644 pyproject.toml [main e57621d] Second Commit 2 files changed, 2 insertions(+) create mode 100644 foo/newsfragments/123.feature create mode 100644 foo/newsfragments/124.feature.rst [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:394: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:396: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_in_different_dir_config_option ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:133: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_in_different_dir_dir_option ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:108: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_in_different_dir_with_nondefault_newsfragments_directory ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:171: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:173: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_keep_fragments ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpb831a2kk/.git/ [main (root-commit) 2e4ad7b] Initial Commit 2 files changed, 3 insertions(+) create mode 100644 foo/__init__.py create mode 100644 pyproject.toml [main e57621d] Second Commit 2 files changed, 2 insertions(+) create mode 100644 foo/newsfragments/123.feature create mode 100644 foo/newsfragments/124.feature.rst [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:435: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:437: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_needs_config ... [OK] test_needs_version ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified test_no_confirmation ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpxxdx6v5l/.git/ [main (root-commit) 2e4ad7b] Initial Commit 2 files changed, 3 insertions(+) create mode 100644 foo/__init__.py create mode 100644 pyproject.toml [main e57621d] Second Commit 2 files changed, 2 insertions(+) create mode 100644 foo/newsfragments/123.feature create mode 100644 foo/newsfragments/124.feature.rst [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:411: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:413: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_no_newsfragment_directory ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_no_newsfragments ... fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_no_newsfragments_draft ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_no_package_changelog ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:678: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_project_name_in_config ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:635: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_projectless_changelog ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:534: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:537: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_release_notes_in_separate_files ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:725: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_section_and_type_sorting ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:243: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:283: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:290: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_singlefile_errors_and_explains_cleanly ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified test_start_string ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:1108: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:1110: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified test_subcommand ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:26: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:32: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:36: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:39: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:41: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:43: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:45: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:47: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:49: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:52: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:55: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_title_format_custom ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:987: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:990: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_title_format_false ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:1044: EncodingWarning: 'encoding' argument not specified test_version_in_config ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:592: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_with_topline_and_template_and_draft ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:1268: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:1270: EncodingWarning: 'encoding' argument not specified test_yes_keep_error ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp_i9oas0r/.git/ [main (root-commit) 2e4ad7b] Initial Commit 2 files changed, 3 insertions(+) create mode 100644 foo/__init__.py create mode 100644 pyproject.toml [main e57621d] Second Commit 2 files changed, 2 insertions(+) create mode 100644 foo/newsfragments/123.feature create mode 100644 foo/newsfragments/124.feature.rst [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:463: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_build.py:465: EncodingWarning: 'encoding' argument not specified towncrier.test.test_builder TestParseNewsfragmentBasename test_counter ... [OK] test_counter_with_extension ... [OK] test_dots_in_ticket_name ... [OK] test_dots_in_ticket_name_and_counter ... [OK] test_dots_in_ticket_name_invalid_category ... [OK] test_ignores_extension ... [OK] test_invalid_category ... [OK] test_non_numeric_ticket ... [OK] test_non_numeric_ticket_with_extension ... [OK] test_orphan ... [OK] test_orphan_with_dotted_number ... [OK] test_orphan_with_number ... [OK] test_simple ... [OK] test_strip ... [OK] test_strip_with_counter ... [OK] towncrier.test.test_check TestChecker test_first_release ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpnev4uby1/.git/ [main (root-commit) 9870c31] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 3d8f04b] Prepare a release 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 NEWS.rst delete mode 100644 foo/newsfragments/123.feature [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified test_fragment_exists ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpn698gv1u/.git/ [main (root-commit) 2333c5c] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 12046f1] add a file 1 file changed, 1 insertion(+) create mode 100644 foo/somefile.py [otherbranch 2cbbaa7] add a newsfragment 1 file changed, 1 insertion(+) create mode 100644 foo/newsfragments/1234.feature [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_fragment_exists_hidden ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp36wdieij/.git/ [main (root-commit) 43c393e] Initial Commit 3 files changed, 5 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch e068ac9] add a file 1 file changed, 1 insertion(+) create mode 100644 foo/bar/somefile.py [otherbranch 0f88c47] add a newsfragment 1 file changed, 1 insertion(+) create mode 100644 deep/fragz/1234.feature [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_fragment_missing ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpnud2xsi0/.git/ [master (root-commit) 266067f] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 5944785] add a file 1 file changed, 1 insertion(+) create mode 100644 foo/somefile.py [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:156: EncodingWarning: 'encoding' argument not specified test_get_default_compare_branch_fallback ... [OK] test_get_default_compare_branch_main ... [OK] test_get_default_compare_branch_missing ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpdj7sscry/.git/ [main (root-commit) 266067f] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified test_git_fails ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp2tfaq2sh/.git/ [main (root-commit) 266067f] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified test_in_different_dir_with_nondefault_newsfragments_directory ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpd038di48/.git/ [main (root-commit) cea1752] Initial Commit 3 files changed, 3 insertions(+) create mode 100644 foo/changelog.d/123.feature create mode 100644 foo/foo/__init__.py create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 27d50f9] add a file 1 file changed, 1 insertion(+) create mode 100644 foo/foo/somefile.py [otherbranch fe6b15e] add a newsfragment 1 file changed, 1 insertion(+) create mode 100644 foo/changelog.d/124.feature [otherbranch 4cedf2a] add a file 1 file changed, 1 insertion(+) create mode 100644 bar/bar/somefile.py [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:308: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:316: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:318: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_no_changes_made ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp2yupr8ye/.git/ [master (root-commit) 9b062fb] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified test_no_changes_made_config_path ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpzzvep43d/.git/ [master (root-commit) 957e609] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 not-pyproject.toml Switched to a new branch 'otherbranch' [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified test_none_stdout_encoding_works ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmpyi2tf493/.git/ [master (root-commit) 9b062fb] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 32fd78b] add a newsfragment 1 file changed, 1 insertion(+) create mode 100644 foo/newsfragments/1234.feature [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:179: EncodingWarning: 'encoding' argument not specified test_release_branch ... Initialized empty Git repository in /private/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/tmp8l4mvxgm/.git/ [main (root-commit) 9b062fb] Initial Commit 3 files changed, 4 insertions(+) create mode 100644 foo/__init__.py create mode 100644 foo/newsfragments/123.feature create mode 100644 pyproject.toml Switched to a new branch 'otherbranch' [otherbranch 6918a48] First release 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 NEWS.rst delete mode 100644 foo/newsfragments/123.feature Switched to branch 'main' Updating 9b062fb..6918a48 Fast-forward (no commit created; -m option ignored) NEWS.rst | 7 +++++++ foo/newsfragments/123.feature | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 NEWS.rst delete mode 100644 foo/newsfragments/123.feature Switched to a new branch 'new-feature-branch' [new-feature-branch a559a8f] A feature in the second release. 1 file changed, 1 insertion(+) create mode 100644 foo/newsfragments/456.feature Switched to branch 'main' Updating 6918a48..a559a8f Fast-forward (no commit created; -m option ignored) foo/newsfragments/456.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 foo/newsfragments/456.feature Switched to a new branch 'next-release' [next-release 0e2b961] Second release 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 foo/newsfragments/456.feature [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified towncrier.test.test_create TestCli test_basics ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified test_content ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified test_create_orphan_fragment ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_create_orphan_fragment_custom_prefix ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_different_directory ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_directory_created ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified test_edit_abort ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified test_edit_with_comment ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified test_edit_without_comments ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified test_file_exists ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_file_exists_with_ext ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_in_different_dir_with_nondefault_newsfragments_directory ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:262: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:269: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified test_invalid_section ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified test_message_and_edit ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified towncrier.test.test_format FormatterTests test_basic ... [OK] test_issue_format ... [OK] test_line_wrapping ... [OK] test_line_wrapping_disabled ... [OK] test_markdown ... [OK] test_split ... [OK] towncrier.test.test_git TestGit test_empty_remove ... [OK] towncrier.test.test_packaging TestPackaging test_version_warning ... [OK] towncrier.test.test_project InvocationTests test_dash_m ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:188: EncodingWarning: 'encoding' argument not specified test_version ... [OK] VersionFetchingTests test_already_installed_import ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:139: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:145: EncodingWarning: 'encoding' argument not specified test_import_fails ... ERROR: tried to import projectname_without_any_files, but ran into this error: No module named 'projectname_without_any_files' [OK] test_incremental ... [OK] test_installed_package_found_when_no_source_present ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:165: EncodingWarning: 'encoding' argument not specified test_missing_version ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_missing_version_project_name ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_str ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:34: EncodingWarning: 'encoding' argument not specified test_tuple ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:47: EncodingWarning: 'encoding' argument not specified test_unknown_type ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_project.py:116: EncodingWarning: 'encoding' argument not specified towncrier.test.test_settings TomlSettingsTests test_base ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_custom_types_as_tables ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_custom_types_as_tables_array_deprecated ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_explicit_template_extension ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_incorrect_all_bullets ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_incorrect_single_file ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_load_no_config ... [OK] test_markdown ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_missing ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_missing_template ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_missing_template_in_towncrier ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_mistype_singlefile ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_template_extended ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified test_towncrier_toml_preferred ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified towncrier.test.test_write WritingTests test_append_at_top ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:79: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:103: EncodingWarning: 'encoding' argument not specified test_append_at_top_with_hint ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:210: EncodingWarning: 'encoding' argument not specified test_multiple_file_no_start_string ... [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:247: EncodingWarning: 'encoding' argument not specified test_single_file_false_overwrite_duplicate_version ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:338: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:319: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:361: EncodingWarning: 'encoding' argument not specified test_with_title_format_duplicate_version_raise ... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git [OK] /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:287: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:297: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/test/test_write.py:268: EncodingWarning: 'encoding' argument not specified /Users/jaraco/code/twisted/towncrier/.nox/tests-3-12/lib/python3.12/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified ------------------------------------------------------------------------------- Ran 111 tests in 4.448s PASSED (successes=111) nox > Session tests-3.12 was successful. nox > Running session coverage_report nox > Re-using existing virtual environment at .nox/coverage_report. nox > python -m pip install 'coverage[toml]' nox > coverage combine Combined data file .coverage.Kokuyoseki.lan.12272.XbaIYYZx nox > coverage report Name Stmts Miss Branch BrPart Cover Missing ----------------------------------------------------------------------------- src/towncrier/_settings/load.py 117 2 52 2 98% 22, 28 src/towncrier/build.py 116 1 67 1 99% 29 ----------------------------------------------------------------------------- TOTAL 654 3 295 3 99% 11 files skipped due to complete coverage. nox > Session coverage_report was successful. nox > Ran multiple sessions: nox > * tests-3.12: success nox > * coverage_report: success ```
jaraco commented 7 months ago

Here's a distilled list of the violations:

 towncrier tests/encoding-warnings @ nox -e tests-3.12 | grep EncodingWarning | sort -V | uniq | sed -e 's|.*/site-packages/||g'
nox > Running session tests-3.12
nox > Re-using existing virtual environment at .nox/tests-3-12.
nox > python -m pip install Twisted 'coverage[toml]'
nox > python -m pip install .
nox > coverage run --module twisted.trial towncrier
nox > Session tests-3.12 was successful.
nox > Running session coverage_report
nox > Re-using existing virtual environment at .nox/coverage_report.
nox > python -m pip install 'coverage[toml]'
nox > coverage combine
nox > coverage report
nox > Session coverage_report was successful.
nox > Ran multiple sessions:
nox > * tests-3.12: success
nox > * coverage_report: success
towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified
towncrier/create.py:141: EncodingWarning: 'encoding' argument not specified
towncrier/test/helpers.py:21: EncodingWarning: 'encoding' argument not specified
towncrier/test/helpers.py:32: EncodingWarning: 'encoding' argument not specified
towncrier/test/helpers.py:68: EncodingWarning: 'encoding' argument not specified
towncrier/test/helpers.py:70: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:26: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:29: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:32: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:36: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:39: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:41: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:43: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:45: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:47: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:49: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:52: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:55: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:108: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:133: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:171: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:173: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:222: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:224: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:243: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:283: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:290: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:394: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:396: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:411: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:413: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:435: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:437: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:463: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:465: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:484: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:486: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:534: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:537: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:592: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:635: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:678: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:725: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:822: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:844: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:911: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:913: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:915: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:917: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:987: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:990: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:1044: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:1108: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:1110: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:1268: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_build.py:1270: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:29: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:156: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:179: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:308: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:316: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_check.py:318: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_create.py:38: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_create.py:262: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_create.py:269: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:34: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:47: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:116: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:139: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:145: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:165: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_project.py:188: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:79: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:103: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:210: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:247: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:268: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:287: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:297: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:319: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:338: EncodingWarning: 'encoding' argument not specified
towncrier/test/test_write.py:361: EncodingWarning: 'encoding' argument not specified
jaraco commented 7 months ago

82 checks is a little steep to fix by hand. I looked and ruff doesn't (yet) support fixing the warnings. How do you feel about enabling the warnings but not fixing all of them yet?

adiroiban commented 5 months ago

@jaraco with this PR, I can see that the import warning are gone.

Please consider update the documentation to mention that UTF-8 is mandatory and I think that after that we can merge this.

Thanks again and sorry for the delay

adiroiban commented 5 months ago

Thanks for the changes. I have merged this. For now, we should go with UTF-8 as we don't have the "energy" to consider other encoding types.

If someone wants other encoding type, they can send a report and a PR.