Flake8 Linter for Strings
Project description
flake8-strings
Description
Flake8 Linter for Strings
Checks:
- STR001: Unnecessary use of backslash escaping
e.g:
Bad:
path = 'C:\\Users\\root'
Good:
path = r'C:\Users\root'
Installation
pip install flake8-strings
Usage
flake8 <your code>
For developers
Create venv and install deps
make init
Install git precommit hook
make precommit_install
Run linters, autoformat, tests etc.
make pretty lint test
Bump new version
make bump_major
make bump_minor
make bump_patch
License
MIT
Change Log
Unreleased
- ...
0.1.1 - 2020-03-14
- ...
0.1.0 - 2020-03-14
- initial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-strings-0.1.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for flake8_strings-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1702e52469150efb5ac5d92f50ce1bb9da48397b7a1d6414e81b60dbe87cf44 |
|
MD5 | 7c40139dd6f97778dfea66a987cf9e00 |
|
BLAKE2b-256 | 12fb531ff6b1b946d1b560ad571fe0e1b93cd6d46c05198937605b8b03ac53da |