From 8eedf67a9d55fe6938b7cd86cbd0ba5c3e77d4ee Mon Sep 17 00:00:00 2001 From: Kelvin Jayanoris Date: Fri, 26 Jun 2020 13:13:42 +0300 Subject: [PATCH 1/3] Add mypy test --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index f2e27e7..4aa9555 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,12 @@ commands = pip install -r requirements/dev.txt pylint --rcfile={toxinidir}/.pylintrc {toxinidir}/small_small_hr +[testenv:mypy] +basepython = python3.6 +commands = + pip install -r requirements/dev.txt + mypy -m small_small_hr + [testenv] deps = coverage From e8f865f9dc5a37273ab60d59ca1178eefe571241 Mon Sep 17 00:00:00 2001 From: Kelvin Jayanoris Date: Fri, 26 Jun 2020 14:09:25 +0300 Subject: [PATCH 2/3] Add migration --- .../migrations/0010_auto_20200626_1313.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 small_small_hr/migrations/0010_auto_20200626_1313.py diff --git a/small_small_hr/migrations/0010_auto_20200626_1313.py b/small_small_hr/migrations/0010_auto_20200626_1313.py new file mode 100644 index 0000000..3bae3c8 --- /dev/null +++ b/small_small_hr/migrations/0010_auto_20200626_1313.py @@ -0,0 +1,28 @@ +# Generated by Django 3.0.7 on 2020-06-26 10:13 +# pylint: disable=invalid-name,missing-module-docstring,missing-class-docstring +import django.db.models.deletion +from django.db import migrations + +import mptt.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ("small_small_hr", "0009_auto_20200607_2244"), + ] + + operations = [ + migrations.AlterField( + model_name="staffprofile", + name="supervisor", + field=mptt.fields.TreeForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="children", + to="small_small_hr.StaffProfile", + verbose_name="Manager", + ), + ), + ] From 28ee44469e79f8bf890507f942c2da67fbe31dc7 Mon Sep 17 00:00:00 2001 From: Kelvin Jayanoris Date: Fri, 26 Jun 2020 14:09:45 +0300 Subject: [PATCH 3/3] =?UTF-8?q?=E2=86=91=20bump=20to=20version=200.2.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- small_small_hr/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/small_small_hr/__init__.py b/small_small_hr/__init__.py index 1d0da64..aff864e 100644 --- a/small_small_hr/__init__.py +++ b/small_small_hr/__init__.py @@ -1,5 +1,5 @@ """Main init file for small_small_hr.""" -VERSION = (0, 2, 0) +VERSION = (0, 2, 1) __version__ = ".".join(str(v) for v in VERSION) # pylint: disable=invalid-name default_app_config = "small_small_hr.apps.SmallSmallHrConfig" # noqa