Compare commits
7 Commits
8fc5a18fab
...
v3.2.2
Author | SHA1 | Date | |
---|---|---|---|
c419c684aa | |||
748b2b2abb | |||
52c2e5cc13 | |||
55c61e3fce | |||
b9550032ba | |||
5ba763246b | |||
f0ffdf096d |
@@ -10,12 +10,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Build and Test
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -37,16 +36,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: dist/*
|
path: dist/*
|
||||||
sonarcloud:
|
|
||||||
name: SonarCloud
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: SonarCloud Scan
|
|
||||||
uses: SonarSource/sonarcloud-github-action@master
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
@@ -8,17 +8,17 @@ dynamic = ["version", "dependencies", "optional-dependencies"]
|
|||||||
authors = [{ name = "Profitroll" }]
|
authors = [{ name = "Profitroll" }]
|
||||||
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.8"
|
||||||
license = { text = "GPLv3" }
|
license = { text = "GPLv3" }
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
]
|
]
|
||||||
@@ -42,7 +42,7 @@ Tracker = "https://git.end-play.xyz/profitroll/LibBotUniversal/issues"
|
|||||||
where = ["src"]
|
where = ["src"]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ['py39', 'py310', 'py311' ,'py312']
|
target-version = ['py38', 'py39', 'py310', 'py311']
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
@@ -61,7 +61,7 @@ show_error_codes = true
|
|||||||
|
|
||||||
[tool.pylint.main]
|
[tool.pylint.main]
|
||||||
extension-pkg-whitelist = ["ujson"]
|
extension-pkg-whitelist = ["ujson"]
|
||||||
py-version = 3.9
|
py-version = 3.8
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["libbot"]
|
source = ["libbot"]
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
black==24.10.0
|
black==24.4.2
|
||||||
build==1.2.2.post1
|
build==1.2.1
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
mypy==1.13.0
|
mypy==1.10.0
|
||||||
pylint==3.3.1
|
pylint==3.2.2
|
||||||
pytest-asyncio==0.24.0
|
pytest-asyncio==0.23.7
|
||||||
pytest-cov==6.0.0
|
pytest-cov==5.0.0
|
||||||
pytest==8.3.3
|
pytest==8.2.1
|
||||||
tox==4.23.2
|
tox==4.15.0
|
||||||
types-aiofiles==24.1.0.20240626
|
types-aiofiles==23.2.0.20240403
|
||||||
types-ujson==5.10.0.20240515
|
types-ujson==5.10.0.20240515
|
@@ -1,2 +1,2 @@
|
|||||||
apscheduler~=3.10.4
|
apscheduler~=3.10.4
|
||||||
py-cord~=2.6.0
|
py-cord~=2.5.0
|
@@ -1,2 +1,2 @@
|
|||||||
apscheduler~=3.10.4
|
apscheduler~=3.10.4
|
||||||
pyrofork~=2.3.32
|
pyrofork~=2.3.21.post3
|
@@ -1,2 +0,0 @@
|
|||||||
sonar.projectKey=profitroll_libbot
|
|
||||||
sonar.organization=profitroll
|
|
@@ -1,4 +1,4 @@
|
|||||||
__version__ = "3.3.0"
|
__version__ = "3.2.2"
|
||||||
__license__ = "GPL3"
|
__license__ = "GPL3"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ def test_config_delete(key: str, path: List[str], location_config: Path):
|
|||||||
("bot_lol", ["bot"]),
|
("bot_lol", ["bot"]),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_config_delete_missing(key: str, path: List[str], location_config: Path):
|
async def test_config_delete_missing(key: str, path: List[str], location_config: Path):
|
||||||
assert (
|
assert (
|
||||||
sync.config_delete(key, *path, missing_ok=True, config_file=location_config)
|
sync.config_delete(key, *path, missing_ok=True, config_file=location_config)
|
||||||
is None
|
is None
|
||||||
|
6
tox.ini
6
tox.ini
@@ -1,14 +1,14 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.9.0
|
minversion = 3.8.0
|
||||||
envlist = py39, py310, py311, py312
|
envlist = py38, py39, py310, py311
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311
|
3.11: py311
|
||||||
3.12: py312
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
|
Reference in New Issue
Block a user