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))
Release files for confs 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| confs-1.0.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| confs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / confs-1.0.0.tar.gz
| Download URL | confs-1.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b819e1de762536d16df8c27c91870b32d590eebe9a70eb328803e92947475ce
|
|
BLAKE2b-256 checksum How to use checksums |
beeec8a727a0f63319ed95bcb0b576b2b457331494d09149c3d6030d97fa7017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.0
|
Release files / confs-1.0.0-py3-none-any.whl
| Download URL | confs-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7710bdf7bb76614008011afe2b6c88e56fd6ea9800ade4da8933a127ec85515e
|
|
BLAKE2b-256 checksum How to use checksums |
5cde6a5a2bc954477d4b2f07b134d952806b66cf7aad93532dc233ee00810e19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.0
|