Displaying 1 to 20 from 26 results

elements-of-python-style - Goes beyond PEP8 to discuss what makes Python code feel great


This document goes beyond PEP8 to cover the core of what I think of as great Python style. It is opinionated, but not too opinionated. It goes beyond mere issues of syntax and module layout, and into areas of paradigm, organization, and architecture. I hope it can be a kind of condensed "Strunk & White" for Python code. ... but, be flexible on naming and line length.

best-of-python-dev - 🏆 A ranked list of awesome python developer tools and libraries

  •    Python

🏆  A ranked list of awesome python developer tools and libraries. Updated weekly. 🧙‍♂️  Discover other best-of lists or create your own. 📫  Subscribe to our newsletter for updates and trending projects.

flake8-mypy - A plugin for flake8 integrating Mypy.

  •    Python

A plugin for Flake8 integrating mypy. The idea is to enable limited type checking as a linter inside editors and other tools that already support Flake8 warning syntax and config. flake8-mypy reserves T4 for all current and future codes, T being the natural letter for typing-related errors. There are other plugins greedily reserving the entire letter T. To this I say: ¯\_(ツ)_/¯.

NewId - A sequential id generator that works across nodes with no collisions

  •    CSharp

NewId can be used as an embedded unique ID generator that produces 128 bit (16 bytes) sequential IDs. It is inspired from snowflake and flake. Read on to learn more. A number of applications use unique identifiers to identify a data record. A common way for apps that use a relational database (RDBMS) is to delegate the generation of these IDs to the database - by means of a Identity column (MS-SQL) or similar. This approach is fine for a small app, but quickly becomes a bottleneck at web-scale. See this post from the blokes at twitter: https://blog.twitter.com/2010/announcing-snowflake Another use case is apps that use messaging to communicate between themselves - as is the case with a Microservices based architecture. These apps may require sequential unique IDs for messages.

flake8-comprehensions - ❄️ A flake8 plugin to help you write better list/set/dict comprehensions.

  •    Python

A flake8 plugin that helps you write better list/set/dict comprehensions.

flake8-tidy-imports - ❄️ A flake8 plugin that helps you write tidier imports.

  •    Python

A flake8 plugin that helps you write tidier imports. Config for rule I201 (see below). A map where each line is a banned import string, followed by '=', then the message to use when encountering that banned import. Note that despite the name, you can ban imported objects too, since the syntax is the same, such as decimal.Decimal.

mastool - [M]ean [AST] T[ool] - static analysis checks of python code through flake8

  •    Python

After installing mastool, flake8 would get equipped with mastool's checks. Mastool also adds the following switch to flake8, which provides a quick suggestion about what to replace the reported code with.

flake8-import-order-spoqa - Spoqa's import order style for flake8-import-order

  •    Python

Deeper relative imports should go former. This rule makes consistent even when relative imports are rewritten as absolute imports. Because runtime extensible styles is introduced from flake-import-order 0.12, you need to install flake-import-order 0.12 or later.

flake8-pyi - A plugin for Flake8 that provides specializations for type hinting stub files

  •    Python

A plugin for Flake8 that provides specializations for type hinting stub files, especially interesting for linting typeshed. The latter should ideally be merged into flake8 as the integration is currently pretty brittle (might break with future versions of pyflakes, flake8, or due to interactions with other overly clever plugins).

flake8-import-order - Flake8 plugin that checks import order against various Python Style Guides

  •    Python

A flake8 and Pylama plugin that checks the ordering of your imports. It does not check anything else about the imports. Merely that they are grouped and ordered correctly. In general stdlib comes first, then 3rd party, then local packages, and that each group is individually alphabetized, however this depends on the style used. Flake8-Import-Order supports a number of styles and is extensible allowing for custom styles.

wemake-python-styleguide - The most strict and opinionated python linter ever

  •    Python

Welcome to the most strict and opinionated python linter ever. wemake-python-styleguide is actually a flake8 plugin with some other plugins as dependencies.

yesqa - Automatically remove unnecessary `# noqa` comments

  •    Python

A tool (and pre-commit hook) to automatically remove unnecessary # noqa comments, for example: a check that's no longer applicable (say you increased your max line length), a mistake (# noqa added to a line that wasn't failing), or other code in the file caused it to no longer need a # noqa (such as an unused import). If you need to select a specific version of flake8 and/or run with specific flake8 plugins, add them to additional_dependencies.

flake8-eradicate - Flake8 plugin to find commented out or dead code

  •    Python

flake8 plugin to find commented out (or so called "dead") code. This is quite important for the project in a long run. Based on eradicate project.

flake8-assertive - Flake8 unittest assert method checker

  •    Python

flake8-assertive is a Flake8 extension that encourages using richer, more specific unittest assertions beyond just the typical assertEqual(a, b) and assertTrue(x) methods. The suggested methods perform more precise checks and provide better failure messages than the generic methods. Note that some suggestions are normalized forms of the original, such as when a double-negative is used (assertFalse(a != b) → assertEqual(a, b)). There aren't suggestions for things like assertFalse(a > b), which may or may not be equivalent to assertLessEqual(a, b).

flake8-alfred - Alfred is a flake8 plugin to warn on unsafe/obsolete symbols.

  •    Python

Alfred is a flake8 plugin to warn on unsafe/obsolete symbols. You can use it as a transition tool to eliminate functions, modules, variables you don't want in existing project or you want to avoid in new ones. This plugin requires Python 3.6. Here enable-extensions tells flake8 to enable this plugin and warn-symbols is the list of symbols we want to flag in our project, with the associated warning. By default, this plugin doesn't warn about any other symbol.

flake8-bandit - Automated security testing using bandit and flake8.

  •    Python

You already use flake8 to lint all your code for errors, ensure docstrings are formatted correctly, sort your imports correctly, and much more... so why not ensure you are writing secure code while you're at it? If you already have flake8 installed all it takes is pip install flake8-bandit. We use the bandit package from PyCQA for all the security testing.

igcommit - Git pre-receive hook to check commits and code style

  •    Python

It is exhausting to edit files again and again to have a consistent style. This project provides a Git pre-receive hook to validate pushed commits on the Git server side. The hook avoids all issues by rejecting any commit not matching the rules to get in to the repository in the first place. The pre-receive hook runs some checks on commits on its own, and searches for programming language specific syntax checkers on the PATH of the server to check changed files with them. The process is pretty fast, because only the added and modified files on the pushed commits are passed to the syntax checkers, also in parallel. It wouldn't slow you down unless your commits are touching hundreds of files.

flake8-annotations - Flake8 Type Annotation Checking

  •    Python

flake8-annotations is a plugin for Flake8 that detects the absence of PEP 3107-style function annotations and PEP 484-style type comments (see: Caveats). What this won't do: Check variable annotations (see: PEP 526), respect stub files, or replace mypy.

flake8-2020 - flake8 plugin which checks for misuse of `sys.version` or `sys.version_info`

  •    Python

this will become a problem when python3.10 or python4.0 exists (presumably during the year 2020).

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.