Conversation
…ile is a reserved word in python and Ive been screwed by using it as a variable name
|
@perrette -- hey Mahe, just touching base here; these are super-tiny, but I think they move the needle on readability and maintainability. |
tests/test_encoding.py
Outdated
|
|
||
| files = parse_file(":/path/to/file1.pdf:pdf;:/path/to/file2.pdf:pdf") | ||
| self.assertEqual(files, ["/path/to/file1.pdf", "/path/to/file2.pdf"]) | ||
| del files |
There was a problem hiding this comment.
Why would you do del files here? Any reason you'd think the garbage collector is not up to the task? If the garbage collector does the job, I'd rather write less lines of code.
There was a problem hiding this comment.
You're 100% right -- I use this idiom a lot to hint to GC that my ~5 Gb numpy array can go away, but here I'm just being way too pendantic.
|
Ok, I guess I wrote most of it with a rather simple editor, without any linting. Makes sense to cleanup unused import and adopt some standardize format. I'm wondering about the I have to say though, it's a little tedious for me to go through a PR to check these things line by line. I'd say, in the future you should not worry about it, and let me do that job. Thanks anyway. |
|
Your call -- the flake8 stuff is easy for me to just drop in by the by, if you don't find it confusing. I don't think there's actually that much of it, tbh. I promise I'll back off the |
This PR has no functional changes, except to clean up some imports that are unused and reformat some shorter test files with
black-- a few cleanup items that came up as I was getting better to grips with the test suite.Confirming I saw
toxpass all on my 3.14 install.