Skip to content

[flake8-self] Ignore sunder accesses in flake8-self rule#11546

Merged
charliermarsh merged 1 commit intomainfrom
charlie/s
May 26, 2024
Merged

[flake8-self] Ignore sunder accesses in flake8-self rule#11546
charliermarsh merged 1 commit intomainfrom
charlie/s

Conversation

@charliermarsh
Copy link
Member

Summary

We already ignore dunders, so ignoring sunders (as in https://docs.python.org/3/library/enum.html#supported-sunder-names) makes sense to me.

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label May 26, 2024
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+0 -4 violations, +0 -0 fixes in 1 projects; 49 projects unchanged)

apache/airflow (+0 -4 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --no-preview --select ALL

- tests/providers/elasticsearch/log/test_es_response.py:201:16: SLF001 Private member accessed: `_d_`
- tests/providers/elasticsearch/log/test_es_response.py:53:16: SLF001 Private member accessed: `_l_`
- tests/providers/elasticsearch/log/test_es_response.py:57:16: SLF001 Private member accessed: `_l_`
- tests/providers/elasticsearch/log/test_es_response.py:87:16: SLF001 Private member accessed: `_d_`

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
SLF001 4 0 4 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+0 -4 violations, +0 -0 fixes in 1 projects; 49 projects unchanged)

apache/airflow (+0 -4 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

- tests/providers/elasticsearch/log/test_es_response.py:201:16: SLF001 Private member accessed: `_d_`
- tests/providers/elasticsearch/log/test_es_response.py:53:16: SLF001 Private member accessed: `_l_`
- tests/providers/elasticsearch/log/test_es_response.py:57:16: SLF001 Private member accessed: `_l_`
- tests/providers/elasticsearch/log/test_es_response.py:87:16: SLF001 Private member accessed: `_d_`

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
SLF001 4 0 4 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant