Skip to content
Open
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
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ max-line-length = 99
extend-ignore =
# Conflict between flake8 & black about whitespace in slices.
E203
# Conflict between flake8 & black about empty lines after imports.
E302
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.3.0
hooks:
- id: black

Expand All @@ -15,7 +15,7 @@ repos:
args: [--py39-plus]

- repo: https://github.com/PyCQA/isort
rev: 7.0.0
rev: 8.0.1
hooks:
- id: isort
additional_dependencies: [toml]
Expand Down
1 change: 0 additions & 1 deletion admin/check_tag_version_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from importlib import metadata


TAG_PREFIX = "refs/tags/"

if len(sys.argv) < 2:
Expand Down
2 changes: 0 additions & 2 deletions bin/towncrier
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
import os.path
import sys


srcdir = os.path.join(os.path.dirname(__file__), "..", "src")
sys.path.insert(0, srcdir)

import towncrier


towncrier._main()
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from datetime import date
from importlib.metadata import version


towncrier_version = version("towncrier")


Expand Down
1 change: 0 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import nox


nox.options.sessions = ["pre_commit", "docs", "typecheck", "tests"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,17 @@ exclude = '''


[tool.isort]
profile = "attrs"
atomic = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88

lines_after_imports = -1
lines_between_types = 1
multi_line_output = 3
use_parentheses = true

[tool.ruff.isort]
# Match isort's "attrs" profile
lines-after-imports = 2
lines-after-imports = 1
lines-between-types = 1


Expand Down
1 change: 0 additions & 1 deletion src/towncrier/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

from towncrier._shell import cli


cli()
1 change: 0 additions & 1 deletion src/towncrier/_settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from towncrier._settings import load


load_config = load.load_config
ConfigError = load.ConfigError
load_config_from_options = load.load_config_from_options
Expand Down
1 change: 0 additions & 1 deletion src/towncrier/_settings/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from .._settings import fragment_types as ft


if sys.version_info < (3, 10):
import importlib_resources as resources
else:
Expand Down
1 change: 0 additions & 1 deletion src/towncrier/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from pathlib import Path
from typing import Any


if sys.version_info < (3, 10):
# Compatibility shim for newline parameter to write_text, added in 3.10
def _newline_write_text(path: Path, content: str, **kwargs: Any) -> None:
Expand Down
1 change: 0 additions & 1 deletion src/towncrier/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from ._settings import ConfigError, config_option_help, load_config_from_options
from ._writer import append_to_newsfile


if sys.version_info < (3, 10):
import importlib_resources as resources
else:
Expand Down
2 changes: 1 addition & 1 deletion src/towncrier/click_default_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def bar():
bar

"""

import warnings

import click


__all__ = ["DefaultGroup"]
__version__ = "1.2.2"

Expand Down
1 change: 0 additions & 1 deletion src/towncrier/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ._builder import FragmentsPath
from ._settings import config_option_help, load_config_from_options


DEFAULT_CONTENT = "Add your info here"


Expand Down
Loading
Loading