duty 1.4.1__tar.gz → 1.4.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 (99) hide show
  1. {duty-1.4.1 → duty-1.4.2}/CHANGELOG.md +8 -0
  2. {duty-1.4.1 → duty-1.4.2}/PKG-INFO +1 -1
  3. {duty-1.4.1 → duty-1.4.2}/duties.py +1 -1
  4. {duty-1.4.1 → duty-1.4.2}/pyproject.toml +1 -1
  5. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/blacken_docs.py +4 -0
  6. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/ruff.py +30 -30
  7. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_blacken_docs.py +5 -0
  8. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_ruff.py +31 -31
  9. {duty-1.4.1 → duty-1.4.2}/tests/test_collection.py +1 -1
  10. {duty-1.4.1 → duty-1.4.2}/tests/test_validation.py +2 -2
  11. {duty-1.4.1 → duty-1.4.2}/CODE_OF_CONDUCT.md +0 -0
  12. {duty-1.4.1 → duty-1.4.2}/CONTRIBUTING.md +0 -0
  13. {duty-1.4.1 → duty-1.4.2}/LICENSE +0 -0
  14. {duty-1.4.1 → duty-1.4.2}/README.md +0 -0
  15. {duty-1.4.1 → duty-1.4.2}/config/coverage.ini +0 -0
  16. {duty-1.4.1 → duty-1.4.2}/config/git-changelog.toml +0 -0
  17. {duty-1.4.1 → duty-1.4.2}/config/mypy.ini +0 -0
  18. {duty-1.4.1 → duty-1.4.2}/config/pytest.ini +0 -0
  19. {duty-1.4.1 → duty-1.4.2}/config/ruff.toml +0 -0
  20. {duty-1.4.1 → duty-1.4.2}/config/vscode/launch.json +0 -0
  21. {duty-1.4.1 → duty-1.4.2}/config/vscode/settings.json +0 -0
  22. {duty-1.4.1 → duty-1.4.2}/config/vscode/tasks.json +0 -0
  23. {duty-1.4.1 → duty-1.4.2}/devdeps.txt +0 -0
  24. {duty-1.4.1 → duty-1.4.2}/docs/.overrides/main.html +0 -0
  25. {duty-1.4.1 → duty-1.4.2}/docs/.overrides/partials/comments.html +0 -0
  26. {duty-1.4.1 → duty-1.4.2}/docs/changelog.md +0 -0
  27. {duty-1.4.1 → duty-1.4.2}/docs/code_of_conduct.md +0 -0
  28. {duty-1.4.1 → duty-1.4.2}/docs/contributing.md +0 -0
  29. {duty-1.4.1 → duty-1.4.2}/docs/credits.md +0 -0
  30. {duty-1.4.1 → duty-1.4.2}/docs/css/material.css +0 -0
  31. {duty-1.4.1 → duty-1.4.2}/docs/css/mkdocstrings.css +0 -0
  32. {duty-1.4.1 → duty-1.4.2}/docs/demo.svg +0 -0
  33. {duty-1.4.1 → duty-1.4.2}/docs/gen_credits.py +0 -0
  34. {duty-1.4.1 → duty-1.4.2}/docs/index.md +0 -0
  35. {duty-1.4.1 → duty-1.4.2}/docs/js/feedback.js +0 -0
  36. {duty-1.4.1 → duty-1.4.2}/docs/license.md +0 -0
  37. {duty-1.4.1 → duty-1.4.2}/docs/usage.md +0 -0
  38. {duty-1.4.1 → duty-1.4.2}/mkdocs.yml +0 -0
  39. {duty-1.4.1 → duty-1.4.2}/scripts/gen_credits.py +0 -0
  40. {duty-1.4.1 → duty-1.4.2}/scripts/gen_ref_nav.py +0 -0
  41. {duty-1.4.1 → duty-1.4.2}/scripts/make +0 -0
  42. {duty-1.4.1 → duty-1.4.2}/src/duty/__init__.py +0 -0
  43. {duty-1.4.1 → duty-1.4.2}/src/duty/__main__.py +0 -0
  44. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/__init__.py +0 -0
  45. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/_io.py +0 -0
  46. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/autoflake.py +0 -0
  47. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/black.py +0 -0
  48. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/build.py +0 -0
  49. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/coverage.py +0 -0
  50. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/flake8.py +0 -0
  51. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/git_changelog.py +0 -0
  52. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/griffe.py +0 -0
  53. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/interrogate.py +0 -0
  54. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/isort.py +0 -0
  55. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/mkdocs.py +0 -0
  56. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/mypy.py +0 -0
  57. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/pytest.py +0 -0
  58. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/safety.py +0 -0
  59. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/ssort.py +0 -0
  60. {duty-1.4.1 → duty-1.4.2}/src/duty/callables/twine.py +0 -0
  61. {duty-1.4.1 → duty-1.4.2}/src/duty/cli.py +0 -0
  62. {duty-1.4.1 → duty-1.4.2}/src/duty/collection.py +0 -0
  63. {duty-1.4.1 → duty-1.4.2}/src/duty/context.py +0 -0
  64. {duty-1.4.1 → duty-1.4.2}/src/duty/debug.py +0 -0
  65. {duty-1.4.1 → duty-1.4.2}/src/duty/decorator.py +0 -0
  66. {duty-1.4.1 → duty-1.4.2}/src/duty/exceptions.py +0 -0
  67. {duty-1.4.1 → duty-1.4.2}/src/duty/py.typed +0 -0
  68. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/__init__.py +0 -0
  69. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_autoflake.py +0 -0
  70. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_base.py +0 -0
  71. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_black.py +0 -0
  72. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_build.py +0 -0
  73. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_coverage.py +0 -0
  74. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_flake8.py +0 -0
  75. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_git_changelog.py +0 -0
  76. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_griffe.py +0 -0
  77. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_interrogate.py +0 -0
  78. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_isort.py +0 -0
  79. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_mkdocs.py +0 -0
  80. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_mypy.py +0 -0
  81. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_pytest.py +0 -0
  82. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_safety.py +0 -0
  83. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_ssort.py +0 -0
  84. {duty-1.4.1 → duty-1.4.2}/src/duty/tools/_twine.py +0 -0
  85. {duty-1.4.1 → duty-1.4.2}/src/duty/validation.py +0 -0
  86. {duty-1.4.1 → duty-1.4.2}/tests/__init__.py +0 -0
  87. {duty-1.4.1 → duty-1.4.2}/tests/conftest.py +0 -0
  88. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/arguments.py +0 -0
  89. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/basic.py +0 -0
  90. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/booleans.py +0 -0
  91. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/code.py +0 -0
  92. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/list.py +0 -0
  93. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/multiple.py +0 -0
  94. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/precedence.py +0 -0
  95. {duty-1.4.1 → duty-1.4.2}/tests/fixtures/validation.py +0 -0
  96. {duty-1.4.1 → duty-1.4.2}/tests/test_cli.py +0 -0
  97. {duty-1.4.1 → duty-1.4.2}/tests/test_context.py +0 -0
  98. {duty-1.4.1 → duty-1.4.2}/tests/test_decorator.py +0 -0
  99. {duty-1.4.1 → duty-1.4.2}/tests/test_running.py +0 -0
