Socket
Socket
Sign inDemoInstall

idlealign

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idlealign

Emacs Align by Regular Expression for IDLE


Maintainers
1

IDLEAlign

Python IDLE extension to align code by a regular expression

Tests

pre-commit.ci status pre-commit code style: black Ruff

What does this extension do?

This IDLE extension allows you to align a block of code by a regular expression selecting the text you would like to have aligned and then running Format -> Align Selection or Alt+a on default. If space wrap is enabled in the dialog that appears, regular expression match in selected text will have a single space added on both sides. If disabled, this will not happen. This is very helpful for making large blocks of assignment statements pretty or for making comments for your ruff rules in pyproject.toml all match up.

Installation (Without root permissions)

  1. Go to terminal and install with pip install idlealign[user].
  2. Run command idleuserextend; idlealign. You should see the following output: Config should be good! Config should be good!.
  3. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlealign. This is where you can configure if idlealign is enabled or not.

Installation (Legacy, needs root permission)

  1. Go to terminal and install with pip install idlealign.
  2. Run command idlealign. You will likely see a message saying idlealign not in system registered extensions!. Run the command given to add lintcheck to your system's IDLE extension config file.
  3. Again run command idlealign. This time, you should see the following output: Config should be good!.
  4. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlealign. This is where you can configure if idlealign is enabled or not.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc