Skip to content

Commit 7d1a928

Browse files
committed
Applied changes from the code review by @ahms5
1 parent 5303f7a commit 7d1a928

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

copier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ruff_ignore:
105105
type: str
106106
help: |
107107
Enter a comma-separated list of files, directories, or file patterns that Ruff should ignore.
108-
default: ""
108+
default: ".git,docs"
109109

110110
valid_python_versions:
111111
when: false

template/pyproject.toml.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ find = {} # Scan the project directory with the default parameters
7676

7777
[tool.ruff]
7878
exclude = [
79-
".git",
80-
"docs",
8179
{%- for key in ruff_ignore.split(',') %}
8280
"{{ key.strip() }}",
8381
{%- endfor %}

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def copier_project_defaults():
1212
"copyright_statement": "2025, The pyfar developers",
1313
"project_short_description": "my_project_short_description",
1414
"python_versions": "['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']",
15-
"ruff_ignore": "examples/,",
1615
}
1716

1817
@pytest.fixture(scope="session")

tests/test_copier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_content_contributing(default_project, desired):
101101
'Programming Language :: Python :: 3.13',
102102
'Programming Language :: Python :: 3.14',
103103
'Tracker = "https://github.com/pyfar/my_project/issues"',
104-
'"docs",\n "examples/",',
104+
'".git",\n "docs",',
105105
])
106106
def test_content_pyproject(default_project, desired):
107107
content = default_project.project_dir.joinpath(

0 commit comments

Comments
 (0)