duty 1.7.0__tar.gz → 1.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. {duty-1.7.0 → duty-1.7.2}/CHANGELOG.md +16 -0
  2. {duty-1.7.0 → duty-1.7.2}/PKG-INFO +1 -1
  3. {duty-1.7.0 → duty-1.7.2}/pyproject.toml +1 -1
  4. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_ty.py +7 -4
  5. {duty-1.7.0 → duty-1.7.2}/CODE_OF_CONDUCT.md +0 -0
  6. {duty-1.7.0 → duty-1.7.2}/CONTRIBUTING.md +0 -0
  7. {duty-1.7.0 → duty-1.7.2}/LICENSE +0 -0
  8. {duty-1.7.0 → duty-1.7.2}/README.md +0 -0
  9. {duty-1.7.0 → duty-1.7.2}/config/coverage.ini +0 -0
  10. {duty-1.7.0 → duty-1.7.2}/config/git-changelog.toml +0 -0
  11. {duty-1.7.0 → duty-1.7.2}/config/mypy.ini +0 -0
  12. {duty-1.7.0 → duty-1.7.2}/config/pytest.ini +0 -0
  13. {duty-1.7.0 → duty-1.7.2}/config/ruff.toml +0 -0
  14. {duty-1.7.0 → duty-1.7.2}/config/vscode/launch.json +0 -0
  15. {duty-1.7.0 → duty-1.7.2}/config/vscode/settings.json +0 -0
  16. {duty-1.7.0 → duty-1.7.2}/config/vscode/tasks.json +0 -0
  17. {duty-1.7.0 → duty-1.7.2}/docs/.overrides/main.html +0 -0
  18. {duty-1.7.0 → duty-1.7.2}/docs/.overrides/partials/comments.html +0 -0
  19. {duty-1.7.0 → duty-1.7.2}/docs/.overrides/partials/path-item.html +0 -0
  20. {duty-1.7.0 → duty-1.7.2}/docs/changelog.md +0 -0
  21. {duty-1.7.0 → duty-1.7.2}/docs/code_of_conduct.md +0 -0
  22. {duty-1.7.0 → duty-1.7.2}/docs/contributing.md +0 -0
  23. {duty-1.7.0 → duty-1.7.2}/docs/credits.md +0 -0
  24. {duty-1.7.0 → duty-1.7.2}/docs/css/material.css +0 -0
  25. {duty-1.7.0 → duty-1.7.2}/docs/css/mkdocstrings.css +0 -0
  26. {duty-1.7.0 → duty-1.7.2}/docs/demo.svg +0 -0
  27. {duty-1.7.0 → duty-1.7.2}/docs/gen_credits.py +0 -0
  28. {duty-1.7.0 → duty-1.7.2}/docs/index.md +0 -0
  29. {duty-1.7.0 → duty-1.7.2}/docs/js/feedback.js +0 -0
  30. {duty-1.7.0 → duty-1.7.2}/docs/license.md +0 -0
  31. {duty-1.7.0 → duty-1.7.2}/docs/reference/api.md +0 -0
  32. {duty-1.7.0 → duty-1.7.2}/docs/usage.md +0 -0
  33. {duty-1.7.0 → duty-1.7.2}/duties.py +0 -0
  34. {duty-1.7.0 → duty-1.7.2}/mkdocs.yml +0 -0
  35. {duty-1.7.0 → duty-1.7.2}/scripts/gen_credits.py +0 -0
  36. {duty-1.7.0 → duty-1.7.2}/scripts/get_version.py +0 -0
  37. {duty-1.7.0 → duty-1.7.2}/scripts/make +0 -0
  38. {duty-1.7.0 → duty-1.7.2}/scripts/make.py +0 -0
  39. {duty-1.7.0 → duty-1.7.2}/src/duty/__init__.py +0 -0
  40. {duty-1.7.0 → duty-1.7.2}/src/duty/__main__.py +0 -0
  41. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/__init__.py +0 -0
  42. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/__init__.py +0 -0
  43. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/_io.py +0 -0
  44. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/autoflake.py +0 -0
  45. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/black.py +0 -0
  46. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/blacken_docs.py +0 -0
  47. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/build.py +0 -0
  48. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/coverage.py +0 -0
  49. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/flake8.py +0 -0
  50. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/git_changelog.py +0 -0
  51. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/griffe.py +0 -0
  52. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/interrogate.py +0 -0
  53. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/isort.py +0 -0
  54. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/mkdocs.py +0 -0
  55. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/mypy.py +0 -0
  56. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/pytest.py +0 -0
  57. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/ruff.py +0 -0
  58. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/safety.py +0 -0
  59. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/ssort.py +0 -0
  60. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/callables/twine.py +0 -0
  61. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/cli.py +0 -0
  62. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/collection.py +0 -0
  63. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/context.py +0 -0
  64. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/debug.py +0 -0
  65. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/decorator.py +0 -0
  66. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/exceptions.py +0 -0
  67. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/__init__.py +0 -0
  68. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_autoflake.py +0 -0
  69. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_base.py +0 -0
  70. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_black.py +0 -0
  71. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_blacken_docs.py +0 -0
  72. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_build.py +0 -0
  73. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_coverage.py +0 -0
  74. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_flake8.py +0 -0
  75. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_git_changelog.py +0 -0
  76. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_griffe.py +0 -0
  77. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_interrogate.py +0 -0
  78. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_isort.py +0 -0
  79. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_mkdocs.py +0 -0
  80. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_mypy.py +0 -0
  81. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_pytest.py +0 -0
  82. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_ruff.py +0 -0
  83. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_safety.py +0 -0
  84. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_ssort.py +0 -0
  85. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_twine.py +0 -0
  86. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/tools/_yore.py +0 -0
  87. {duty-1.7.0 → duty-1.7.2}/src/duty/_internal/validation.py +0 -0
  88. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/__init__.py +0 -0
  89. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/autoflake.py +0 -0
  90. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/black.py +0 -0
  91. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/blacken_docs.py +0 -0
  92. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/build.py +0 -0
  93. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/coverage.py +0 -0
  94. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/flake8.py +0 -0
  95. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/git_changelog.py +0 -0
  96. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/griffe.py +0 -0
  97. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/interrogate.py +0 -0
  98. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/isort.py +0 -0
  99. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/mkdocs.py +0 -0
  100. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/mypy.py +0 -0
  101. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/pytest.py +0 -0
  102. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/ruff.py +0 -0
  103. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/safety.py +0 -0
  104. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/ssort.py +0 -0
  105. {duty-1.7.0 → duty-1.7.2}/src/duty/callables/twine.py +0 -0
  106. {duty-1.7.0 → duty-1.7.2}/src/duty/cli.py +0 -0
  107. {duty-1.7.0 → duty-1.7.2}/src/duty/collection.py +0 -0
  108. {duty-1.7.0 → duty-1.7.2}/src/duty/completions.bash +0 -0
  109. {duty-1.7.0 → duty-1.7.2}/src/duty/context.py +0 -0
  110. {duty-1.7.0 → duty-1.7.2}/src/duty/decorator.py +0 -0
  111. {duty-1.7.0 → duty-1.7.2}/src/duty/exceptions.py +0 -0
  112. {duty-1.7.0 → duty-1.7.2}/src/duty/py.typed +0 -0
  113. {duty-1.7.0 → duty-1.7.2}/src/duty/tools.py +0 -0
  114. {duty-1.7.0 → duty-1.7.2}/src/duty/validation.py +0 -0
  115. {duty-1.7.0 → duty-1.7.2}/tests/__init__.py +0 -0
  116. {duty-1.7.0 → duty-1.7.2}/tests/conftest.py +0 -0
  117. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/arguments.py +0 -0
  118. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/basic.py +0 -0
  119. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/booleans.py +0 -0
  120. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/code.py +0 -0
  121. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/list.py +0 -0
  122. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/multiple.py +0 -0
  123. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/precedence.py +0 -0
  124. {duty-1.7.0 → duty-1.7.2}/tests/fixtures/validation.py +0 -0
  125. {duty-1.7.0 → duty-1.7.2}/tests/test_api.py +0 -0
  126. {duty-1.7.0 → duty-1.7.2}/tests/test_cli.py +0 -0
  127. {duty-1.7.0 → duty-1.7.2}/tests/test_collection.py +0 -0
  128. {duty-1.7.0 → duty-1.7.2}/tests/test_context.py +0 -0
  129. {duty-1.7.0 → duty-1.7.2}/tests/test_decorator.py +0 -0
  130. {duty-1.7.0 → duty-1.7.2}/tests/test_running.py +0 -0
  131. {duty-1.7.0 → duty-1.7.2}/tests/test_validation.py +0 -0
