Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ERA001 flags non-code segments as commented-out code #3980

Closed
ksquarekumar opened this issue Apr 15, 2023 · 0 comments · Fixed by #3984
Closed

bug: ERA001 flags non-code segments as commented-out code #3980

ksquarekumar opened this issue Apr 15, 2023 · 0 comments · Fixed by #3984
Labels
bug Something isn't working

Comments

@ksquarekumar
Copy link

#
# # Copyright © 2023 <ORG_NAME> or its affiliates. All Rights Reserved.
# #
# # Licensed under the Apache License, Version 2.0 (the "License"). You
# # may not use this file except in compliance with the License. A copy of
# # the License is located at:
# #
# # https://github.com/<ORG_NAME>/<PROJECT>/blob/main/LICENSE
# #
# # or in the "license" file accompanying this file. This file is
# # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# # ANY KIND, either express or implied. See the License for the specific
# # language governing permissions and limitations under the License.
# #
# # This file is part of the <PROJECT>.
# # see (https://github.com/<ORG_NAME>/<PROJECT>)
# #
# # You should have received a copy of the APACHE LICENSE, VERSION 2.0
# # along with this program. If not, see <https://apache.org/licenses/LICENSE-2.0>
#

image

The current Ruff version

  • using ruff version 0.0.261

The current Ruff settings:

  • using select = [ "ALL" ] in pyproject.toml

The command you invoked:

  • no command, but using ruff in vs-code,along with the configured rule in .pre-commit-config.yaml listed below.
  - repo: https://github.com/charliermarsh/ruff-pre-commit
    # Ruff version.
    rev: 'v0.0.261'
    hooks:
      - id: ruff

I could drop this rule, but then having this check is important as well, which is why am filing this bug.

@ksquarekumar ksquarekumar changed the title bug: ERA001 flags non-code segments bug: ERA001 flags non-code segments as commented-out code Apr 15, 2023
@charliermarsh charliermarsh added the bug Something isn't working label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants