Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanCQC committed Jul 17, 2023
1 parent 73026dc commit 212333f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
# python -m pip install sphinx
# sphinx-build -b html docs/ docs/_build/

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: nathfitz/test:latest
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# tags: nathfitz/test:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY . .
RUN pip install --no-cache-dir -r requirements.txt

# Start the web server
CMD ["python", "-m", "qtmlib.main"]
CMD ["python", "-m", "pytemplate.main"]
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
requires = ["setuptools", "wheel"]

[project]
name = "qtmlib"
name = "pytemplate"
version = "0.0.1"
description = "A library using pytket to write quantum algorithms in Python"
description = "A python library"
requires-python = ">=3.11"
authors = [{name = "Author", email = "[email protected]" }]

[tool.setuptools.packages.find]
where = ["qtmlib"]
where = ["pytemplate"]

[tool.ruff]
# Enable flake8-bugbear (`B`) rules, pandas, see https://beta.ruff.rs/docs/rules/
select = ["E", "F", "B", "RUF","PT","B","UP", "C4", "D"]
extend-exclude = ["**/*.ipynb"]
target-version = "py311"

[tool.ruff.pydocstyle]
Expand All @@ -20,6 +23,7 @@ convention = "google"

#https://microsoft.github.io/pyright/#/getting-started
[tool.pyright]
include = ["qtmlib","tests"]
include = ["pytemplate","tests"]
ignore = ["**/*.ipynb"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
typeCheckingMode = "strict"
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests for qtmlib.main module."""

from qtmlib.main import hello_world
from pytemplate.main import hello_world


def test_hello_world():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests for qtmlib.utils."""

from qtmlib.utils import add_numbers
from pytemplate.utils import add_numbers


def test_add():
Expand Down

0 comments on commit 212333f

Please sign in to comment.