Skip to content

Commit

Permalink
Merge pull request #3 from marshrossney/cookiecutter
Browse files Browse the repository at this point in the history
Rely on cookiecutter to generate experiment directory from templates
  • Loading branch information
marshrossney committed May 9, 2022
2 parents a45b2cb + 618ca08 commit f6660ea
Show file tree
Hide file tree
Showing 19 changed files with 895 additions and 727 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__/
*.pyc
testing/
9 changes: 9 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import nox

nox.options.session = []

@nox.session
def lint(session):
session.install("flake8", "black")
session.run("black", "pyrex")
session.run("flake8", "pyrex", "--ignore", "E,W293,W503")
63 changes: 53 additions & 10 deletions poetry.lock

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

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ license = "GPL-3.0-only"

[tool.poetry.dependencies]
python = "^3.8"
cookiecutter = "^1.7.3"
click = "^8.1.2"
python-slugify = "^6.1.1"
cookiecutter = "^1.7.3"
PyYAML = "^6.0"

[tool.poetry.dev-dependencies]
black = "^22.1.0"
flake8 = "^4.0.1"
pytest = "^7.1.1"

[tool.poetry.scripts]
pyrex = 'pyrex.scripts.pyrex:pyrex'
pyrex = 'pyrex.scripts.cli:cli'
5 changes: 3 additions & 2 deletions pyrex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from pyrepcon.workspace import Workspace
from pyrepcon.templates import Template, Templates
import importlib.metadata

__version__ = importlib.metadata.version("pyrex")

0 comments on commit f6660ea

Please sign in to comment.