Skip to content

Commit

Permalink
fix flake8 issues, duplicate code, and format everything
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 2, 2024
1 parent 9805953 commit 5b54c4f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 44 deletions.
30 changes: 7 additions & 23 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitType": "docs",
Expand All @@ -12,56 +10,42 @@
"name": "gptlang",
"avatar_url": "https://avatars.githubusercontent.com/u/121417512?v=4",
"profile": "https://github.com/gptlang",
"contributions": [
"code",
"doc"
]
"contributions": ["code", "doc"]
},
{
"login": "jellydn",
"name": "Dung Duc Huynh (Kaka)",
"avatar_url": "https://avatars.githubusercontent.com/u/870029?v=4",
"profile": "https://productsway.com/",
"contributions": [
"code",
"doc"
]
"contributions": ["code", "doc"]
},
{
"login": "qoobes",
"name": "Ahmed Haracic",
"avatar_url": "https://avatars.githubusercontent.com/u/58834655?v=4",
"profile": "https://qoobes.dev",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "ziontee113",
"name": "Trí Thiện Nguyễn",
"avatar_url": "https://avatars.githubusercontent.com/u/102876811?v=4",
"profile": "https://youtube.com/@ziontee113",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "Cassius0924",
"name": "He Zhizhou",
"avatar_url": "https://avatars.githubusercontent.com/u/62874592?v=4",
"profile": "https://github.com/Cassius0924",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "rguruprakash",
"name": "Guruprakash Rajakkannu",
"avatar_url": "https://avatars.githubusercontent.com/u/9963717?v=4",
"profile": "https://www.linkedin.com/in/guruprakashrajakkannu/",
"contributions": [
"code"
]
"contributions": ["code"]
}
],
"contributorsPerLine": 7,
Expand Down
7 changes: 2 additions & 5 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"diagnostics.globals": [
"describe",
"it"
]
}
"diagnostics.globals": ["describe", "it"]
}
13 changes: 3 additions & 10 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
"addWords": true
}
],
"dictionaries": [
"cspell-tool"
],
"ignorePaths": [
"node_modules",
"dist",
"build",
"/cspell-tool.txt"
]
}
"dictionaries": ["cspell-tool"],
"ignorePaths": ["node_modules", "dist", "build", "/cspell-tool.txt"]
}
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
"extends": ["config:recommended"]
}
1 change: 1 addition & 0 deletions rplugin/python3/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Dict, List

import dotenv
import prompts
import requests
import typings
import utilities
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/handlers/vsplit_chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def vsplit(self):
if window.vars[var_key]:
self.nvim.current.window = window
return
except:
except Exception:
pass

self.buffer.vsplit(
Expand Down
2 changes: 0 additions & 2 deletions rplugin/python3/mypynvim/ui_components/popup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from .layout import Layout

if TYPE_CHECKING:
from mypynvim.core.nvim import MyNvim

from mypynvim.core.buffer import MyBuffer
from mypynvim.core.window import MyWindow
Expand Down

0 comments on commit 5b54c4f

Please sign in to comment.