Giter Club home page Giter Club logo

Comments (6)

sigmavirus24 avatar sigmavirus24 commented on June 5, 2024

This is not a bug in flake8. Your strings are invalid in Python 3 which is why us trying to parse it with the standard library fails. Please look up rae strings and in the future fill out the entire issue template

from flake8.

AFLSC avatar AFLSC commented on June 5, 2024

Thanks for the quick reply, but I have 2 follow up questions:
The comments I mentioned can look like this for example: "To find the files uploaded, look at \\network\xyz". Using raw strings would look like this "To find the files uploaded, look at r'\\network\xyz'" or this r"To find the files uploaded, look at \\network\xyz, both of which I don't think are nice since it's all in a comment anyways and not a variable. Especially in docstrings I don't want to add "r" every time now
Also which parts of the issue template? I only found a reference to the documentation that I shouldn't just write "I want this changed", and the rest of the template only has 2 notes and the prompt to describe what I want. Maybe I overlooked something, since I don't create issues here so often

from flake8.

sigmavirus24 avatar sigmavirus24 commented on June 5, 2024

Also which parts of the issue template? I only found a reference to the documentation that I shouldn't just write "I want this changed", and the rest of the template only has 2 notes and the prompt to describe what I want. Maybe I overlooked something, since I don't create issues here so often

https://github.com/PyCQA/flake8/blob/main/.github/ISSUE_TEMPLATE/01_bug.yml

You're effectively trying to report a bug, but there is no information about which version of Flake8, python, etc. you're using and no minimal reproducible example.

from flake8.

AFLSC avatar AFLSC commented on June 5, 2024

Ah I guess that's where the problem was. I thought it was more of a feature request, so I didn't look at the bug report template, sorry.
I am using python 3.12.1 with flake8 version 7.0.0
My command used was flake8 . --ignore=E401,E302,F821,E265,E306,E305,E402,E124,E121,E501,E722,W605,W504,W503, but the reports also appear with "flake8 ."
Do you think this ticket can be reopened this way? (or if I do an actual bug report)

from flake8.

AFLSC avatar AFLSC commented on June 5, 2024

Okay I just noticed it's not only with flake8, but a general python issue

from flake8.

asottile avatar asottile commented on June 5, 2024

in short the linter is correct and you would do best to not ignore it

from flake8.

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.