https://github.com/elc/pycracks
💢🔍 breaking change detection in Python - Compatible with Semantic Version and Semantic Release
https://github.com/elc/pycracks
Last synced: about 1 year ago
JSON representation
💢🔍 breaking change detection in Python - Compatible with Semantic Version and Semantic Release
- Host: GitHub
- URL: https://github.com/elc/pycracks
- Owner: ELC
- License: mit
- Created: 2023-10-28T14:41:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T21:36:43.000Z (over 1 year ago)
- Last Synced: 2025-03-17T06:35:48.337Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 281 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pycracks
| PyPI | [](https://pypistats.org/packages/pycracks) [](https://pypi.org/project/PyCracks/) 
  |
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Quality | [](https://coveralls.io/github/ELC/pycracks) [](https://codeclimate.com/github/ELC/pycracks) [](https://codeclimate.com/github/ELC/pycracks)
 [](https://github.com/ELC/pycracks/blob/master/.github/dependabot.yml) |
| Format |  
   |
| Legal | [](https://app.fossa.com/projects/git%2Bgithub.com%2FELC%2Fpycracks) [](./LICENSE)  |
💢🔍 breaking change detection in Python - Compatible with Semantic Version and Semantic Release
## Usage
Use the --help flag for detailed options:
```shell
pycracks --help
```
Pycracks can be used in different ways, the most straightforward one is:
```shell
pycracks --paths "tests" --target-version "" --test-command "pytest tests"
```
The `test-command` could be any command and does not need to be Python specific
### Combine with scripts
It is also possible to simplify the `test-command` by always using something like `pipenv scripts` or `npm scripts`
So in the `project.json` / `Pipfile`, one could define the test command and use pycracks with `npm run test` or `pipenv run test` instead:
```shell
pycracks --paths "tests" --target-version "" --test-command "pipenv run test"
```
```shell
pycracks --paths "tests" --target-version "" --test-command "npm run test"
```
## Semantic Release
If using the Python-Semantic-Release module, installable with:
```shell
pipx install python-semantic-release
```
One can integrate it with PyCracks by using:
```shell
pycracks -t "$(semantic-release -v version --print)"
```
## Installation
### With Pipx
Recommended instalation for CICD is through `pipx` with a pinned version:
```shell
pip install pipx==1.2.0
pipx run pycracks==0.18.0 --paths "tests" --target-version "" --test-command "pytest tests"
```
That command will create a virtual environment just for pycracks and run the test command from there.
### With pip
Instalation can be done with pip as usual:
```shell
pip install pycracks
```
Pipenv and poetry equivalents can be used as well.
## F.A.Q.
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2FELC%2Fpycracks)