Code Monkey home page Code Monkey logo

Comments (7)

wernight avatar wernight commented on July 21, 2024 2

The case I had, was that by default the secret key is in the Django settings and I'm perfectly happy with that:

foo.settings (foo/settings.py):
    L20:0 None: dodgy - secret
    Possible hardcoded secret key

from prospector.

carlio avatar carlio commented on July 21, 2024 2

At this point in time, dodgy is really super simple and has no mechanism for turning off errors - I will add one though!

from prospector.

samdolt avatar samdolt commented on July 21, 2024 1

Simple workaround for Django Secret Key:

# Prospector bypass
g = globals()
g["SECRET_KEY"] = 'my_secret'

from prospector.

wbolster avatar wbolster commented on July 21, 2024

I have similar issues with some of my code. For example, I have APIs that take a type=... keyword argument. Prospector keeps complaining that I'm overwriting the built-in type function.

However, the type argument is perfectly fine and much nicer than something like type_=... for consumers of this API. The "downside" is that the internal implementation has to be careful not to use the type() function (or access it through an alias), which is far better than forcing developers to use an ugly API.

from prospector.

carlio avatar carlio commented on July 21, 2024

With the 0.9 release, prospector now recognises "# noqa" comments and suppresses all warnings from all tools on those lines. The specific pylint disabling still works, too.

from prospector.

carlio avatar carlio commented on July 21, 2024

I'll leave this issue open however to remind me to document this properly!

from prospector.

wbolster avatar wbolster commented on July 21, 2024

Thanks, @carlio

from prospector.

Related Issues (20)

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.