Skip to content

Commit 0205f63

Browse files
authored
Merge pull request #41 from blooop/feature/lowercase
Feature/lowercase
2 parents 8be33f3 + 006d9b5 commit 0205f63

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

pyproject.toml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rockerc"
3-
version = "0.4.3"
3+
version = "0.5.0"
44
authors = [{ name = "Austin Gregg-Smith", email = "blooop@gmail.com" }]
55
description = "A tool to parse rockerc.yaml files and pass on the arguments onto rocker"
66
readme = "README.md"
@@ -50,27 +50,34 @@ test = [
5050
"coverage>=7.5.4,<=7.6.9",
5151
]
5252
#These are a list of externally maintained rocker extensions. use pip install rockerc[extensions] to install all of them
53-
extensions= ["pixi-rocker>=0.0.9","palanteer-rocker>=0.0.1","lazygit-rocker>=0.0.1","ghrocker==0.0.9","groot-rocker==0.4.1","cargo-rocker==0.0.3"]
53+
extensions = [
54+
"pixi-rocker>=0.0.9",
55+
"palanteer-rocker>=0.0.1",
56+
"lazygit-rocker>=0.0.1",
57+
"ghrocker==0.0.9",
58+
"groot-rocker==0.4.1",
59+
"cargo-rocker==0.0.3",
60+
]
5461

5562

5663
[build-system]
5764
requires = ["hatchling"]
5865
build-backend = "hatchling.build"
5966

6067
[tool.hatch.build]
61-
include= ["rockerc"]
68+
include = ["rockerc"]
6269

6370
[project.scripts]
6471
rockerc = "rockerc.rockerc:run_rockerc"
6572

6673
# Environments
6774
[tool.pixi.environments]
68-
default = {features = ["test"], solve-group = "default" }
69-
py309 = ["py309","test"]
70-
py310 = ["py310","test"]
71-
py311 = ["py311","test"]
72-
py312 = ["py312","test"]
73-
py313 = ["py313","test"]
75+
default = { features = ["test"], solve-group = "default" }
76+
py309 = ["py309", "test"]
77+
py310 = ["py310", "test"]
78+
py311 = ["py311", "test"]
79+
py312 = ["py312", "test"]
80+
py313 = ["py313", "test"]
7481

7582

7683
[tool.pixi.tasks]
@@ -79,7 +86,7 @@ check-clean-workspace = "git diff --exit-code"
7986
ruff-lint = "ruff check . --fix"
8087
pylint = "pylint --version && echo 'running pylint...' && pylint $(git ls-files '*.py')"
8188
lint = { depends_on = ["ruff-lint", "pylint"] }
82-
style = { depends_on = ["format","lint"]}
89+
style = { depends_on = ["format", "lint"] }
8390
commit-format = "git commit -a -m'autoformat code' || true"
8491
test = "pytest"
8592
coverage = "coverage run -m pytest && coverage xml -o coverage.xml"
@@ -90,8 +97,14 @@ update-lock-push = { depends_on = ["update-lock", "push"] }
9097
fix = { depends_on = ["update-lock", "format", "ruff-lint"] }
9198
fix-commit-push = { depends_on = ["fix", "commit-format", "update-lock-push"] }
9299
ci-no-cover = { depends_on = ["style", "test"] }
93-
ci = { depends_on = ["format","ruff-lint", "pylint", "coverage", "coverage-report"] }
94-
ci-push = {depends_on=["format","ruff-lint","update-lock","ci","push"]}
100+
ci = { depends_on = [
101+
"format",
102+
"ruff-lint",
103+
"pylint",
104+
"coverage",
105+
"coverage-report",
106+
] }
107+
ci-push = { depends_on = ["format", "ruff-lint", "update-lock", "ci", "push"] }
95108
clear-pixi = "rm -rf .pixi pixi.lock"
96109
setup-git-merge-driver = "git config merge.ourslock.driver true"
97110
update-from-template-repo = "./scripts/update_from_template.sh"

rockerc/rockerc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def build_docker(dockerfile_path: str = ".") -> str:
6565
str: The tag of the built Docker image.
6666
"""
6767

68-
tag = f"{pathlib.Path().absolute().name}:latest"
68+
tag = f"{pathlib.Path().absolute().name.lower()}:latest"
6969
dockerfile_dir = pathlib.Path(dockerfile_path).absolute().parent
7070
subprocess.call(["docker", "build", "-t", tag, str(dockerfile_dir)])
7171
return tag

0 commit comments

Comments
 (0)