Bug report
This code
import pathlib
path = pathlib.Path('.')
path.chmod(0o700)
causes
WPS432: Found magic number: 448
It's unobvious that it's the same number and it's impossible to use 448 in grep because it won't find anything.
What's wrong
Non-decimal numbers are reported as decimal. Also, maybe for things like chmod() it's okay to allow such "magic numbers" because this form directly relates to a normal syscall or a CLI command one would make.
How is that should be
The formatting should be preserved. The error should've been WPS432: Found magic number: 0o700 instead.
System information
N/A
Bug report
This code
causes
WPS432: Found magic number: 448It's unobvious that it's the same number and it's impossible to use
448in grep because it won't find anything.What's wrong
Non-decimal numbers are reported as decimal. Also, maybe for things like
chmod()it's okay to allow such "magic numbers" because this form directly relates to a normal syscall or a CLI command one would make.How is that should be
The formatting should be preserved. The error should've been
WPS432: Found magic number: 0o700instead.System information
N/A