File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,25 @@ An extension for managing Python dependencies. At the moment it only supports py
44
55![ 2021-02-28 16 40 01] ( https://user-images.githubusercontent.com/667029/109424385-b2d87780-79e3-11eb-85e9-6931063f4210.gif ) 
66
7+ 
8+ ## ❤️ Contributing  
9+ 
10+ -  Fork and clone repository:
11+ 
12+     ``` shell 
13+     [email protected] :
< your-fork
> /python-dependencies-vscode.git
 14+     cd  python-dependencies-vscode
15+     ```
16+ - Install dependencies
17+   ` ` ` shell
18+ 
19+   npm install 
20+   ` ` `  
21+ - Run extension using VS Code' s "Run and Debug" menu, select `Run Extension` option
22+ 
23+ 
24+ 
25+ 
726## Roadmap 
827
928-   [ ] Add support for updating dependencies 
Original file line number Diff line number Diff line change @@ -51,11 +51,9 @@ export const findDependencies = (text: string) => {
5151        if  ( line . startsWith ( "[" ) )  { 
5252            lastSection  =  line . replace ( / ^ \[ / ,  "" ) . replace ( / \] $ / ,  "" ) ; 
5353        }  else  { 
54+             const  poetryDependenciesRe  =  new  RegExp ( "^tool\.poetry\..*dependencies$" ) 
5455            if  ( 
55-                 [ 
56-                     "tool.poetry.dependencies" , 
57-                     "tool.poetry.dev-dependencies" , 
58-                 ] . includes ( lastSection ) 
56+                 poetryDependenciesRe . test ( lastSection ) 
5957            )  { 
6058                const  dep  =  parseDependency ( line ,  index ) ; 
6159
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments