Skip to content

Commit 65a401b

Browse files
committed
Fixing configs, adding black and bandit to the mix
1 parent 9860280 commit 65a401b

File tree

16 files changed

+629
-139
lines changed

16 files changed

+629
-139
lines changed

.bumpversion.cfg

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
[bumpversion]
2-
current_version = 0.9.0
2+
current_version = 0.9.0.alpha
33
commit = True
44
tag = True
5+
tag_name = v{new_version}
6+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<hotfix>\d+)\.(?P<state>.*)
7+
serialize = {major}.{minor}.{hotfix}.{state}
8+
9+
[bumpversion:part:state]
10+
values =
11+
alpha
12+
beta
513

614
[bumpversion:file:setup.py]
715
search = version='{current_version}'
@@ -18,3 +26,7 @@ replace = version = release = '{new_version}'
1826
[bumpversion:file:src/memwiper/__init__.py]
1927
search = __version__ = '{current_version}'
2028
replace = __version__ = '{new_version}'
29+
30+
[bumpversion:file:pyproject.toml]
31+
search = version = "{current_version}"
32+
replace= version = "{new_version}"

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E231, E266, E501, W503, F403, F401
3+
max-line-length = 79
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9

MANIFEST.in

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ include .cookiecutterrc
99
include .editorconfig
1010
include .isort.cfg
1111
include .readthedocs.yml
12-
include pytest.ini
12+
include .flake8
13+
include bandit.yml
14+
include pyproject.toml
15+
1316

1417
include AUTHORS.rst
1518
include CHANGELOG.rst
@@ -20,9 +23,9 @@ include TODO.rst
2023
include requirements.txt
2124
include requirements-dev.txt
2225

23-
include tox.ini .travis.yml appveyor.yml
26+
include tox.ini .travis.yml
2427

25-
prune __pycache__
28+
prune __pycache__
2629
prune .ropeproject
2730
prune */.ropeproject
2831

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ Overview
6161
:alt: Supported implementations
6262
:target: https://pypi.python.org/pypi/memwiper
6363

64-
6564
.. end-badges
6665
6766
Now you can overwrite with garbage your inmutable strings without breaking all.
6867

6968
* Free software: MIT license - Can I use this in a GPLed software?: Yes, see https://softwareengineering.stackexchange.com/questions/316393/what-to-do-when-using-mit-licensed-code-in-a-gpl-licensed-project for a quick overview of the matter.
7069

70+
Latest version v0.9.0.alpha
71+
7172
Installation
7273
============
7374

@@ -141,7 +142,7 @@ strings, let me show a quick ipython example::
141142
In [3]: print(s2)
142143
Out[3]: Secret Agent data
143144

144-
I delete the s1 string, but the s2 points to the same string,
145+
I delete the s1 string, but the s2 points to the same string,
145146
as you can see in the help showed there id show the memory address of
146147
the object, so s1 and s2 points to the same memory position.
147148

0 commit comments

Comments
 (0)