From 12c7feeae6beb235f24cc22f6ea906eeaf087b62 Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Thu, 8 Oct 2026 15:55:13 +0200 Subject: [PATCH 1/2] remove setuptools-scm dependency and clean up imports --- setup.py | 1 - template/pyproject.toml.jinja | 2 +- tests/test_project.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 64c3869b..b83abc33 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import os from setuptools import setup diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index c2a1e0ee..952558a9 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -4,7 +4,7 @@ # - https://www.python.org/dev/peps/pep-0621/ [build-system] -requires = ["setuptools>=77.0.3", "setuptools-scm", "wheel"] +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] diff --git a/tests/test_project.py b/tests/test_project.py index 7caa7e1d..c70e7174 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -1,10 +1,8 @@ import os import subprocess -import sys from sys import platform from typing import Sequence -from copier import run_copy import pytest IS_WINDOWS = platform.startswith('win') From 37b7e693dcbb37a6af6451eca98f8ac97efacb8e Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Thu, 8 Oct 2026 15:55:41 +0200 Subject: [PATCH 2/2] disable missing copyright notice check (until explicit discussion) --- template/pyproject.toml.jinja | 1 + 1 file changed, 1 insertion(+) diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 952558a9..2b5d3c09 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -132,6 +132,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # Enable Pyflakes `E` and `F` codes by default. select = ["ALL"] ignore = [ + "CPY001", # Missing copyright notice "ANN204", # Missing return type annotation for special (dunder) method "FBT", # Using boolean function arguments "TD", # TODOs