Releases: thombashi/pathvalidate
Releases · thombashi/pathvalidate
v3.3.1
- Modify to use
repr()forvalueformatting in error messages and validation descriptions
Full Changelog: v3.3.0...v3.3.1
v3.3.0
- Add
valueto theINVALID_LENGTHvalidation error - Ensure that the
invalidsvalue ofINVALID_CHARACTERis unique
Full Changelog: v3.2.3...v3.3.0
v3.2.3
What's Changed
- Fix dot-files validation by @thombashi in #60 (Thanks to @slingshotvfx)
Full Changelog: v3.2.2...v3.2.3
v3.2.2
- Fix the detection logic of the reservation words for the file name on Windows: #57 (Thanks to @jplarocque)
- Drop support for Python 3.7/3.8
- Refactor type annotations
Full Changelog: v3.2.1...v3.2.2
v3.2.1
What's Changed
- Test Python 3.12 in CIs by @MatthieuDartiailh in #40
- Bump actions/setup-python from 4 to 5 by @dependabot in #36
- Bump actions/upload-artifact from 3 to 4 by @dependabot in #38
- Bump actions/download-artifact from 3 to 4 by @dependabot in #37
- Fix CI by @thombashi in #41
- Update the CI workflow to include a job that publishes packages to TestPyPI by @thombashi in #42
- Fix coverage report by @thombashi in #45
- Fix
sanitize_filenametruncation by @7x11x13 in #48 - Fix validation functions of filepaths by @thombashi in #55
- If
platformargument iswindowsoruniversal, filepaths ending with a space or a period should be detected as an error - Fix POSIX-style absolute paths were not detected as errors with
platform="windows"orplatform="universal"on Python 3.12 and below
- If
- Add support for Python 3.13 by @thombashi in #56
- Improve type annotations
- Add a build and publish workflow
- Add Sigstore signatures to release assets
- Update copyright year to include the last update year: #54 (Thanks to @Flimm)
- Add CHANGELOG
New Contributors
- @MatthieuDartiailh made their first contribution in #40
- @dependabot made their first contribution in #36
- @7x11x13 made their first contribution in #48
Full Changelog: v3.2.0...v3.2.1
v3.2.0
- Add
reserved_name_handlerargument tosanitize_filenamefunction andsanitize_filepathfunction - Add
NullValueHandlerclass andReservedNameHandlerclass - Add
fs_encodingproperty andbyte_countproperty toValidationErrorclass - Add
additional_reserved_namesargument to validate/sanitize functions to allow custom reserved names - Modify the return value format of
ValidationError.__str__method - Improve type annotations
Full Changelog: v3.1.0...v3.2.0
v3.1.0
- Fix validation error messages to show the
target-platformproperly: #34 (Thanks to @matanster) - Fix README: out of date with the actual error generated by
validate_filename#35 (Thanks to @hXtreme) - Add
descriptionproperty toErrorReasonclass - Add
as_slogmethod toValidationErrorclass - Add
docsextras - Change the type of the return value of
ValidationError.reasonfromOptional[ErrorReason]toErrorReason - Update
[build-system] - Drop support for Python 3.6
Full Changelog: v3.0.0...v3.1.0
v3.0.0
What's Changed
- Trim heading spaces in Windows by @eggplants in #28
- Consider filesystem encoding for length calculations: #26 (Thanks to @virlos)
- Fix type model: #29 (Thanks to @rogalski)
- Fix sanitizing of filenames that only consist of whitespaces and periods
- Add
validate_unprintable_charfunction - Add
validate_after_sanitizekeyword argument tosanitize_filenameandsanitize_filepathfunctions - Add error codes to
ErrorReason - Add
zip_safe=Falsetosetup - Modify to accept
pathvalidate.Platformtype asplatformarguments - Rename type alias from
HandlertoNullValueHandler - Remove
InvalidLengthErrorto useValidationError - Improve type annotations
- Make it possible to import
FileNameValidatorandFilePathValidatorclasses from the package root - Change constructor arguments of
FileNameSanitizerandFilePathSanitizerclasses- Remove
min_len - Add
validator
- Remove
- Remove deprecated functions
- Modify error messages
- Refactoring
Full Changelog: v2.5.2...v3.0.0
v2.5.2
v2.5.1
What's Changed
- Add
__all__by @eggplants in #24 - Add
DeprecationWarningto deprecated functions
New Contributors
- @eggplants made their first contribution in #24
Full Changelog: v2.5.0...v2.5.1