diff --git a/.copier-answers.yml b/.copier-answers.yml index 216321a..a862d49 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: '0.2' +_commit: '0.5' _src_path: https://github.com/m-birke/python-project-template.git package_name: gengine project_description: Engine for piping generators diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20e98c6..b0d980f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,7 @@ repos: rev: v1.17.0 hooks: - id: mypy + args: [--install-types] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: diff --git a/README.md b/README.md index 5cb0cc8..7184df6 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,11 @@ # gengine -![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/m-birke/gengine/static-code-check.yml) -[![PyPI - Version](https://img.shields.io/pypi/v/gengine.svg)](https://pypi.org/project/gengine) -[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gengine.svg)](https://pypi.org/project/gengine) -![GitHub License](https://img.shields.io/github/license/m-birke/gengine) -![PyPI - Status](https://img.shields.io/pypi/status/gengine) -![PyPI - Format](https://img.shields.io/pypi/format/gengine) -![PyPI - Types](https://img.shields.io/pypi/types/gengine) -![PyPI - Implementation](https://img.shields.io/pypi/implementation/gengine) -[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) -[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) -[![Linting: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +| | | +| --- | --- | +| Version | [![PyPI - Version](https://img.shields.io/pypi/v/gengine.svg)](https://pypi.org/project/gengine) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gengine.svg)](https://pypi.org/project/gengine) | +| Project | ![GitHub License](https://img.shields.io/github/license/m-birke/gengine) ![PyPI - Status](https://img.shields.io/pypi/status/gengine) ![PyPI - Format](https://img.shields.io/pypi/format/gengine) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/gengine) | +| CI | ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/m-birke/gengine/static-code-check.yml) | +| Code | ![PyPI - Types](https://img.shields.io/pypi/types/gengine) [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) [![Linting: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ----- diff --git a/pyproject.toml b/pyproject.toml index 7585391..259edd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,8 @@ check = "mypy --install-types --non-interactive {args:src/gengine tests}" [tool.ruff] target-version = "py38" line-length = 120 + +[tool.ruff.lint] select = [ "A", "ARG", @@ -127,13 +129,13 @@ unfixable = [ "F401", ] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["gengine"] -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] # Tests can use magic values, assertions, and relative imports "tests/**/*" = ["PLR2004", "S101", "TID252"]