Compare commits
No commits in common. "0.1.0.dev4" and "main" have entirely different histories.
0.1.0.dev4
...
main
10 changed files with 17 additions and 49 deletions
BIN
.coverage
BIN
.coverage
Binary file not shown.
2
.flake8
2
.flake8
|
|
@ -1,2 +0,0 @@
|
||||||
[flake8]
|
|
||||||
ignore = E501, W503, F541, E203
|
|
||||||
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
|
|
@ -1,20 +1,18 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: Use hatch-version-action
|
name: CI
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the "main" branch
|
# Triggers the workflow on push or pull request events but only for the "main" branch
|
||||||
push:
|
push:
|
||||||
branches: [ "*" ]
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
HATCH_INDEX_USER: __token__
|
|
||||||
HATCH_INDEX_AUTH: ${{ secrets.pypi_token }}
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
|
|
@ -26,6 +24,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: waylonwalker/hatch-version-action@v1
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4.2.0
|
||||||
with:
|
with:
|
||||||
beforeCommand: "test-lint"
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- run: pip install hatch
|
||||||
|
|
||||||
|
- uses: waylonwalker/hatch-version-action@v1
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# Hatch Version Action Example
|
# Hatch Version Action Example
|
||||||
|
|
||||||
|
[](https://pypi.org/project/hatch-version-action-example)
|
||||||
|
[](https://pypi.org/project/hatch-version-action-example)
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
|
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = "0.1.0.dev5"
|
__version__ = '0.0.1'
|
||||||
|
|
|
||||||
|
|
@ -26,17 +26,6 @@ classifiers = [
|
||||||
dependencies = []
|
dependencies = []
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
dev = [
|
|
||||||
"black",
|
|
||||||
"isort",
|
|
||||||
"seed-isort-config",
|
|
||||||
"flake8",
|
|
||||||
"pytest",
|
|
||||||
"pytest-cov",
|
|
||||||
"pytest-mock",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Documentation = "https://github.com/unknown/hatch-version-action-example#readme"
|
Documentation = "https://github.com/unknown/hatch-version-action-example#readme"
|
||||||
Issues = "https://github.com/unknown/hatch-version-action-example/issues"
|
Issues = "https://github.com/unknown/hatch-version-action-example/issues"
|
||||||
|
|
@ -47,27 +36,12 @@ path = "hatch_version_action_example/__about__.py"
|
||||||
|
|
||||||
[tool.hatch.envs.default]
|
[tool.hatch.envs.default]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"black",
|
|
||||||
"isort",
|
|
||||||
"seed-isort-config",
|
|
||||||
"flake8",
|
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
"pytest-mock",
|
|
||||||
]
|
]
|
||||||
[tool.hatch.envs.default.scripts]
|
[tool.hatch.envs.default.scripts]
|
||||||
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_version_action_example --cov=tests"
|
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_version_action_example --cov=tests"
|
||||||
no-cov = "cov --no-cov"
|
no-cov = "cov --no-cov"
|
||||||
lint = "flake8 hatch_version_action_example"
|
|
||||||
format = "black --check hatch_version_action_example"
|
|
||||||
sort-imports = "isort hatch_version_action_example"
|
|
||||||
test-lint = [
|
|
||||||
"lint",
|
|
||||||
"format",
|
|
||||||
"seed-isort-config",
|
|
||||||
"sort-imports",
|
|
||||||
"cov",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[tool.hatch.envs.test.matrix]]
|
[[tool.hatch.envs.test.matrix]]
|
||||||
python = ["37", "38", "39", "310", "311"]
|
python = ["37", "38", "39", "310", "311"]
|
||||||
|
|
@ -85,7 +59,3 @@ exclude_lines = [
|
||||||
"if __name__ == .__main__.:",
|
"if __name__ == .__main__.:",
|
||||||
"if TYPE_CHECKING:",
|
"if TYPE_CHECKING:",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.isort]
|
|
||||||
profile = "black"
|
|
||||||
known_third_party = []
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
|
# SPDX-FileCopyrightText: 2022-present Waylon S. Walker <waylon@waylonwalker.com>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
|
||||||
def test_me():
|
|
||||||
assert True
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
||||||
def test_me():
|
|
||||||
assert True
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue