semvec/pypi-packages huggingface dataset:
flake8-enforce-type-annotations 0.1.1
Flake8 plugin for enforcing type annotations.
License: MIT
Keywords: flake8,type,python,enforce,annotations

Flake8 Typing Annotations Enforcement Plugin
============================================

Overview
--------

This Flake8 plugin is designed to enforce the usage of typing annotations in your Python code. By integrating this plugin into your Flake8 workflow, you can ensure that your codebase adheres to a consistent and explicit typing style, promoting better code readability and maintainability.

Features
--------

-   Type Annotation Enforcement: The plugin checks your Python code for functions, variables, and parameters that lack type annotations and raises warnings or errors accordingly.

-   Selective Ignoring: Use inline comments to selectively ignore the type annotation checks for specific lines or blocks of code.

Installation
------------

You can install this Flake8 plugin using pip:


`pip install flake8-enforce-type-annotations`

Usage
-----

After installation, the plugin becomes available as part of your Flake8 toolchain. Simply run Flake8 on your project to enforce typing annotations:


`flake8 your_project_directory`

### Configuration

You can configure the strictness of the enforcement by adjusting the plugin settings in your Flake8 configuration file (usually `.flake8`):


```[flake8]
per-file-ignores = 
    utils.py:ETA002,ETA001
```

### Inline Ignoring

If you need to bypass the type annotation checks for specific lines or blocks of code, you can use inline comments:


```# flake8: noqa
def unannotated_function():
    # ... code without type annotations
```

Contributing
------------

Contributions to this Flake8 plugin are welcome! If you encounter issues or have ideas for improvements, please open an issue or submit a pull request on the GitHub repository.

License
-------

This Flake8 plugin is distributed under the MIT License.
flake8-restrict-imports 0.1.1
Flake8 plugin for restricting unwanted imports in a module.
License: MIT
Keywords: flake8,imports,python,restrict

Flake8 Restrict Imports Plugin
==============================

Overview
--------

This Flake8 plugin provides a mechanism to restrict imports based on a specified configuration. The plugin allows you to define sets of denied and allowed imports, helping you enforce coding standards and maintain a clean codebase.

### Features

-   Denied Imports: Specify a configuration that defines imports to be denied for specific modules/packages.
-   Allowed Imports: Specify a configuration that defines allowed imports for specific modules/packages.

Installation
------------

Install the plugin using `pip`:


`pip install flake8-restrict-imports`

Usage
-----

Once the plugin is installed, you can run Flake8 with the plugin enabled:


`flake8 your_project_directory`

### Configuration

You need to configure the plugin in your Flake8 configuration file (e.g., `.flake8`):


```[flake8]
denied_imports_config = {'libs': ['db', 'tests'],'db': ['libs', 'tests']}
allowed_imports_config = {'api.tests.utils': ['db', 'libs'], 'db': ['tests']}
```

Adjust the configurations based on your project's needs.

### Example

Consider the following code snippet:


```
# your_module.py

# Denied import
from core import some_module  # This import is denied according to the configuration

# Allowed import
from api.tests.event_utils import some_function  # This import is allowed according to the configuration
```

# Denied import
`from core import some_module` This import is denied according to the configuration

# Allowed import
`from api.tests.event_utils import some_function` This import is allowed according to the configuration`

When Flake8 is run, it will raise a warning for the denied import and ensure compliance with your defined import restrictions.

Contribution
------------

Feel free to contribute to the development of this Flake8 plugin. Fork the repository, make your changes, and submit a pull request.

License
-------

This Flake8 plugin is licensed under the MIT License.
flake8-enforce-kwargs 0.1.1
Flake8 plugin for enforcing kwargs only argument definition.
License: MIT
Keywords: flake8,kwargs,python,enforcer,arguments,parameters

flake8-enforce-kwargs
=======================

Overview
--------

`flake8-enforce-kwargs` is a Flake8 plugin designed to enforce the use of keyword arguments in functions and class methods. This plugin helps promote code clarity and readability by encouraging the explicit naming of arguments, making it easier for developers to understand the purpose of each parameter.

Installation
------------

To install the `flake8-enforce-kwargs` plugin, use the following pip command:


`pip install flake8-enforce-kwargs`

Usage
-----

After installation, runs automatically when you run the flake8 command.
For example:


```flake8 your_project_directory```

This will check your Python files for functions and class methods that do not use keyword arguments. Any violations of the rule will be reported in the Flake8 output.

Configuration
-------------

The plugin can be configured using the Flake8 configuration file (usually setup.cfg or .flake8). Add the following section to enable and configure the `flake8-enforce-kwargs` plugin:


Additionally, you can customize the behavior of the plugin by adjusting the following optional settings:

-   exclude: A list of names or patterns for functions or methods to exclude from the keyword argument check.

Example configuration:


```[flake8]
per-file-ignores =
    utils.py:EKW002,EKW001
````
Rules
-----

The `flake8-enforce-kwargs` plugin enforces the following rules:

All arguments in functions and class methods must use keyword arguments.

Example
-------

pythonCopy code

```# flak8: noqa

# This function violates the rule
def add(x, y):
    return x + y

# This class method violates the rule
class Calculator:
    def multiply(self, a, b):
        return a * b
```

In the example above, the `add` function and the `multiply` method violate the keyword argument rule. Running Flake8 with the `flake8-enforce-kwargs` plugin will report these violations.

License
-------

`flake8-enforce-kwargs` is licensed under the MIT License - see the LICENSE file for details.
pycountsrmb2024 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9

# pycountsrmb2024

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycountsrmb2024
```

## Usage

`pycounts` can be used to count words in a text file and plot results
as follows:

```python
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pycountsrmb2024` was created by Rachel Bouwer. It is licensed under the terms of the MIT license.

## Credits

`pycountsrmb2024` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
pycounts_zty 0.1.0
Calculate word counts in a text file!
License: MIT
Requires Python: >=3.9


# pycounts_zty

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts
```

## Usage

`pycounts` can be used to count words in a text file and plot results
as follows:

```python
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pycounts_zty` was created by Rachel Li. It is licensed under the terms of the MIT license.

## Credits

`pycounts_zty` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
pycountsxch 0.1.3
Python package to count text
License: MIT
Requires Python: >=3.9

# pycounts

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycountsxch
```

## Usage

`pycounts` can be used to count words in a text file and plot results
as follows:

```python
from pycountsxch.pycounts import count_words
from pycountsxch.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. 
Please note that this project is released with a Code of Conduct. 
By contributing to this project, you agree to abide by its terms.

## License

`pycountsxch` was created by Charles Xu. It is licensed under the terms
of the MIT license.

## Credits

`pycounts` was created with 
[`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and 
the `py-pkgs-cookiecutter` 
[template](https://github.com/py-pkgs/py-pkgs-cookiecutter).