@@ -5,6 +5,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  <!-- insertion marker -->
8
+ ## [1.7.2](https://github.com/pawamoy/duty/releases/tag/1.7.2) - 2026-01-30
9
+
10
+ <small>[Compare with 1.7.1](https://github.com/pawamoy/duty/compare/1.7.1...1.7.2)</small>
11
+
12
+ ### Code Refactoring
13
+
14
+ - Fix typing for color parameter of ty.check tool ([a33eb2f](https://github.com/pawamoy/duty/commit/a33eb2ff908eadc969f37f5edca90d10b8369679) by Timothée Mazzucotelli).
15
+
16
+ ## [1.7.1](https://github.com/pawamoy/duty/releases/tag/1.7.1) - 2026-01-30
17
+
18
+ <small>[Compare with 1.7.0](https://github.com/pawamoy/duty/compare/1.7.0...1.7.1)</small>
19
+
20
+ ### Bug Fixes
21
+
22
+ - Fix handling of ty.check color parameter ([eca6356](https://github.com/pawamoy/duty/commit/eca63560eb3f95551f73372ed9d9d9360d5094dd) by Timothée Mazzucotelli).
23
+
8
24
  ## [1.7.0](https://github.com/pawamoy/duty/releases/tag/1.7.0) - 2026-01-30
9
25
 
10
26
  <small>[Compare with 1.6.3](https://github.com/pawamoy/duty/compare/1.6.3...1.7.0)</small>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: duty
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary: A simple task runner.
5
5
  Keywords: task-runner,task,runner,cross-platform
6
6
  Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
@@ -43,7 +43,7 @@ dependencies = [
43
43
  "failprint>=1.0.5",
44
44
  "typing-extensions>=4.0; python_version < '3.11'",
45
45
  ]
46
- version = "1.7.0"
46
+ version = "1.7.2"
47
47
 
48
48
  [project.urls]
49
49
  Homepage = "https://pawamoy.github.io/duty"
@@ -54,7 +54,7 @@ class ty(Tool): # noqa: N801
54
54
  force_exclude: bool | None = None,
55
55
  exclude: list[str] | None = None,
56
56
  no_progress: bool | None = None,
57
- color: str | None = None,
57
+ color: str | bool | None = None,
58
58
  ) -> ty:
59
59
  """Run ty on the given files or directories.
60
60
 
@@ -82,7 +82,7 @@ class ty(Tool): # noqa: N801
82
82
  force_exclude: Enforce exclusions, even for paths passed to ty directly on the command-line.
83
83
  exclude: Glob patterns for files to exclude from type checking.
84
84
  no_progress: Hide all progress outputs.
85
- color: Control when colored output is used (possible values: auto, always, never).
85
+ color: Control when colored output is used (possible values: auto, always/true, never/false).
86
86
  """
87
87
  cli_args = ["check", *paths]
88
88
 
@@ -171,9 +171,12 @@ class ty(Tool): # noqa: N801
171
171
  if no_progress:
172
172
  cli_args.append("--no-progress")
173
173
 
174
- if color:
174
+ if color is True:
175
175
  cli_args.append("--color")
176
- cli_args.append(color)
176
+ cli_args.append("always")
177
+ elif color is False:
178
+ cli_args.append("--color")
179
+ cli_args.append("never")
177
180
 
178
181
  return cls(cli_args)
179
182
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes