Skip to content

Commit

Permalink
Merge pull request #5 from sandialabs/update-pyproject-toml
Browse files Browse the repository at this point in the history
chore: Update `pyproject.toml`
  • Loading branch information
jmgate authored Feb 15, 2024
2 parents 9461a22 + 837dddf commit d7823a7
Showing 1 changed file with 82 additions and 13 deletions.
95 changes: 82 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[pydocstyle]
convention = "google"


[tool.bandit.assert_used]
skips = ["**/test_*.py"]


[tool.black]
line-length = 79


[tool.commitizen]
name = "cz_customize"


[tool.commitizen.customize]
schema_pattern = "(?s)(build|chore|ci|docs|feat|fix|minor|patch|perf|refactor|style|test|revert)(\\(\\S+\\))?!?:( [^\\n\\r]+)((\\n\\n.*)|(\\s*))?$"


[tool.isort]
profile = "black"
line_length = 79


[tool.poetry]
name = "shell-logger"
version = "1.0.0"
Expand Down Expand Up @@ -35,25 +65,64 @@ classifiers = [
]


[tool.poetry.dependencies]
python = ">=3.7"


[tool.poetry.dev-dependencies]
# At some point, convert from the various requirements.txt files to this
# list of Poetry development dependencies.


[tool.poetry.urls]
CI = "https://github.com/sandialabs/shell-logger/actions"
Issues = "https://github.com/sandialabs/shell-logger/issues"


[tool.poetry.dependencies]
python = "^3.7"
[tool.semantic_release]
build_command = "python3 -m pip install poetry && poetry build"
commit_message = """
chore: Release v{version}
Automatically generated by python-semantic-release."""
version_variables = [
"doc/source/conf.py:version",
"shell_logger/__init__.py:__version__",
]
version_toml = [
"pyproject.toml:tool.poetry.version",
]

[tool.poetry.dev-dependencies]
mock = "^4.0"
pytest = "^6.2"
pytest-cov = "^2.12"
pytest-mock = "^3.6"
sphinx = "^4.0"
sphinx-argparse = "^0.2"
sphinx-rtd-theme = "^0.5"

[tool.semantic_release.branches.master]
match = "master"

[build-system]
requires = ["poetry-core>=1.0"]
build-backend = "poetry.core.masonry.api"

[tool.semantic_release.changelog]
exclude_commit_patterns = [
"Merge pull request",
]


[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"


[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"minor",
"patch",
"perf",
"refactor",
"style",
"test",
]
minor_tags = ["feat", "minor"]
patch_tags = ["fix", "patch", "perf"]

0 comments on commit d7823a7

Please sign in to comment.