Another custom linter layer
Project description
Motivation
When you have a big old code base with thousands of lines, you can not just include a linter and enable 100% checks.
Instead, you just enable 1% of the checks, which is very sad for a decent developer.
Could you just enable to only check your changes ? YES, you can.
There is a better solution for this ! Welcome custolint - custom linter.
Idea
TODO: draw a diagram. Given we have a project alike custolint, where we:
changed a the function custolint/git.py:_blame
added a new function custolint/generics.py:filer_output
from textblob import TextBlob
text = '''
The titular threat of The Blob has always struck me as the ultimate movie
monster: an insatiably hungry, amoeba-like mass able to penetrate
virtually any safeguard, capable of--as a doomed doctor chillingly
describes it--"assimilating flesh on contact.
Snide comparisons to gelatin be damned, it's a concept with the most
devastating of potential consequences, not unlike the grey goo scenario
proposed by technological theorists fearful of
artificial intelligence run rampant.
'''
blob = TextBlob(text)
blob.tags # [('The', 'DT'), ('titular', 'JJ'),
# ('threat', 'NN'), ('of', 'IN'), ...]
blob.noun_phrases # WordList(['titular threat', 'blob',
# 'ultimate movie monster',
# 'amoeba-like mass', ...])
for sentence in blob.sentences:
print(sentence.sentiment.polarity)
# 0.060
# -0.341
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file custolint-0.0.3.dev2-py3-none-any.whl
.
File metadata
- Download URL: custolint-0.0.3.dev2-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a3a53518e4985ebf993cc7fae3c9bc20e755008d5d4aac3a5c1d1dd44b161f |
|
MD5 | 90a6ca65985224ef3936060d76a5e595 |
|
BLAKE2b-256 | c52ba2a94c342f7c49b822ce309683510205888bf1853eb43c2244a7cf7cf431 |