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 details)
Built Distribution
File details
Details for the file flake8-strings-0.1.1.tar.gz
.
File metadata
- Download URL: flake8-strings-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98705bab303768f4117b32a67f7937c22e3f3ae60e1aff45f02095a20dbbfcc4 |
|
MD5 | 3e35f1a4d0ba4f96d98996128930ee1b |
|
BLAKE2b-256 | 8cce33996b7efbd015a005f850063d2fb239fe8983abeba5ceb438676facf5c5 |
File details
Details for the file flake8_strings-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_strings-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1702e52469150efb5ac5d92f50ce1bb9da48397b7a1d6414e81b60dbe87cf44 |
|
MD5 | 7c40139dd6f97778dfea66a987cf9e00 |
|
BLAKE2b-256 | 12fb531ff6b1b946d1b560ad571fe0e1b93cd6d46c05198937605b8b03ac53da |