You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sourcery is the pair programmer who will help you improve your code anytime you're working in Python. It reviews and improves your code automatically so you can spend more time focused on writing new code and less time cleaning things up.
16
+
Sourcery is the pair programmer who will help you improve your code. It reviews and improves your code automatically so you can spend more time focused on writing new code and less time cleaning things up.
17
17
18
18

19
19
20
20
---
21
21
22
22
## Sourcery
23
23
24
-
Sourcery is a VS Code extension to help make all of your Python code cleaner and more readable. Quickly find areas **where your code could be refactored**, see **instant suggestions for improvement**, and understand how new changes impact your **code quality**.
24
+
Sourcery is a VS Code extension to help make all of your code cleaner and more readable. Quickly find areas **where your code could be refactored**, see **instant suggestions for improvement**, and understand how new changes impact your **code quality**.
25
25
26
26
Here are some of the features Sourcery offers to help improve your code:
27
27
@@ -38,6 +38,10 @@ To start using Sourcery on your code, check out our [Getting Started guide](http
38
38
39
39
Check out our [documentation](https://docs.sourcery.ai/Welcome/) for more information on how to use Sourcery.
40
40
41
+
Sourcery is free to use for open source projects.
42
+
43
+
To use Sourcery on non open sourced projects you'll need a Sourcery Pro or Sourcery Team subscription. To get a 14 day free trial to Sourcery Pro, **[sign up for an account on the Sourcery site](https://sourcery.ai/signup/?product=prod_pro&utm_source=VS-Code)**.
44
+
41
45
---
42
46
43
47
## Features
@@ -46,7 +50,7 @@ Check out our [documentation](https://docs.sourcery.ai/Welcome/) for more inform
46
50
47
51

48
52
49
-
While you work, Sourcery will review all of the Python files you have open and look for opportunities to clean up and improve your code. Once Sourcery finds a potential improvement it will underline that section of your code.
53
+
While you work, Sourcery will review all of the Python, JavaScript, and TypeScript files you have open and look for opportunities to clean up and improve your code. Once Sourcery finds a potential improvement it will underline that section of your code.
50
54
51
55
Hover your mouse over the underlined section of code to see the changes Sourcery suggests and to see a diff of the proposed change.
52
56
@@ -61,7 +65,7 @@ The commands to bring up the quick fix menu depend on your OS & region, but gene
61
65
| Windows | Ctrl . |
62
66
| Linux | Ctrl . |
63
67
64
-
Sourcery reviews all of the Python files you have open. You can get an overview of all the suggestions Sourcery has in the Problem window.
68
+
Sourcery reviews all of the files you have open. You can get an overview of all the suggestions Sourcery has in the Problem window.
65
69
66
70
### Set up your own rules - or use public rulesets
67
71
@@ -98,8 +102,6 @@ You can use Sourcery to review a single file, a folder, or your whole project at
98
102
99
103
Right-click on any item in the Explorer window and select "Sourcery → Scan for Refactorings". Sourcery will show you a notification when the scan is done & will show all of the suggestions it found in the Problems window.
100
104
101
-
Multi-File Analysis requires a Sourcery Pro subscription. To get a month free access to Sourcery Pro, **[sign up for an account on the Sourcery site](https://sourcery.ai/signup/?utm_source=VS-Code)**.
102
-
103
105
### Duplicate Code Detection
104
106
105
107

@@ -110,8 +112,6 @@ Right-click on any item in the Explorer window and select "Sourcery → Detect C
110
112
111
113
By default, Sourcery will flag items where at least 3 lines are duplicates or near-duplicates that occur at least twice in the scanned files.
112
114
113
-
Duplicate Code Detection requires a Sourcery Pro subscription. To get a month free access to Sourcery Pro, **[sign up for an account on the Sourcery site](https://sourcery.ai/signup/?utm_source=VS-Code)**.
114
-
115
115
### Sourcery CLI
116
116
117
117
If you want to clean up a bigger portion of legacy code, Sourcery CLI comes in handy.
@@ -253,18 +253,6 @@ def func(a,b):
253
253
return c
254
254
```
255
255
256
-
---
257
-
258
-
## Sign Up For More Features
259
-
260
-
Do you like how Sourcery improves your code bit by bit?
261
-
Sign up and get a 30 day free trial of the Pro features. (No automatic renewal, no credit card required.)
262
-
263
-
After [signing up](https://sourcery.ai/signup/?utm_source=VS-Code), login by
264
-
opening the command palette (Ctrl/Cmd+Shift+P) and executing the `Sourcery:
0 commit comments