Giter VIP home page Giter VIP logo

flake8-intsights's Introduction

Splunk> Phantom

Welcome to the open-source repository for Splunk> Phantom's intsights App.

Please have a look at our Contributing Guide if you are interested in contributing, raising issues, or learning more about open-source Phantom apps.

Legal and License

This Phantom App is licensed under the Apache 2.0 license. Please see our Contributing Guide for further details.

flake8-intsights's People

Contributors

gkesaev-zn avatar simonirwin-r7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flake8-intsights's Issues

Decorated classes trigger a warning

The following code triggers incorrect warnings:
I052 main class definition should start with a "class Name("
I053 each base class should be seperated by a new-line

@decorator
class DecoratedClass(
    ClassBase,
):
    pass

Empty lists trigger a warning

The following code triggers incorrect warning:
I045 each subentry opener must be in its own line

dict_obj = {
    'stuff': [
        [],
    ],
}

I081: Support Function Calls From Parameters

While trying to make function calls from as a function parameter, Flake8 raises I081 warning, though function calls are not mutable.
For example, the following code raises I081 (b parameter):

def hello(
    self,
    x: str,
    b: str = fastapi.Header(None),
)

DOC: Relationship to black

The black autoformatter is pretty popular and also opinionated. What is the relationship between flake8-intsights and black?

(Side questions: why "intsights"? should it be "insights" and was a typo?)

Multiline text blocks trigger a warning

The following code triggers an incorrect warning (I006 indentation should be gradually added):

class A:
    def __init__(self):
        text_block = '''
this file has weird indentation.
'''
        print(text_block)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.