forked from pybamm-team/pybamm-cookie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b127ab7
commit 61abe85
Showing
20 changed files
with
108 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- pybammcookie | ||
|
||
jobs: | ||
style: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# pybamm-cookiecutter | ||
# pybamm-cookie | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ requires = ["hatchling", "hatch-vcs"] | |
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "pybamm-cookiecutter" | ||
name = "pybamm-cookie" | ||
authors = [ | ||
{ name = "Agriya Khetarpal", email = "[email protected]" }, | ||
{ name = "Santhosh Sundaram", email = "[email protected]" }, | ||
|
@@ -57,31 +57,31 @@ docs = [ | |
] | ||
|
||
[project.scripts] | ||
pybamm-cookiecutter = "pybamm_cookiecutter.cli:pybamm_cookiecutter_cli" | ||
pybamm-cookie = "pybamm_cookie.cli:pybamm_cookie_cli" | ||
|
||
[project.entry-points."pipx.run"] | ||
pybamm-cookiecutter = "pybamm_cookiecutter.cli:pybamm_cookiecutter_cli" | ||
pybamm-cookie = "pybamm_cookie.cli:pybamm_cookie_cli" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pybamm-team/pybamm-cookiecutter" | ||
"Bug Tracker" = "https://github.com/pybamm-team/pybamm-cookiecutter/issues" | ||
Discussions = "https://github.com/pybamm-team/pybamm-cookiecutter/discussions" | ||
Changelog = "https://github.com/pybamm-team/pybamm-cookiecutter/releases" | ||
Homepage = "https://github.com/pybamm-team/pybamm-cookie" | ||
"Bug Tracker" = "https://github.com/pybamm-team/pybamm-cookie/issues" | ||
Discussions = "https://github.com/pybamm-team/pybamm-cookie/discussions" | ||
Changelog = "https://github.com/pybamm-team/pybamm-cookie/releases" | ||
|
||
[tool.hatch] | ||
version.source = "vcs" | ||
build.hooks.vcs.version-file = "src/pybamm_cookiecutter/_version.py" | ||
build.hooks.vcs.version-file = "src/pybamm_cookie/_version.py" | ||
envs.default.dependencies = [ | ||
"pybamm", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
only-include = ["src/pybamm_cookiecutter", "/template", "copier.yml", "LICENSE", "LICENSES-bundled.txt"] | ||
only-include = ["src/pybamm_cookie", "/template", "copier.yml", "LICENSE", "LICENSES-bundled.txt"] | ||
sources = ["src"] | ||
|
||
[tool.mypy] | ||
packages = [ | ||
"src/pybamm_cookiecutter", | ||
"src/pybamm_cookie", | ||
"tests" | ||
] | ||
python_version = "3.11" | ||
|
@@ -100,7 +100,7 @@ allow_redefinition = true | |
disable_error_code = ["call-overload", "operator"] | ||
|
||
[tool.coverage] | ||
run.source = ["pybamm_cookiecutter"] | ||
run.source = ["pybamm_cookie"] | ||
port.exclude_lines = [ | ||
'pragma: no cover', | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
Copyright (c) 2023 The PyBaMM Team. All rights reserved. | ||
pybamm-cookie: A template for creating battery modeling projects based on PyBaMM | ||
""" | ||
from __future__ import annotations | ||
|
||
from pybamm_cookie.cli import pybamm_cookie_cli | ||
from pybamm_cookie._version import __version__ | ||
|
||
__all__ : list[str] = [ | ||
"__version__", | ||
"pybamm_cookie_cli", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if __name__ == "__main__": | ||
from pybamm_cookie.cli import pybamm_cookie_cli | ||
|
||
pybamm_cookie_cli() |
Oops, something went wrong.