plain.code 0.9.0__tar.gz → 0.9.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.code
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Code formatting and linting for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -1,5 +1,15 @@
1
1
  # plain-code changelog
2
2
 
3
+ ## [0.9.1](https://github.com/dropseed/plain/releases/plain-code@0.9.1) (2025-07-18)
4
+
5
+ ### What's changed
6
+
7
+ - Improved error handling by using `click.UsageError` instead of `print` and `sys.exit` for better CLI error messages ([88f06c5](https://github.com/dropseed/plain/commit/88f06c5))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.9.0](https://github.com/dropseed/plain/releases/plain-code@0.9.0) (2025-07-03)
4
14
 
5
15
  ### What's changed
@@ -100,8 +100,7 @@ def fix(ctx, path, unsafe_fixes, add_noqa):
100
100
  ruff_args.extend(["--exclude", e])
101
101
 
102
102
  if unsafe_fixes and add_noqa:
103
- print("Cannot use both --unsafe-fixes and --add-noqa")
104
- sys.exit(1)
103
+ raise click.UsageError("Cannot use both --unsafe-fixes and --add-noqa")
105
104
 
106
105
  if unsafe_fixes:
107
106
  print_event("Ruff fix (with unsafe fixes)")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.code"
3
- version = "0.9.0"
3
+ version = "0.9.1"
4
4
  description = "Code formatting and linting for Plain."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes