diff --git a/.copier-answers.yml b/.copier-answers.yml index 6eb5d1f..75249d5 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -16,4 +16,3 @@ python_package_import_name: pdm_dotenv python_package_requires_python: '>=3.10' repository_name: pdm-dotenv repository_namespace: zdog234 - diff --git a/.gitignore b/.gitignore index b6182e4..3acbca0 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ __pypackages__/ .vscode/ .idea/ +.pdm-python diff --git a/.pdm-python b/.pdm-python deleted file mode 100644 index 71abcaa..0000000 --- a/.pdm-python +++ /dev/null @@ -1 +0,0 @@ -/home/zanedufour/Projects/pdm-dotenv/.venv/bin/python \ No newline at end of file diff --git a/LICENSE b/LICENSE index ba711d4..b3323bf 100644 --- a/LICENSE +++ b/LICENSE @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/tasks/release.py b/tasks/release.py index 7ed8270..1495d36 100644 --- a/tasks/release.py +++ b/tasks/release.py @@ -25,9 +25,7 @@ def bump_version(pre=None, major=False, minor=False, patch=True): current_version = parver.Version.parse(get_current_version()) if not pre: version_idx = [major, minor, patch].index(True) - version = current_version.bump_release(index=version_idx).replace( - pre=None, post=None - ) + version = current_version.bump_release(index=version_idx).replace(pre=None, post=None) else: version = current_version.bump_pre(pre) version = version.replace(local=None, dev=None) @@ -44,9 +42,7 @@ def release(dry_run=False, commit=True, pre=None, major=False, minor=False, patc subprocess.check_call(["git", "add", "."]) if commit: subprocess.check_call(["git", "commit", "-m", f"Release {new_version}"]) - subprocess.check_call( - ["git", "tag", "-a", new_version, "-m", f"v{new_version}"] - ) + subprocess.check_call(["git", "tag", "-a", new_version, "-m", f"v{new_version}"]) subprocess.check_call(["git", "push"]) subprocess.check_call(["git", "push", "--tags"])