Skip to content

Conversation

@kaste
Copy link
Member

@kaste kaste commented Jul 13, 2022

Fixes #29

pydocstyle actually uses the filename to decide if or how some rules
apply. For example it treats __init__.py and _some_module.py
differently.

Instead of generating a random filename, generate a randomly named
directory with the actual file in it.

kaste added 2 commits July 13, 2022 21:17
Fixes #29

pydocstyle actually uses the filename to decide if or how some rules
apply.  For example it treats `__init__.py` and `_some_module.py`
differently.

Instead of generating a random filename, generate a randomly named
directory with the actual file in it.
For whatever reason, I get PERMISSION_DENIED errors when unlinking
(on Windows) occasionally.  Retry the operation to mitigate.
@kaste
Copy link
Member Author

kaste commented Jul 13, 2022

This is too much code for a plugin but we could pull this method into SublimeLinter itself later. Generally having the original filename in a temporary directory seems to be a superior solution.

@kaste kaste merged commit fbf0637 into master Jul 13, 2022
@kaste kaste deleted the tmpdirs branch July 13, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Docstring Missing in __init__.py

2 participants