Skip to content

Commit cdd7efc

Browse files
authored
feat: Install sourcery package instead of sourcery-cli (#320)
1 parent a83d944 commit cdd7efc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
name: sourcery
33
description: Magically refactor Python
44
language: python
5-
additional_dependencies: [sourcery-cli==1.0.3]
5+
additional_dependencies: [sourcery==1.0.3]
66
entry: sourcery review --check
77
types: [python]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Get started with our CLI to have Sourcery review all your code locally or star t
1010

1111
You can have Sourcery review your entire project and make dozens or hundreds (or thousands) of improvements with a single command from the command line.
1212

13-
To start `pip install sourcery-cli`, login with `sourcery login`, and then run `sourcery review <some path>` to have Sourcery review and make suggestions on every file in that path
13+
To start `pip install sourcery`, login with `sourcery login`, and then run `sourcery review <some path>` to have Sourcery review and make suggestions on every file in that path
1414

1515
## CI & Pre-Commit
1616

@@ -19,7 +19,7 @@ Keep your entire codebase standardized with Sourcery’s [CI integration](https:
1919
For CI we recommend using
2020

2121
```yaml
22-
pip install sourcery-cli
22+
pip install sourcery
2323
# Store your Sourcery token as a secret in your CI environment.
2424
sourcery login --token $SOURCERY_TOKEN
2525
sourcery review --check --diff "git diff main" .
@@ -32,7 +32,7 @@ To set up your pre-commit hooks use:
3232
```yaml
3333
repos:
3434
- repo: https://github.com/sourcery-ai/sourcery
35-
rev: v0.13.0
35+
rev: v1.0.3
3636
hooks:
3737
- id: sourcery
3838
# The best way to use Sourcery in a pre-commit hook:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[project]
2-
name = "sourcery"
2+
name = "sourcery-precommit"
33
version = "1.0.3"
44
description = "Magically refactor Python"

0 commit comments

Comments
 (0)