Skip to content

Commit 0a1d7db

Browse files
authored
re-init / update (#4)
1 parent a613b26 commit 0a1d7db

File tree

17 files changed

+171
-58
lines changed

17 files changed

+171
-58
lines changed

.github/workflows/ci-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: Lightning-AI/utilities/.github/workflows/check-package.yml@main
2929
with:
3030
actions-ref: main
31-
import-name: "lit_sandbox"
31+
import-name: "litmodels"
3232
artifact-name: dist-packages-${{ github.sha }}
3333
testing-matrix: |
3434
{

.github/workflows/ci-testing.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ jobs:
6565
6666
- name: Tests
6767
run: |
68-
coverage run --source lit_sandbox -m pytest src tests -v
68+
coverage run --source litmodels -m pytest src tests -v
6969
7070
- name: Statistics
71-
if: success()
7271
run: |
7372
coverage report
7473
coverage xml

.github/workflows/release-pypi.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: pip install -U build twine
24+
- name: Overview Readme for release
25+
run: echo "# Lit Models" > README.md
2426
- name: Build package
2527
run: python -m build
2628
- name: Check package
@@ -35,9 +37,9 @@ jobs:
3537
password: ${{ secrets.test_pypi_password }}
3638
repository_url: https://test.pypi.org/legacy/
3739

38-
- name: Publish distribution 📦 to PyPI
39-
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
40-
uses: pypa/[email protected]
41-
with:
42-
user: __token__
43-
password: ${{ secrets.pypi_password }}
40+
#- name: Publish distribution 📦 to PyPI
41+
# if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
42+
# uses: pypa/[email protected]
43+
# with:
44+
# user: __token__
45+
# password: ${{ secrets.pypi_password }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test: clean
1010
pip install -q -r _requirements/test.txt
1111

1212
# use this to run tests
13-
python -m coverage run --source lit_sandbox -m pytest src tests -v --flake8
13+
python -m coverage run --source litmodels -m pytest src tests -v --flake8
1414
python -m coverage report
1515

1616
docs: clean

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is starter project template which shall simplify initial steps for each new
1414

1515
Listing the implemented sections:
1616

17-
- sample package named `lit_sandbox`
17+
- sample package named `litmodels`
1818
- setting [CI](https://github.com/Lightning-AI/lightning-sandbox/actions?query=workflow%3A%22CI+testing%22) for package and _tests_ folder
1919
- setup/install package
2020
- setting docs with Sphinx
@@ -26,7 +26,6 @@ Listing the implemented sections:
2626

2727
You still need to enable some external integrations such as:
2828

29-
- [ ] rename `pl_<sandbox>` to anu other name, simple find-replace shall work well
3029
- [ ] update path used in the badges to the repository
3130
- [ ] lock the main breach in GH setting - no direct push without PR
3231
- [ ] set `gh-pages` as website and _docs_ as source folder in GH setting

_requirements/test.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
coverage>=5.0
2-
pytest>=6.0
1+
coverage >=5.0
2+
pytest >=6.0
33
pytest-cov
4-
mypy==1.13.0
4+
pytest-mock
5+
mypy ==1.13.0

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# alternative https://stackoverflow.com/a/67692/4521646
2525
spec = spec_from_file_location(
26-
"lit_sandbox/__about__.py", os.path.join(_PATH_SOURCE, "lit_sandbox", "__about__.py")
26+
"litmodels/__about__.py", os.path.join(_PATH_SOURCE, "litmodels", "__about__.py")
2727
)
2828
about = module_from_spec(spec)
2929
spec.loader.exec_module(about)

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,16 @@ extend-select = [
110110
]
111111
ignore = [
112112
"E731", # Do not assign a lambda expression, use a def
113+
"D100", # Missing docstring in public module
113114
]
114115
# Exclude a variety of commonly ignored directories.
115116
ignore-init-module-imports = true
116117

117118
[tool.ruff.lint.per-file-ignores]
118119
"setup.py" = ["D100", "SIM115"]
119120
"__about__.py" = ["D100"]
120-
"__init__.py" = ["D100"]
121+
"__init__.py" = ["D100", "E402"]
122+
"tests/**" = ["D"]
121123

122124
[tool.ruff.lint.pydocstyle]
123125
# Use Google-style docstrings.

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
torch >=2.0.0
2-
lightning >=2.0.0
1+
lightning-sdk >=0.1.26

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_PATH_REQUIRES = os.path.join(_PATH_ROOT, "_requirements")
1313

1414

15-
def _load_py_module(fname, pkg="lit_sandbox"):
15+
def _load_py_module(fname, pkg="litmodels"):
1616
spec = spec_from_file_location(os.path.join(pkg, fname), os.path.join(_PATH_SOURCE, pkg, fname))
1717
py = module_from_spec(spec)
1818
spec.loader.exec_module(py)

0 commit comments

Comments
 (0)