Skip to content
Open

ff #16

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
42 changes: 21 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
22 changes: 22 additions & 0 deletions .github/workflows/datadog-synthetics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Datadog Synthetics CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
synthetics-ci:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Datadog Synthetics tests
uses: datadog/synthetics-ci-github-action@v0.1.0
with:
api_key: ${{ secrets.DATADOG_API_KEY }}
app_key: ${{ secrets.DATADOG_APP_KEY }}
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

### Bug Fixes

- **syntax:** avoid generating import statements when selecting text which is not a valid variable name
- **syntax:** avoid generating import statements when selecting text which is
not a valid variable name

### Improvements

Expand All @@ -54,7 +55,8 @@

### Bug Fixes

- **syntax:** avoid generating import statements when selecting text which contains "\n"
- **syntax:** avoid generating import statements when selecting text which
contains "\n"

### Improvements

Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Python Path

This extension adds a set of tools which help you generate internal import statements in a python project.
This extension adds a set of tools which help you generate internal import
statements in a python project.

## Features

Expand All @@ -19,8 +20,8 @@ Copies the full module name of the current file to the clipboard.

### Generate import statement

Copies an import statement for the selected text to the clipboard.
In case of a simple selection, the generated statement will be:
Copies an import statement for the selected text to the clipboard. In case of a
simple selection, the generated statement will be:

```
from module.name import selected_text
Expand All @@ -39,9 +40,15 @@ from module.name import (

![Generate import statement](https://raw.githubusercontent.com/mgesbert/vscode-python-path/master/images/readme_2.gif)

## Documentation

- [Deployment Flow](docs/deployment-flow.md) - Guide for building, testing, and publishing the extension
- [Health Check](docs/health-check.md) - Monitoring and verification procedures for extension health

## Miscellaneous

Inspiration from the Sublime Package: https://github.com/pokidovea/copy_python_path
Inspiration from the Sublime Package:
https://github.com/pokidovea/copy_python_path

## Credits

Expand Down
Loading