diff --git a/{{ cookiecutter.project_name }}/.github/workflows/test.yml b/{{ cookiecutter.project_name }}/.github/workflows/test.yml index bd16ac3..f81e4ca 100644 --- a/{{ cookiecutter.project_name }}/.github/workflows/test.yml +++ b/{{ cookiecutter.project_name }}/.github/workflows/test.yml @@ -5,6 +5,7 @@ on: push: branches: - master + - main pull_request: jobs: diff --git a/{{ cookiecutter.project_name }}/pyproject.toml b/{{ cookiecutter.project_name }}/pyproject.toml index 31ecddf..d113f2f 100644 --- a/{{ cookiecutter.project_name }}/pyproject.toml +++ b/{{ cookiecutter.project_name }}/pyproject.toml @@ -18,12 +18,12 @@ keywords = [] requires-python = ">=3.12" dependencies = [] +[project.optional-dependencies] +test = ["pytest>=8.4.2", "pytest-cov>=6.3.0", "pytest-sugar>=1.1.1"] + [project.urls] homepage = "https://github.com/nens/{{ cookiecutter.project_name }}" -[tool.pytest.ini_options] -addopts = "--cov --cov-fail-under=80" - [tool.zest-releaser] release = false @@ -38,6 +38,10 @@ select = ["E4", "E7", "E9", "F", "I", "UP", "C901"] [tool.ruff.lint.isort] known-first-party = ["{{ cookiecutter.package_name }}"] + +[tool.ruff.lint.per-file-ignores] +"__init__.py" = ["F401", "F403"] + [tool.pyright] # Pyright/pylance/vscode configuration. # Note: if you want a different setup, you can overwrite this with a @@ -45,6 +49,3 @@ known-first-party = ["{{ cookiecutter.package_name }}"] include = "src" venvPath = "." venv = ".venv" - -[dependency-groups] -dev = ["pytest>=8.4.2", "pytest-cov>=6.3.0", "pytest-sugar>=1.1.1"]