CLI tool that lists tools for which the given project has configuration files.
Project description
confs
CLI tool that lists tools for which the given project has configuration files.
For example, if the project has .isort.cfg file or [tool.isort] section in pyproject.toml, confs will detect that the project uses isort. A possible use-case is to implement CI jobs for linters that are run only if the corresponding configuration file is represented in the project.
Installation
python3 -m pip install --user confs
CLI usage
confs list- list tools configured in the current directory.confs list --path=/path/to/project/- list tools configured in the specified directory.confs has flake8- check if the project hasflake8configured. The exit code is 1 if the tool is not configured.
API usage
from pathlib import Path
from confs import get_tools
path = Path('.')
print(get_tools(path))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file confs-1.0.0.tar.gz.
File metadata
- Download URL: confs-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b819e1de762536d16df8c27c91870b32d590eebe9a70eb328803e92947475ce
|
|
| MD5 |
f2192f0df92f0d44db4ced52665d7a31
|
|
| BLAKE2b-256 |
beeec8a727a0f63319ed95bcb0b576b2b457331494d09149c3d6030d97fa7017
|
File details
Details for the file confs-1.0.0-py3-none-any.whl.
File metadata
- Download URL: confs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7710bdf7bb76614008011afe2b6c88e56fd6ea9800ade4da8933a127ec85515e
|
|
| MD5 |
4119428431521f71a204f9f8fe71975b
|
|
| BLAKE2b-256 |
5cde6a5a2bc954477d4b2f07b134d952806b66cf7aad93532dc233ee00810e19
|