Skip to content

Commit

Permalink
feat(pydiscordsh): updating the python file locations.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Jan 4, 2025
1 parent 894129b commit 0234c8f
Show file tree
Hide file tree
Showing 12 changed files with 593 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/pydiscordsh/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
.tox,
venv,
.venv,
.pytest_cache
max-line-length = 120
1 change: 1 addition & 0 deletions apps/pydiscordsh/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.5
3 changes: 3 additions & 0 deletions apps/pydiscordsh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# pydiscordsh

Project description here.
447 changes: 447 additions & 0 deletions apps/pydiscordsh/poetry.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions apps/pydiscordsh/poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
74 changes: 74 additions & 0 deletions apps/pydiscordsh/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "pydiscordsh",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/pydiscordsh/pydiscordsh",
"targets": {
"lock": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "poetry lock --no-update",
"cwd": "apps/pydiscordsh"
}
},
"add": {
"executor": "@nxlv/python:add",
"options": {}
},
"update": {
"executor": "@nxlv/python:update",
"options": {}
},
"remove": {
"executor": "@nxlv/python:remove",
"options": {}
},
"build": {
"executor": "@nxlv/python:build",
"outputs": ["{projectRoot}/dist"],
"options": {
"outputPath": "apps/pydiscordsh/dist",
"publish": false,
"lockedVersions": true,
"bundleLocalDependencies": true
},
"cache": true
},
"install": {
"executor": "@nxlv/python:install",
"options": {
"silent": false,
"args": "",
"cacheDir": ".cache/pypoetry",
"verbose": false,
"debug": false
}
},
"lint": {
"executor": "@nxlv/python:flake8",
"outputs": ["{workspaceRoot}/reports/apps/pydiscordsh/pylint.txt"],
"options": {
"outputFile": "reports/apps/pydiscordsh/pylint.txt"
},
"cache": true
},
"test": {
"executor": "@nxlv/python:run-commands",
"outputs": [
"{workspaceRoot}/reports/apps/pydiscordsh/unittests",
"{workspaceRoot}/coverage/apps/pydiscordsh"
],
"options": {
"command": "poetry run pytest tests/",
"cwd": "apps/pydiscordsh"
},
"cache": true
}
},
"tags": [],
"release": {
"version": {
"generator": "@nxlv/python:release-version"
}
}
}
1 change: 1 addition & 0 deletions apps/pydiscordsh/pydiscordsh/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Automatically generated by Nx."""
6 changes: 6 additions & 0 deletions apps/pydiscordsh/pydiscordsh/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Sample Hello World application."""


def hello():
"""Return a friendly greeting."""
return "Hello pydiscordsh"
36 changes: 36 additions & 0 deletions apps/pydiscordsh/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tool.coverage.run]
branch = true
source = [ "pydiscordsh" ]

[tool.coverage.report]
exclude_lines = ['if TYPE_CHECKING:']
show_missing = true

[tool.pytest.ini_options]
addopts = "--cov --cov-report html:'../../coverage/apps/pydiscordsh/html' --cov-report xml:'../../coverage/apps/pydiscordsh/coverage.xml' --html='../../reports/apps/pydiscordsh/unittests/html/index.html' --junitxml='../../reports/apps/pydiscordsh/unittests/junit.xml'"

[tool.poetry]
name = "pydiscordsh"
version = "1.0.0"
description = "Automatically generated by Nx."
authors = [ ]
license = 'Proprietary'
readme = 'README.md'

[[tool.poetry.packages]]
include = "pydiscordsh"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"

[tool.poetry.group.dev.dependencies]
autopep8 = "2.3.1"
flake8 = "7.1.1"
pytest = "8.3.4"
pytest-sugar = "1.0.0"
pytest-cov = "6.0.0"
pytest-html = "4.1.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 1 addition & 0 deletions apps/pydiscordsh/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""unit tests."""
3 changes: 3 additions & 0 deletions apps/pydiscordsh/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Unit tests configuration module."""

pytest_plugins = []
8 changes: 8 additions & 0 deletions apps/pydiscordsh/tests/test_hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Hello unit test module."""

from pydiscordsh.hello import hello


def test_hello():
"""Test the hello function."""
assert hello() == "Hello pydiscordsh"

0 comments on commit 0234c8f

Please sign in to comment.