Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README #3

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: |
(?x)^(
.*\.md
)$
- id: check-added-large-files
exclude: |
(?x)^(
img/demo.gif
)$
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
Expand Down
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Installation

To install from source:
`pip install .`

For an editable installation during development:
`pip install -e .`


## Development

To install tools for development:
`pip install -e ".[dev]"`

To enable `pre-commit` (included with development tools):
`pre-commit install --install-hooks`

To run `pre-commit` manually:
`pre-commit run`

To apply `pre-commit` to all files:
`pre-commit run --all-files`

To run a specific `pre-commit` check (e.g. `black`):
`pre-commit run black`
47 changes: 29 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
# Pixee CLI
<picture>
<source media="(prefers-color-scheme: dark)" srcset="img/dark_mode_logo.png">
<source media="(prefers-color-scheme: light)" srcset="img/light_mode_logo.png">
<img alt="Pixee Logo" src="img/light_mode_logo.png">
</picture>

This repository contains the implementation of the Pixee CLI.
# Pixee is your automated product security engineer

## Installation
*Pixee fixes vulnerabilities, hardens code, squashes bugs, and gives
engineers more time to focus on the work that counts.*

The Pixee CLI brings the power of Pixee's [Codemodder framework](https://codemodder.io) to your local development environment.

![Pixee CLI Demo](img/demo.gif)

To install from source:
`pip install .`
Learn more at https://pixee.ai!

For an editable installation during development:
`pip install -e .`
Get the most out of Pixee by installing the Pixeebot GitHub app at
https://app.pixee.ai. Or find us on [GitHub Marketplace](https://github.com/apps/pixeebot).

## Supported Systems:
* MacOS (using [homebrew](https://brew.sh))
* Linux (coming soon!)

## Installation

## Development
### MacOS (using homebrew)

To install tools for development:
`pip install -e ".[dev]"`
```
brew tap pixee/pixee
brew install pixee
```

To enable `pre-commit` (included with development tools):
`pre-commit install --install-hooks`
## Usage

To run `pre-commit` manually:
`pre-commit run`
After installation, run the `pixee` command to see instructions and options.

To apply `pre-commit` to all files:
`pre-commit run --all-files`

To run a specific `pre-commit` check (e.g. `black`):
`pre-commit run black`
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).
Binary file added img/dark_mode_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/light_mode_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/pixee/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ def fix(path, dry_run, language, output, list_codemods, explain, verbose):
)

console.print("Dry run:", dry_run, style="bold")
console.print(
"No changes will be written to disk"
if dry_run
else "Changes will be written to disk",
style="bold",
)

combined_codetf = {
"vendor": "pixee",
Expand Down
Loading