Skip to main content

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.

You cannot just take and (Boromir meme)

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


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

custolint-0.0.3.dev2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file custolint-0.0.3.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for custolint-0.0.3.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 56a3a53518e4985ebf993cc7fae3c9bc20e755008d5d4aac3a5c1d1dd44b161f
MD5 90a6ca65985224ef3936060d76a5e595
BLAKE2b-256 c52ba2a94c342f7c49b822ce309683510205888bf1853eb43c2244a7cf7cf431

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page