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

Added checker for multiline list comprehensions ban #48

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

nfx
Copy link
Collaborator

@nfx nfx commented Oct 3, 2024

No description provided.

@nfx nfx merged commit 7015ef8 into main Oct 3, 2024
6 checks passed
@nfx nfx deleted the feat/readability branch October 3, 2024 16:29
nfx added a commit that referenced this pull request Oct 3, 2024
* Added checker for multiline list comprehensions ban ([#48](#48)). A new checker, `readability`, has been implemented in the PyLint plugin for Databricks, introducing a new code rule `R8923` that flags multiline list comprehensions. This change aims to improve code readability by suggesting a rewrite as a for loop when list comprehensions span multiple lines. The checker can be used by adding `databricks.labs.pylint.readability` to the `load-plugins` configuration in the `pylintrc` or `pyproject.toml` file. The commit also includes updates to the README file, documenting the new checker and the `R8923` check, along with examples and instructions for using and disabling it. Additionally, new test functions have been added to `test_readability.py` to demonstrate the ability to enforce a ban on multiline list comprehensions.
* Bump sigstore/gh-action-sigstore-python from 2.1.1 to 3.0.0 ([#47](#47)). In version 3.0.0 of sigstore/gh-action-sigstore-python, several changes and bug fixes have been implemented. Notable updates include the addition of recursive globbing with **, and the removal of certain settings such as fulcio-url, rekor-url, ctfe, and rekor-root-pubkey. The output settings signature, certificate, and bundle have also been removed, and inputs are now parsed according to POSIX shell lexing rules. The release-signing-artifacts setting no longer causes a hard error when used under the incorrect event. Additionally, the default suffix has changed from .sigstore to .sigstore.json, and release-signing-artifacts now defaults to true. This version also supports CI runners that use PEP 668 to constrain global package prefixes.

Dependency updates:

 * Bump sigstore/gh-action-sigstore-python from 2.1.1 to 3.0.0 ([#47](#47)).
@nfx nfx mentioned this pull request Oct 3, 2024
nfx added a commit that referenced this pull request Oct 3, 2024
* Added checker for multiline list comprehensions ban
([#48](#48)). A
new checker, `readability`, has been implemented in the PyLint plugin
for Databricks, introducing a new code rule `R8923` that flags multiline
list comprehensions. This change aims to improve code readability by
suggesting a rewrite as a for loop when list comprehensions span
multiple lines. The checker can be used by adding
`databricks.labs.pylint.readability` to the `load-plugins` configuration
in the `pylintrc` or `pyproject.toml` file. The commit also includes
updates to the README file, documenting the new checker and the `R8923`
check, along with examples and instructions for using and disabling it.
Additionally, new test functions have been added to
`test_readability.py` to demonstrate the ability to enforce a ban on
multiline list comprehensions.
* Bump sigstore/gh-action-sigstore-python from 2.1.1 to 3.0.0
([#47](#47)). In
version 3.0.0 of sigstore/gh-action-sigstore-python, several changes and
bug fixes have been implemented. Notable updates include the addition of
recursive globbing with **, and the removal of certain settings such as
fulcio-url, rekor-url, ctfe, and rekor-root-pubkey. The output settings
signature, certificate, and bundle have also been removed, and inputs
are now parsed according to POSIX shell lexing rules. The
release-signing-artifacts setting no longer causes a hard error when
used under the incorrect event. Additionally, the default suffix has
changed from .sigstore to .sigstore.json, and release-signing-artifacts
now defaults to true. This version also supports CI runners that use PEP
668 to constrain global package prefixes.

Dependency updates:

* Bump sigstore/gh-action-sigstore-python from 2.1.1 to 3.0.0
([#47](#47)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant