Skip to content

Commit c5887eb

Browse files
committed
Bring the user's attention to --allow-non-packages
Because I myself forgot that this was already implemented as an option.
1 parent 032a930 commit c5887eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Changelog
66

77
- Drop support for Python 3.8 and 3.9.
88

9+
- Mention the ``--allow-non-packages`` option when showing the error message
10+
that rejects non-packages.
11+
912

1013
0.23.0 (2025-10-14)
1114
-------------------

src/check_python_versions/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def check_package(where: str = '.', *, print: PrintFn = print) -> bool:
127127

128128
if not is_package(where):
129129
print("no setup.py or pyproject.toml -- not a Python package?")
130+
print("you may want to try check-python-versions --allow-non-packages")
130131
return False
131132

132133
return True

0 commit comments

Comments
 (0)