Files
GildedRose-Refactoring-Kata/python/pyproject.toml
T
Simon Fothergill 39ce08d5ea Set up python project:
- I don't use approval testing, as I like to feel closer to the code whilst testing and for tests to be self contained and not rely on external data that has to be kept up to date and bloats the directory structure.
  - I like to use pdm to manage venvs, dependancies and scripts with one modern tool.
  - I bumped the version number for my version.
  - This is an exercise, no reason to have multiple dependency lists.
  - I find pytest and the plugin easier to use and a threshold helpful.  Unittest adds unnecessary boilerplate code.
  - conftest not needed atm
  - Module level comments are helpful.
  - Use linting, type checking and formatting tools - good practice.
  - Update readme given alterations.
  - Update gitignore to new python environment

N.B.  linting errors left until tests in place.
2026-09-15 20:51:56 +01:00

34 lines
743 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
name = "gildedrose-refactoring-kata"
version = "0.1.1"
description = "Gilded Rose Refactoring Kata – Blend360 Assignment"
requires-python = ">=3.10"
dependencies = [
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"black>=26.5.1",
"pylint>=4.0.8",
"mypy>=2.3.1",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --cov=gilded_rose --cov-report=term-missing"
[tool.coverage.run]
branch = true
source = ["gilded_rose"]
[tool.coverage.report]
show_missing = true
skip_empty = true
fail_under = 100
[tool.pdm.scripts]
test = "pytest"
format = "black ."
lint = "pylint gilded_rose.py tests"
typecheck = "mypy gilded_rose.py tests"
check_all = {composite = ["black --check .", "lint", "typecheck", "test"]}