Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.11"

- name: Setup PDM
uses: pdm-project/setup-pdm@v3
Expand All @@ -30,6 +30,8 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand Down
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
status:
project: off

flag_management:
individual_flags:
- name: build
paths:
- src/
statuses:
- type: project
# target: 100%
target: auto
threshold: 1%
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
requires = ["pdm-backend"]
build-backend = "pdm.backend"


[project]
name = "arg_init"
authors = [
Expand All @@ -15,21 +16,19 @@ classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
# "pyyaml>=6.0.1",
"python-box>=7.0.1",
]
license = {text = "MIT"}
dynamic = ["version"]

[project.urls]
Documentation = "https://srfoster65.github.io/arg_init/"
Source = "https://github.com/srfoster65/arg_init"


[tool.pdm.version]
source = "file"
path = "src/arg_init/_version.py"
# source = "scm"
# write_to = "src/arg_init/_version.py"
# tag_regex = '^(?:\D*)?(?P<version>([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$'

# write_to = "_version.py"
# write_template = "__version__ = '{}'"

[tool.pdm.dev-dependencies]
lint = [
Expand All @@ -45,6 +44,7 @@ docs = [
"pymdown-extensions>=10.3",
]


[tool.pylint.basic]
good-names = [
]
Expand All @@ -55,6 +55,7 @@ max-line-length = 120
[tool.pylint."massages-control"]
disable = []


[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=src"
Expand Down