@@ -5,6 +5,14 @@ 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.4.2](https://github.com/pawamoy/duty/releases/tag/1.4.2) - 2024-09-10
9
+
10
+ <small>[Compare with 1.4.1](https://github.com/pawamoy/duty/compare/1.4.1...1.4.2)</small>
11
+
12
+ ### Bug Fixes
13
+
14
+ - Add missing (new) `check_only` argument to blacken-docs ([1a6dc99](https://github.com/pawamoy/duty/commit/1a6dc995dc0caa47d8734a9feb54eb766652cadc) by Timothée Mazzucotelli). [Issue-22](https://github.com/pawamoy/duty/issues/22)
15
+
8
16
  ## [1.4.1](https://github.com/pawamoy/duty/releases/tag/1.4.1) - 2024-08-15
9
17
 
10
18
  <small>[Compare with 1.4.0](https://github.com/pawamoy/duty/compare/1.4.0...1.4.1)</small>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: duty
3
- Version: 1.4.1
3
+ Version: 1.4.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>
@@ -54,7 +54,7 @@ def changelog(ctx: Context, bump: str = "") -> None:
54
54
 
55
55
 
56
56
  @duty(pre=["check_quality", "check_types", "check_docs", "check_dependencies", "check-api"])
57
- def check(ctx: Context) -> None: # noqa: ARG001
57
+ def check(ctx: Context) -> None:
58
58
  """Check it all!"""
59
59
 
60
60
 
@@ -41,7 +41,7 @@ dependencies = [
41
41
  "failprint>=0.11,!=1.0.0",
42
42
  "typing-extensions>=4.0; python_version < '3.11'",
43
43
  ]
44
- version = "1.4.1"
44
+ version = "1.4.2"
45
45
 
46
46
  [project.license]
47
47
  text = "ISC"
@@ -24,6 +24,7 @@ def run(
24
24
  magic_trailing_comma: bool = True,
25
25
  python_cell_magics: set[str] | None = None,
26
26
  preview: bool = False,
27
+ check_only: bool = False,
27
28
  ) -> int:
28
29
  """Run `blacken-docs`.
29
30
 
@@ -44,6 +45,8 @@ def run(
44
45
  Useful for formatting cells with custom python magics.
45
46
  preview: Enable potentially disruptive style changes that may be added
46
47
  to Black's main functionality in the next major release.
48
+ check_only: Don't modify files but indicate when changes are necessary
49
+ with a message and non-zero return code.
47
50
 
48
51
  Returns:
49
52
  Success/failure.
@@ -80,5 +83,6 @@ def run(
80
83
  black_mode,
81
84
  skip_errors=skip_errors,
82
85
  rst_literal_blocks=rst_literal_blocks,
86
+ check_only=check_only,
83
87
  )
84
88
  return retv
@@ -1,4 +1,4 @@
1
- """Callable for [Ruff](https://github.com/charliermarsh/ruff)."""
1
+ """Callable for [Ruff](https://github.com/astral-sh/ruff)."""
2
2
 
3
3
  from __future__ import annotations
4
4
 
@@ -90,34 +90,34 @@ def check(
90
90
  """Run Ruff on the given files or directories.
91
91
 
92
92
  Parameters:
93
- fix: Attempt to automatically fix lint violations
94
- config: Path to the `pyproject.toml` or `ruff.toml` file to use for configuration
95
- show_source: Show violations with source code
96
- show_fixes: Show an enumeration of all autofixed lint violations
97
- diff: Avoid writing any fixed files back; instead, output a diff for each changed file to stdout
98
- watch: Run in watch mode by re-running whenever files change
99
- fix_only: Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix`
100
- output_format: Output serialization format for violations [env: RUFF_FORMAT=] [possible values: text, json, junit, grouped, github, gitlab, pylint]
101
- statistics: Show counts for every rule with at least one violation
102
- add_noqa: Enable automatic additions of `noqa` directives to failing lines
103
- show_files: See the files Ruff will be run against with the current settings
104
- show_settings: See the settings Ruff will use to lint a given Python file
105
- select: Comma-separated list of rule codes to enable (or ALL, to enable all rules)
106
- ignore: Comma-separated list of rule codes to disable
107
- extend_select: Like --select, but adds additional rule codes on top of the selected ones
108
- per_file_ignores: List of mappings from file pattern to code to exclude
109
- fixable: List of rule codes to treat as eligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`)
110
- unfixable: List of rule codes to treat as ineligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`)
111
- exclude: List of paths, used to omit files and/or directories from analysis
112
- extend_exclude: Like --exclude, but adds additional files and directories on top of those already excluded
113
- respect_gitignore: Respect file exclusions via `.gitignore` and other standard ignore files
114
- force_exclude: Enforce exclusions, even for paths passed to Ruff directly on the command-line
115
- no_cache: Disable cache reads
116
- isolated: Ignore all configuration files
117
- cache_dir: Path to the cache directory [env: RUFF_CACHE_DIR=]
118
- stdin_filename: The name of the file when passing it through stdin
119
- exit_zero: Exit with status code "0", even upon detecting lint violations
120
- exit_non_zero_on_fix: Exit with a non-zero status code if any files were modified via autofix, even if no lint violations remain
93
+ fix: Attempt to automatically fix lint violations.
94
+ config: Path to the `pyproject.toml` or `ruff.toml` file to use for configuration.
95
+ show_source: Show violations with source code.
96
+ show_fixes: Show an enumeration of all autofixed lint violations.
97
+ diff: Avoid writing any fixed files back; instead, output a diff for each changed file to stdout.
98
+ watch: Run in watch mode by re-running whenever files change.
99
+ fix_only: Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix`.
100
+ output_format: Output serialization format for violations (env: RUFF_FORMAT=) (possible values: text, json, junit, grouped, github, gitlab, pylint).
101
+ statistics: Show counts for every rule with at least one violation.
102
+ add_noqa: Enable automatic additions of `noqa` directives to failing lines.
103
+ show_files: See the files Ruff will be run against with the current settings.
104
+ show_settings: See the settings Ruff will use to lint a given Python file.
105
+ select: Comma-separated list of rule codes to enable (or ALL, to enable all rules).
106
+ ignore: Comma-separated list of rule codes to disable.
107
+ extend_select: Like --select, but adds additional rule codes on top of the selected ones.
108
+ per_file_ignores: List of mappings from file pattern to code to exclude.
109
+ fixable: List of rule codes to treat as eligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`).
110
+ unfixable: List of rule codes to treat as ineligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`).
111
+ exclude: List of paths, used to omit files and/or directories from analysis.
112
+ extend_exclude: Like --exclude, but adds additional files and directories on top of those already excluded.
113
+ respect_gitignore: Respect file exclusions via `.gitignore` and other standard ignore files.
114
+ force_exclude: Enforce exclusions, even for paths passed to Ruff directly on the command-line.
115
+ no_cache: Disable cache reads.
116
+ isolated: Ignore all configuration files.
117
+ cache_dir: Path to the cache directory (env: RUFF_CACHE_DIR=).
118
+ stdin_filename: The name of the file when passing it through stdin.
119
+ exit_zero: Exit with status code "0", even upon detecting lint violations.
120
+ exit_non_zero_on_fix: Exit with a non-zero status code if any files were modified via autofix, even if no lint violations remain.
121
121
  verbose: Enable verbose logging.
122
122
  quiet: Print lint violations, but nothing else.
123
123
  silent: Disable all logging (but still exit with status code "1" upon detecting lint violations).
@@ -368,7 +368,7 @@ def linter(
368
368
  """List all supported upstream linters.
369
369
 
370
370
  Parameters:
371
- output_format: Output format [default: pretty] [possible values: text, json, pretty].
371
+ output_format: Output format (default: pretty) (possible values: text, json, pretty).
372
372
  verbose: Enable verbose logging.
373
373
  quiet: Print lint violations, but nothing else.
374
374
  silent: Disable all logging (but still exit with status code "1" upon detecting lint violations).
@@ -29,6 +29,7 @@ class blacken_docs(Tool): # noqa: N801
29
29
  magic_trailing_comma: bool = True,
30
30
  python_cell_magics: set[str] | None = None,
31
31
  preview: bool = False,
32
+ check_only: bool = False,
32
33
  ) -> None:
33
34
  """Run `blacken-docs`.
34
35
 
@@ -49,6 +50,8 @@ class blacken_docs(Tool): # noqa: N801
49
50
  Useful for formatting cells with custom python magics.
50
51
  preview: Enable potentially disruptive style changes that may be added
51
52
  to Black's main functionality in the next major release.
53
+ check_only: Don't modify files but indicate when changes are necessary
54
+ with a message and non-zero return code.
52
55
 
53
56
  Returns:
54
57
  Success/failure.
@@ -77,6 +80,7 @@ class blacken_docs(Tool): # noqa: N801
77
80
  preview = self.py_args["preview"]
78
81
  skip_errors = self.py_args["skip_errors"]
79
82
  rst_literal_blocks = self.py_args["rst_literal_blocks"]
83
+ check_only = self.py_args["check_only"]
80
84
 
81
85
  # Build filepaths.
82
86
  exts = ("md", "py") if exts is None else tuple(ext.lstrip(".") for ext in exts)
@@ -111,5 +115,6 @@ class blacken_docs(Tool): # noqa: N801
111
115
  black_mode,
112
116
  skip_errors=skip_errors,
113
117
  rst_literal_blocks=rst_literal_blocks,
118
+ check_only=check_only,
114
119
  )
115
120
  return retv
@@ -1,4 +1,4 @@
1
- """Callable for [Ruff](https://github.com/charliermarsh/ruff)."""
1
+ """Callable for [Ruff](https://github.com/astral-sh/ruff)."""
2
2
 
3
3
  from __future__ import annotations
4
4
 
@@ -31,7 +31,7 @@ def _find_ruff() -> str:
31
31
 
32
32
 
33
33
  class ruff(Tool): # noqa: N801
34
- """Call [Ruff](https://github.com/charliermarsh/ruff)."""
34
+ """Call [Ruff](https://github.com/astral-sh/ruff)."""
35
35
 
36
36
  cli_name = "ruff"
37
37
 
@@ -74,34 +74,34 @@ class ruff(Tool): # noqa: N801
74
74
  """Run Ruff on the given files or directories.
75
75
 
76
76
  Parameters:
77
- fix: Attempt to automatically fix lint violations
78
- config: Path to the `pyproject.toml` or `ruff.toml` file to use for configuration
79
- show_source: Show violations with source code
80
- show_fixes: Show an enumeration of all autofixed lint violations
81
- diff: Avoid writing any fixed files back; instead, output a diff for each changed file to stdout
82
- watch: Run in watch mode by re-running whenever files change
83
- fix_only: Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix`
84
- output_format: Output serialization format for violations [env: RUFF_FORMAT=] [possible values: text, json, junit, grouped, github, gitlab, pylint]
85
- statistics: Show counts for every rule with at least one violation
86
- add_noqa: Enable automatic additions of `noqa` directives to failing lines
87
- show_files: See the files Ruff will be run against with the current settings
88
- show_settings: See the settings Ruff will use to lint a given Python file
89
- select: Comma-separated list of rule codes to enable (or ALL, to enable all rules)
90
- ignore: Comma-separated list of rule codes to disable
91
- extend_select: Like --select, but adds additional rule codes on top of the selected ones
92
- per_file_ignores: List of mappings from file pattern to code to exclude
93
- fixable: List of rule codes to treat as eligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`)
94
- unfixable: List of rule codes to treat as ineligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`)
95
- exclude: List of paths, used to omit files and/or directories from analysis
96
- extend_exclude: Like --exclude, but adds additional files and directories on top of those already excluded
97
- respect_gitignore: Respect file exclusions via `.gitignore` and other standard ignore files
98
- force_exclude: Enforce exclusions, even for paths passed to Ruff directly on the command-line
99
- no_cache: Disable cache reads
100
- isolated: Ignore all configuration files
101
- cache_dir: Path to the cache directory [env: RUFF_CACHE_DIR=]
102
- stdin_filename: The name of the file when passing it through stdin
103
- exit_zero: Exit with status code "0", even upon detecting lint violations
104
- exit_non_zero_on_fix: Exit with a non-zero status code if any files were modified via autofix, even if no lint violations remain
77
+ fix: Attempt to automatically fix lint violations.
78
+ config: Path to the `pyproject.toml` or `ruff.toml` file to use for configuration.
79
+ show_source: Show violations with source code.
80
+ show_fixes: Show an enumeration of all autofixed lint violations.
81
+ diff: Avoid writing any fixed files back; instead, output a diff for each changed file to stdout.
82
+ watch: Run in watch mode by re-running whenever files change.
83
+ fix_only: Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix`.
84
+ output_format: Output serialization format for violations (env: RUFF_FORMAT=) (possible values: text, json, junit, grouped, github, gitlab, pylint).
85
+ statistics: Show counts for every rule with at least one violation.
86
+ add_noqa: Enable automatic additions of `noqa` directives to failing lines.
87
+ show_files: See the files Ruff will be run against with the current settings.
88
+ show_settings: See the settings Ruff will use to lint a given Python file.
89
+ select: Comma-separated list of rule codes to enable (or ALL, to enable all rules).
90
+ ignore: Comma-separated list of rule codes to disable.
91
+ extend_select: Like --select, but adds additional rule codes on top of the selected ones.
92
+ per_file_ignores: List of mappings from file pattern to code to exclude.
93
+ fixable: List of rule codes to treat as eligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`).
94
+ unfixable: List of rule codes to treat as ineligible for autofix. Only applicable when autofix itself is enabled (e.g., via `--fix`).
95
+ exclude: List of paths, used to omit files and/or directories from analysis.
96
+ extend_exclude: Like --exclude, but adds additional files and directories on top of those already excluded.
97
+ respect_gitignore: Respect file exclusions via `.gitignore` and other standard ignore files.
98
+ force_exclude: Enforce exclusions, even for paths passed to Ruff directly on the command-line.
99
+ no_cache: Disable cache reads.
100
+ isolated: Ignore all configuration files.
101
+ cache_dir: Path to the cache directory (env: RUFF_CACHE_DIR=).
102
+ stdin_filename: The name of the file when passing it through stdin.
103
+ exit_zero: Exit with status code "0", even upon detecting lint violations.
104
+ exit_non_zero_on_fix: Exit with a non-zero status code if any files were modified via autofix, even if no lint violations remain.
105
105
  verbose: Enable verbose logging.
106
106
  quiet: Print lint violations, but nothing else.
107
107
  silent: Disable all logging (but still exit with status code "1" upon detecting lint violations).
@@ -390,7 +390,7 @@ class ruff(Tool): # noqa: N801
390
390
  """List all supported upstream linters.
391
391
 
392
392
  Parameters:
393
- output_format: Output format [default: pretty] [possible values: text, json, pretty].
393
+ output_format: Output format (default: pretty) (possible values: text, json, pretty).
394
394
  verbose: Enable verbose logging.
395
395
  quiet: Print lint violations, but nothing else.
396
396
  silent: Disable all logging (but still exit with status code "1" upon detecting lint violations).
@@ -8,7 +8,7 @@ from duty.collection import Collection, Duty
8
8
  from duty.decorator import duty as decorate
9
9
 
10
10
 
11
- def none(*args, **kwargs) -> None: # noqa: ANN002, ANN003, ARG001, D103
11
+ def none(*args, **kwargs) -> None: # noqa: ANN002, ANN003, D103
12
12
  ... # pragma: no cover
13
13
 
14
14
 
@@ -139,7 +139,7 @@ def test_params_caster(func: Callable, args: tuple, kwargs: dict, expected_args:
139
139
  def test_casting_based_on_default_value_type() -> None:
140
140
  """Test that we cast according to the default value type when there is no annotation."""
141
141
 
142
- def func(ctx, a=0): # noqa: ANN202,ARG001,ANN001
142
+ def func(ctx, a=0): # noqa: ANN202, ANN001
143
143
  ...
144
144
 
145
145
  caster = _get_params_caster(func, a="1")
@@ -150,7 +150,7 @@ def test_casting_based_on_default_value_type() -> None:
150
150
  def test_validating_modern_annotations() -> None:
151
151
  """Test modern type annotations in function signatures."""
152
152
 
153
- def func(ctx, a: int | None = None): # noqa: ANN202,ARG001,ANN001
153
+ def func(ctx, a: int | None = None): # noqa: ANN202, ANN001
154
154
  ...
155
155
 
156
156
  caster = _get_params_caster(func, a=1)
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes