~loges/haitch

f0df5cd9b209c2902b6a7c271ae84168b77443ad — Logan Connolly a month ago 92b0e8e
build: move lint check to default env
2 files changed, 6 insertions(+), 11 deletions(-)

M .build.yml
M pyproject.toml
M .build.yml => .build.yml +1 -1
@@ 6,7 6,7 @@ sources:
tasks:
  - lint: |
      cd haitch
      pipx run hatch run types:check
      pipx run hatch run check
  - test: |
      cd haitch
      pipx run hatch run cov

M pyproject.toml => pyproject.toml +5 -10
@@ 47,7 47,9 @@ packages = ["src/haitch"]
[tool.hatch.envs.default]
dependencies = [
  "coverage[toml]>=6.5",
  "mypy>=1.0.0",
  "pytest",
  "ruff",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"


@@ 60,21 62,14 @@ cov = [
  "test-cov",
  "cov-report",
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.types]
dependencies = [
  "mypy>=1.0.0",
  "ruff",
]
[tool.hatch.envs.types.scripts]
check = [
  "ruff check {args:src/haitch}",
  "mypy --install-types --non-interactive {args:src/haitch}"
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.mypy]
strict = true