diff --git a/.github/workflows/ci-pip-tools.yml b/.github/workflows/ci-pip-tools.yml index 6a6d114..d5d6426 100644 --- a/.github/workflows/ci-pip-tools.yml +++ b/.github/workflows/ci-pip-tools.yml @@ -31,7 +31,7 @@ jobs: - name: Install project dependencies working-directory: my_project - run: pip install -r dev-requirements.txt + run: pip install .[dev] - name: Run tests working-directory: my_project diff --git a/{{ cookiecutter.project_slug }}/pyproject.toml b/{{ cookiecutter.project_slug }}/pyproject.toml index 427f01f..39e60ca 100644 --- a/{{ cookiecutter.project_slug }}/pyproject.toml +++ b/{{ cookiecutter.project_slug }}/pyproject.toml @@ -17,6 +17,7 @@ pytest-cov = "^5.0.0" pytest-mypy = "^0.10.0" pytest-mock = "^3.7.0" pre-commit = "^3.0.4" +ruff = "^0.4.4" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}/__init__.py b/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}/__init__.py index a5a85d1..af3e610 100644 --- a/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}/__init__.py +++ b/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}/__init__.py @@ -1,3 +1,5 @@ """The main module for {{ cookiecutter.project_name }}.""" -__version__ = "0.1.0" +from importlib.metadata import version + +__version__ = version(__name__)