Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Trenchkit uses Poetry to package and manage it's dependencies.

poetry install

You can run trenchkit using poetry. The tool name is the directory name of the tool in the tools directory.

poetry run trenchkit <tool_name> <tool_args>

Poetry adds the ability to build packages so that they can be installed using pip

poetry build

This will generate packages in the dist folder. It is recommended to install these and so that you don't have to be in the trenchkit directory to run the application.

Extending trenchkit

  • New tools should be added in the tools directory.
  • Each tool should represent a python package.
  • Each tool should have a main.py file with a run(args) function
├── trenchkit/
│   ├── __init__.py
│   ├── trenchkit.py       
│   └── tools/             
│       ├── __init__.py
│       ├── tool_1.py
|           └── __init__.py 
|           └── main.py 
│       ├── tool_2.py
|           └── __init__.py 
|           └── main.py 
│       └── ...            
├── pyproject.toml

About

Tools from the trenches: formatting, testing, fixing.

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages