Commit Graph
47 Commits
Author SHA1 Message Date
David-Wobrock 8adffed958 Call venv linter in tests 2018-01-07 17:34:08 +01:00
David-Wobrock d1d296b826 Add manifest for tox tests on travis 2018-01-07 12:44:59 +01:00
David-Wobrock 55e1e13ad5 Update copyright year to 2018 2018-01-07 12:15:23 +01:00
David-Wobrock ad3b17229c Add tox to test different python and django versions 2018-01-07 12:09:07 +01:00
David Wobrock 71b29d9694 Bump version to 0.0.3 2017-12-01 14:55:36 +01:00
David Wobrock dce73390fb Bump version to 0.0.2 and add missing LICENSE header in some files 2017-12-01 14:38:31 +01:00
David Wobrock 15b2fbb9e1 Add tests from command line directly
* Test options
* Syntax error fix
* Ajust the commit id for a test (was wrongly set)
2017-11-30 17:44:12 +01:00
David-Wobrock fc8f405801 Fix tests, flake8 and update README 2017-11-30 00:09:18 +01:00
David Wobrock 50ce4f4cad Large code refactoring
* Add tests
* Remove git dependency (only needed when a git identifier is specified)
2017-11-29 23:57:23 +01:00
David Wobrock b8ca768a15 Remove pycodestyle because flake8 already includes it 2017-11-24 15:53:36 +01:00
David-Wobrock 844fbc3c1a Add pycodestyle and flake8 tests to Travis
Refactor style issues for pycodestyle tests to pass
2017-11-22 17:10:01 +01:00
David-Wobrock 174bb19319 Adapt code to python3.4 and add it to travis
Added to travis explicitly python 2.7, 3.4, 3.5, 3.6
2017-11-22 17:03:48 +01:00
Kevin Peters 7143baedc7 docs(readme): fix badge of pypi version 2017-11-21 18:44:36 +01:00
Kevin Peters 09b45dcfe4 docs(readme): add right links to badges 2017-11-21 18:41:41 +01:00
Kevin Peters 2277b5d7fe docs(readme): improve readme by adding badges and triggering the first build in travis to get the badge 2017-11-21 18:39:43 +01:00
David Wobrock c07aeea780 Remove from test git folders all hook .sample files 2017-11-21 15:50:47 +01:00
David-Wobrock 8f01e1e99d Add basic travis.yml and refactor some tests 2017-11-20 23:11:33 +01:00
David Wobrock f66867611a Merge pull request #5 from David-Wobrock/test-structure-refactoring
Test and structure refactoring

Approved by @jkhlr
2017-11-20 22:09:02 +01:00
David Wobrock 767ce8c994 Fix typo and clean up todo comments in setup.py 2017-11-16 16:38:04 +01:00
David-Wobrock 6f84056aeb Change git fixtures, do not use submodule or subtree
Just rename git folder when testing and delete them at the end
2017-11-01 15:28:17 +01:00
David-Wobrock c5fc3ae896 Add entry point for console script in setup.py 2017-10-31 17:24:14 +01:00
David-Wobrock 1cd36825c1 Start large refactoring of tests and project structure
* Put tests in tests/ diretory
* Write functional tests
* Create setup.py
* Put sources into django_migration_linter folder (for future PyPi publishing)
2017-10-30 23:31:13 +01:00
david_wobrock 6b1bba6326 PEP8 2017-09-04 17:13:32 +02:00
david_wobrock e00c18fee3 Add detection when a DEFAULT is added to a erroneous NOT NULL column 2017-09-04 16:53:11 +02:00
david_wobrock e29f2abdb1 Update readme 2017-08-30 18:29:18 +02:00
david_wobrock dfbb130e42 Add output on git diff when failing & -v 2017-07-06 17:05:51 +02:00
david_wobrock de1928364d Exclude __init__ files from linting 2017-07-05 16:36:00 +02:00
david_wobrock 8af5bdb252 Not null constraint only applies when not in a Create Table statement 2017-06-22 16:59:58 +02:00
david_wobrock 63b564d47d Add option to ignore specific migrations by name) 2017-06-07 12:52:29 +02:00
david_wobrock 6ecc0eb941 Add --database arg to specify against which database to generate the sql 2017-05-26 11:34:18 +02:00
david_wobrock a6c6e2d45a Add verbosity prints 2017-05-26 10:51:59 +02:00
david_wobrock 271293919a Add verbose output on number of sql migrations 2017-05-26 10:37:46 +02:00
david_wobrock cc5009109d Add basic a verbosity arg 2017-05-26 10:20:16 +02:00
Kevin Peters 00e778202c Update LICENSE
Delete unnecessary part of license
2017-04-07 10:47:17 +02:00
david_wobrock 26a82ee9ac Fix typo in license header 2017-04-07 10:09:49 +02:00
Felix Bauer 5ebd60af00 Add boilerplate 2017-04-06 20:01:48 +02:00
Felix Bauer d9cf04c04a Create LICENSE 2017-04-06 16:20:47 +02:00
david_wobrock b8535dedd4 Return consistent error code (0 when ok, else 1) 2017-04-06 15:48:28 +02:00
david_wobrock 47ca788d5b Add test to verify migrations are not renaming columns or tables (mysql & postgre) 2017-04-06 15:28:05 +02:00
david_wobrock 3b7d567d72 Rename to linter 2017-04-05 14:41:44 +02:00
david_wobrock 69cf2fe7b5 Add possibility to only test a certain apps or exclude some 2017-04-05 14:41:41 +02:00
david_wobrock 5cbd22f6da Add option to ignore migrations containing a certain string 2017-04-05 14:41:39 +02:00
david_wobrock 79e2ef054d Use argparse for command line & catch wrong git id 2017-04-05 14:41:36 +02:00
david_wobrock f61de0b229 Better usage when wrongly executing 2017-04-05 14:41:32 +02:00
david_wobrock ec1eaa67c9 Add README 2017-04-05 14:41:29 +02:00
david_wobrock a91ff05b6e Add gitignore 2017-04-05 14:41:24 +02:00
david_wobrock 870b9a7a26 Very first version of the migration checker and its tests 2017-04-01 20:18:56 +02:00