Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into main branch #12

Merged
merged 2 commits into from
Feb 11, 2024
Merged

Merge dev into main branch #12

merged 2 commits into from
Feb 11, 2024

Conversation

github-actions[bot]
Copy link

Created by Github action

Copy link
Author

************* Module Njalla.API
Njalla/API.py:21:0: C0305: Trailing newlines (trailing-newlines)
Njalla/API.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/API.py:1:0: C0103: Module name "API" doesn't conform to snake_case naming style (invalid-name)
Njalla/API.py:3:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/API.py:3:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Njalla/API.py:1:0: W0611: Unused import requests (unused-import)
************* Module Njalla.Domain
Njalla/Domain.py:9:0: C0304: Final newline missing (missing-final-newline)
Njalla/Domain.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/Domain.py:1:0: C0103: Module name "Domain" doesn't conform to snake_case naming style (invalid-name)
Njalla/Domain.py:4:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/Domain.py:4:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Njalla/Domain.py:1:0: W0611: Unused import requests (unused-import)
Njalla/Domain.py:2:0: W0611: Unused NjallaAPI imported from API (unused-import)
************* Module Njalla.Server
Njalla/Server.py:9:0: C0304: Final newline missing (missing-final-newline)
Njalla/Server.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/Server.py:1:0: C0103: Module name "Server" doesn't conform to snake_case naming style (invalid-name)
Njalla/Server.py:4:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/Server.py:4:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Njalla/Server.py:1:0: W0611: Unused import requests (unused-import)
Njalla/Server.py:2:0: W0611: Unused NjallaAPI imported from API (unused-import)
************* Module Njalla.VPN
Njalla/VPN.py:31:0: C0304: Final newline missing (missing-final-newline)
Njalla/VPN.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/VPN.py:1:0: C0103: Module name "VPN" doesn't conform to snake_case naming style (invalid-name)
Njalla/VPN.py:4:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/VPN.py:15:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:18:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:18:4: R0913: Too many arguments (6/5) (too-many-arguments)
Njalla/VPN.py:21:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:27:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:30:4: C0116: Missing function or method docstring (missing-function-docstring)
Njalla/VPN.py:1:0: W0611: Unused import requests (unused-import)
Njalla/VPN.py:2:0: W0611: Unused NjallaAPI imported from API (unused-import)
************* Module Njalla.Wallet
Njalla/Wallet.py:30:0: C0301: Line too long (107/100) (line-too-long)
Njalla/Wallet.py:37:0: C0301: Line too long (110/100) (line-too-long)
Njalla/Wallet.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/Wallet.py:1:0: C0103: Module name "Wallet" doesn't conform to snake_case naming style (invalid-name)
Njalla/Wallet.py:5:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/Wallet.py:45:12: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
Njalla/Wallet.py:72:12: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
Njalla/Wallet.py:91:12: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
Njalla/Wallet.py:107:12: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
Njalla/Wallet.py:2:0: W0611: Unused NjallaAPI imported from API (unused-import)
************* Module Njalla.init
Njalla/init.py:12:0: C0301: Line too long (129/100) (line-too-long)
Njalla/init.py:24:0: C0301: Line too long (111/100) (line-too-long)
Njalla/init.py:33:0: C0304: Final newline missing (missing-final-newline)
************* Module Njalla
Njalla/init.py:1:0: C0114: Missing module docstring (missing-module-docstring)
Njalla/init.py:1:0: C0103: Module name "Njalla" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:8:0: C0115: Missing class docstring (missing-class-docstring)
Njalla/init.py:29:8: C0103: Attribute name "API" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:30:8: C0103: Attribute name "Domain" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:31:8: C0103: Attribute name "Server" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:32:8: C0103: Attribute name "VPN" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:33:8: C0103: Attribute name "Wallet" doesn't conform to snake_case naming style (invalid-name)
Njalla/init.py:8:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Njalla/init.py:6:0: C0411: third party import "import requests" should be placed before "from .API import NjallaAPI" (wrong-import-order)
************* Module conf
docs/conf.py:1:0: C0114: Missing module docstring (missing-module-docstring)
docs/conf.py:10:0: W0622: Redefining built-in 'copyright' (redefined-builtin)
docs/conf.py:9:0: C0103: Constant name "project" doesn't conform to UPPER_CASE naming style (invalid-name)
docs/conf.py:10:0: C0103: Constant name "copyright" doesn't conform to UPPER_CASE naming style (invalid-name)
docs/conf.py:11:0: C0103: Constant name "author" doesn't conform to UPPER_CASE naming style (invalid-name)
docs/conf.py:12:0: C0103: Constant name "release" doesn't conform to UPPER_CASE naming style (invalid-name)
docs/conf.py:27:0: C0103: Constant name "html_theme" doesn't conform to UPPER_CASE naming style (invalid-name)
************* Module tests.test_wallet
tests/test_wallet.py:1:0: R0801: Similar lines in 2 files
==Njalla.API:[4:20]
==Njalla.Wallet:[7:32]
self.api_key = api_key
self.base_url = "https://njal.la/api/1/"
self.headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Njalla " + self.api_key,
"Referer": "https://njal.la/",
}
self.payment_shorts = {
"bitcoin": "btc",
"litecoin": "ltc",
"monero": "xmr",
"zcash": "zec",
"ethereum": "eth",
"paypal": "paypal"
} (duplicate-code)
tests/test_wallet.py:1:0: R0801: Similar lines in 2 files
==Njalla.API:[4:12]
==Njalla.VPN:[5:15]
self.api_key = api_key
self.base_url = "https://njal.la/api/1/"
self.headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Njalla " + self.api_key,
"Referer": "https://njal.la/",
}

def add_vpn(self, name, autorenew): (duplicate-code)

Your code has been rated at 3.93/10

@devcadotio devcadotio merged commit b6557d1 into main Feb 11, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant