Skip to content

Commit

Permalink
Configured Python projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
yghokim committed Mar 11, 2024
1 parent 7dca713 commit 325b151
Show file tree
Hide file tree
Showing 21 changed files with 5,854 additions and 30 deletions.
2 changes: 1 addition & 1 deletion apps/backend/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.5
3.11.8
2,851 changes: 2,851 additions & 0 deletions apps/backend/poetry.lock

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions apps/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ branch = true
source = [ "backend" ]

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

[tool.pytest.ini_options]
Expand All @@ -14,23 +14,27 @@ name = "backend"
version = "1.0.0"
description = "Automatically generated by Nx."
authors = [ ]
license = 'Proprietary'
readme = 'README.md'
license = "Proprietary"
readme = "README.md"

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

[tool.poetry.dependencies]
python = ">=3.11,<3.12"
python = ">=3.11.8,<3.12"

[tool.poetry.group.dev.dependencies]
autopep8 = "2.0.2"
flake8 = "6.0.0"
pytest = "7.3.1"
pytest-sugar = "0.9.7"
pytest-cov = "4.1.0"
pytest-html = "3.2.0"
[tool.poetry.dependencies.py_core]
path = "../../libs/py_core"
develop = true

[tool.poetry.group.dev.dependencies]
autopep8 = "2.0.2"
flake8 = "6.0.0"
pytest = "7.3.1"
pytest-sugar = "0.9.7"
pytest-cov = "4.1.0"
pytest-html = "3.2.0"

[build-system]
requires = ["poetry-core"]
requires = [ "poetry-core" ]
build-backend = "poetry.core.masonry.api"
3 changes: 1 addition & 2 deletions apps/backend/tests/test_hello.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Hello unit test module."""

from aacesstalk_backend.hello import hello

from libs.py_core.py_core.hello import hello

def test_hello():
"""Test the hello function."""
Expand Down
1 change: 0 additions & 1 deletion libs/py-core/.python-version

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions libs/py_core/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.8
File renamed without changes.
2,834 changes: 2,834 additions & 0 deletions libs/py_core/poetry.lock

Large diffs are not rendered by default.

File renamed without changes.
18 changes: 9 additions & 9 deletions libs/py-core/project.json → libs/py_core/project.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "py-core",
"name": "py_core",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "libs/py-core/py_core",
"sourceRoot": "libs/py_core/py_core",
"targets": {
"lock": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "poetry lock --no-update",
"cwd": "libs/py-core"
"cwd": "libs/py_core"
}
},
"add": {
Expand All @@ -27,7 +27,7 @@
"executor": "@nxlv/python:build",
"outputs": ["{projectRoot}/dist"],
"options": {
"outputPath": "libs/py-core/dist",
"outputPath": "libs/py_core/dist",
"publish": false,
"lockedVersions": true,
"bundleLocalDependencies": true
Expand All @@ -45,20 +45,20 @@
},
"lint": {
"executor": "@nxlv/python:flake8",
"outputs": ["{workspaceRoot}/reports/libs/py-core/pylint.txt"],
"outputs": ["{workspaceRoot}/reports/libs/py_core/pylint.txt"],
"options": {
"outputFile": "reports/libs/py-core/pylint.txt"
"outputFile": "reports/libs/py_core/pylint.txt"
}
},
"test": {
"executor": "@nxlv/python:run-commands",
"outputs": [
"{workspaceRoot}/reports/libs/py-core/unittests",
"{workspaceRoot}/coverage/libs/py-core"
"{workspaceRoot}/reports/libs/py_core/unittests",
"{workspaceRoot}/coverage/libs/py_core"
],
"options": {
"command": "poetry run pytest tests/",
"cwd": "libs/py-core"
"cwd": "libs/py_core"
}
}
},
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions libs/py-core/pyproject.toml → libs/py_core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ exclude_lines = ['if TYPE_CHECKING:']
show_missing = true

[tool.pytest.ini_options]
addopts = "--cov --cov-report html:'../../coverage/libs/py-core/html' --cov-report xml:'../../coverage/libs/py-core/coverage.xml' --html='../../reports/libs/py-core/unittests/html/index.html' --junitxml='../../reports/libs/py-core/unittests/junit.xml'"
addopts = "--cov --cov-report html:'../../coverage/libs/py_core/html' --cov-report xml:'../../coverage/libs/py_core/coverage.xml' --html='../../reports/libs/py_core/unittests/html/index.html' --junitxml='../../reports/libs/py_core/unittests/junit.xml'"

[tool.poetry]
name = "py-core"
name = "py_core"
version = "1.0.0"
description = "Automatically generated by Nx."
authors = [ ]
Expand All @@ -21,7 +21,9 @@ readme = 'README.md'
include = "py_core"

[tool.poetry.dependencies]
python = ">=3.11,<3.12"
python = ">=3.11.8,<3.12"
pendulum = "^3.0.0"
chatlib = {git = "https://github.com/yghokim/chatlib.git", tag="0.6.8"}

[tool.poetry.group.dev.dependencies]
autopep8 = "2.0.2"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Hello unit test module."""

from py_core.hello import hello
from libs.py_core.py_core.hello import hello


def test_hello():
Expand Down
111 changes: 111 additions & 0 deletions libs/ts-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion libs/ts-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@aacesstalk/libs/ts-core",
"name": "@aacesstalk/ts-core",
"version": "0.0.1",
"dependencies": {
"axios": "^1.6.7",
"tslib": "^2.3.0"
},
"type": "commonjs",
Expand Down
7 changes: 7 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "aacesstalk"
version = "0.1.0"
description = ""
authors = ["Young-Ho Kim <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 325b151

Please sign in to comment.