Skip to content

Commit

Permalink
Correct uses of project_name in pyproject.toml (#309)
Browse files Browse the repository at this point in the history
1. Fix `[tool.coverage]` so coverage data is collected correctly. I
haven't come up with a way to test this, other than this is the fix I
needed at https://github.com/hipCTProject/hipct-reg
2. While I was at it, I noticed a second place where custom logic could
just be repalced with project_name
  • Loading branch information
dstansby authored Feb 19, 2024
1 parent 9a37774 commit ee81654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ urls.homepage = "https://github.com/{{cookiecutter.github_username}}/{{cookiecut
[tool.coverage]
report = {skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, source = [
"{{cookiecutter.project_slug}}",
"{{cookiecutter.project_name}}",
]}
paths.source = [
"src",
Expand Down Expand Up @@ -88,7 +88,7 @@ lint.select = [
"ALL",
]
lint.isort.known-first-party = [
"{{cookiecutter.project_slug | replace('-', '_')}}",
"{{cookiecutter.project_name}}",
]
lint.mccabe.max-complexity = 18
lint.pep8-naming.classmethod-decorators = [
Expand Down

0 comments on commit ee81654

Please sign in to comment.