Skip to content

Commit

Permalink
use bump-my-version instead of bumpversion, update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lociii committed Feb 20, 2025
1 parent e1ebde2 commit a102ddc
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ output/*/index.html

# Sphinx
docs/_build

# OS
.bash_history
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ LOGGING['loggers']['django_scrubber'] = {

## Making a new release

[bumpversion](https://github.com/peritus/bumpversion) is used to manage releases.
[bump-my-version](https://github.com/callowayproject/bump-my-version) is used to manage releases.

Add your changes to the [CHANGELOG](./CHANGELOG.md) and run `bumpversion <major|minor|patch>`, then push (including
tags)
Add your changes to the [CHANGELOG](./CHANGELOG.md) and run `bump-my-version bump <major|minor|patch>`,
then push (including tags)
63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[tool.ruff]
exclude = [
".cache",
".git",
"__pycache",
"docs",
"migrations",
"rh_django_shared",
"src",
]
line-length = 119

[tool.ruff.lint]
dummy-variable-rgx = "_|dummy"
# See https://docs.astral.sh/ruff/rules/ for all supported rules
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle
"ERA", # eradicate
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # pylint
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]

[tool.ruff.lint.pycodestyle]
max-line-length = 119

[tool.ruff.lint.mccabe]
max-complexity = 16

[tool.bumpversion]
current_version = "3.0.0"
tag = true
commit = true

[[tool.bumpversion.files]]
filename = "django_scrubber/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
coverage==6.5.0
coveralls==3.3.1
factory_boy==3.3.0
faker==26.0.0
flake8>=7.1.0
mock==5.1.0
bump-my-version==0.32.1
coverage==7.6.12
coveralls==4.0.1
factory_boy==3.3.3
faker==36.1.1

0 comments on commit a102ddc

Please sign in to comment.