Louis Maddox

Results 158 comments of Louis Maddox

I tried putting the suggested block in `validate_new` ```py elif isinstance(path, PosixPath) and os.statvfs(path.parent).f_flag & os.ST_RDONLY: raise PydanticCustomError('path_readonly', 'Parent directory is read-only') ``` and made a demo read-only dir with...

Looks like no major problems in the test (PR with just the initial suggested edit: #10207) besides what I assume is a `FileNotFoundError` being raised by `test_new_path_validation_parent_does_not_exist` in the test...

> @sydney-runkle Just to clarify, do you mean that you think we should raise `path_too_long` errors for `FilePath` and `DirectoryPath` as well? Yeah I think Sydney is saying that it's...

OK I've now put in this name length check on the file and directory validator methods, there's a bit of repetition here but they are each distinct cases and don't...

@changhc raises a good point: the new path could rely on parents (it's not our business how the user plans on making the new path) > I guess we need...

I've no idea what happened but somehow a bunch of datetime tests just broke :( Click to show ``` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓ ┃ File ┃ Function ┃ Function Line ┃ Error Line...

Thank you for sharing this was confusing me too! Can you share how to configure a setting this way? I'm trying this and getting no change (the pyright config is...

- Related/duplicate issue: #211 I’m not sure if perhaps pygit2 might be another option to support v3+ **Edit** I checked and it seems like it does indeed support a v3...

> Are there any updates on this feature? Happy annual kanban refresh to all who celebrate: I've put it back onto the TODO list :face_with_peeking_eye: :hourglass_flowing_sand:

Ha, oh hello :smile: I was about to just fork and package them in a git repo suitable for pip installation as outlined above, but yes you can incorporate as...