Skip to content

Commit

Permalink
gitignore .pdm-python; pre-commit run --all
Browse files Browse the repository at this point in the history
  • Loading branch information
znd4 committed Apr 16, 2023
1 parent ee1ae91 commit ec4702e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ python_package_import_name: pdm_dotenv
python_package_requires_python: '>=3.10'
repository_name: pdm-dotenv
repository_namespace: zdog234

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ __pypackages__/

.vscode/
.idea/
.pdm-python
1 change: 0 additions & 1 deletion .pdm-python

This file was deleted.

1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.

8 changes: 2 additions & 6 deletions tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"])

Expand Down

0 comments on commit ec4702e

Please sign in to comment.