Releases: Qu1nel/PythonCodeValidator
Releases · Qu1nel/PythonCodeValidator
v0.4.0
Changelog
v0.4.0 - 2025-08-06
Added
- [feat:typo] Smart typo detection system - Added comprehensive typo detection infrastructure with TypoDetector, ScopeAnalyzer, and PythonStyleFormatter classes
- [feat:typo] Levenshtein Distance algorithm - Implemented string similarity algorithm for basic typo detection with optimized space complexity
- [feat:typo] Python 3.11+ style error messages - Added formatted error messages with file location, source highlighting, and typo suggestions
- [feat:typo] Semantic similarity scoring - Enhanced confidence calculation with prefix/suffix matching and contextual relevance analysis
- [feat:typo] Integration with IsRequiredConstraint - Automatic typo suggestions when validation rules fail to find required elements
- [feat:ux] Enhanced error reporting with numbered messages - Added numbered error messages (1., 2., 3.) for better readability
- [feat:ux] User-visible typo suggestions - Typo suggestions now appear in user output instead of debug logs only
- [feat:ux] Compact Russian typo format - Created user-friendly Russian format for typo suggestions with proper indentation
Fixed
- [Critical Bug] Fixed scope validation bug where selectors were not receiving proper scope configuration from the factory, causing rules to search in wrong scopes or ignore scope restrictions entirely.
- [Scope Logic] Improved global scope handling for different selector types: assignments now only search at module level, while function calls include
if __name__ == "__main__"blocks. - [fix:typo] Improved target type inference - Enhanced logic for determining whether to search for assignments, functions, or classes based on naming patterns
- [fix:typo] Enhanced confidence scoring - Improved similarity scoring algorithm with semantic context awareness for better typo suggestions
v0.3.0
Changelog
v0.3.0 - 2025-07-19
Added
- Added the command line option
--max-messages Nto limit the number of error messages displayed. - Added the command line option
-x, --exit-on-first-errorfor immediate exit after the first detected error.
Changed
- [Breaking Change] The "
--stop-on-first-failoption has been renamed to--exit-on-first-error" for greater clarity.
Removed
- [Breaking Change] The
--stop-on-first-failcommand line option has been removed.
Fixed
- Improved handling of critical errors such as missing file. Now the application displays a clear message to the user instead of crashing with an error, and detailed debugging information is saved in the logs.
v0.2.1
v0.2.0
Changelog
v0.2.0 - 2025-07-19
Added
- Added the command line option
--no-verdictto hide the final verdict when displaying validation results. - A new
TRACElevel has been added to the logging system for more detailed debugging.
Changed
- [Breaking Change] The command line argument for controlling the logging level
--log-levelhas been renamed to--log. - The logging system has been improved: the message format has been updated for better readability, and the default level has been changed to
ERROR.
Removed
- [Breaking Change] The
--silentcommand line option has been removed. To suppress the output, you should now use the new--quietoption.
v0.1.3
Changelog
v0.1.3 - 2025-06-17
Patch changes, fixes, and improvements.
Fixed
- Logging level: Wherever the level was specified as a string, the LogLevel structure is used.
- Clean code: Delete unnecessary comments from code.
- Docstring: Update all docstring in all files.