summaryrefslogtreecommitdiff
path: root/tests/test_format.py
Commit message (Collapse)AuthorAgeFilesLines
* Preserve line breaks when removing comments (fixes #484).Andi Albrecht2020-09-131-7/+7
|
* Remove support for end-of-life PythonsJon Dufresne2020-08-311-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only.
* [filters] Stripping parenthesis whitespaceJohn Bodley2019-03-101-3/+3
|
* Fix formatting on INSERT (fixes #329)Fredy Wijaya2019-03-101-0/+43
| | | | | | | | | | | | | | | | | | | | This patch fixes the formatting on INSERT by creating a new instance of sql.Values to group all the values. SQL: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') Before: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') After: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz')
* Merge branch 'issue_425' of https://github.com/fredyw/sqlparse into ↵Andreas Albrecht2019-03-101-0/+13
|\ | | | | | | fredyw-issue_425
| * Fix issue with strip_comments causing a syntax error (fixes #425)Fredy Wijaya2018-11-211-0/+13
| |
* | Code cleanup.Andreas Albrecht2019-03-101-2/+2
| |
* | Fix reindent issue for parenthesis (fixes issue 427)Fredy Wijaya2018-12-031-0/+5
|/
* Deal with long function paramsSoloman Weng2018-03-261-0/+12
|
* Better formatting when using comma-first notation (issue141).Andi Albrecht2016-09-171-4/+4
|
* Add formatter option for comma first notation (fixes #141).Andi Albrecht2016-09-141-0/+15
|
* Split test/asserts that are weakly relatedVictor Uriarte2016-06-201-8/+22
|
* Remove some test classes and clean-upVictor Uriarte2016-06-201-159/+173
|
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-201-46/+48
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-201-250/+222
|
* Add multi-statement output testsVictor Uriarte2016-06-111-0/+16
|
* Add right marging and options testsVictor Uriarte2016-06-111-0/+14
| | | | | | | Make pytest alert of any passing tests marked to fail Idea is to include tests for un-fixed bugs. If they are passing we want to know
* Format `pr` to pass flake8 and update functions usedVictor Uriarte2016-06-061-14/+20
|
* Add filter `Spaces around Operators`Adam Greenhall2016-06-061-0/+34
|
* Fix Case statements AlignmentAdam Greenhall2016-06-061-0/+30
|
* Fix/Test JoinsAdam Greenhall2016-06-061-0/+26
|
* Fix/Test Limit statementsAdam Greenhall2016-06-061-0/+2
|
* Test: Window functionsAdam Greenhall2016-06-061-0/+16
|
* Fix/Test `Group-By`Adam Greenhall2016-06-061-0/+54
|
* Test: Case statementsaneeshk2016-06-061-0/+28
|
* Start work on Aligned-reindentAdam Greenhall2016-06-061-0/+32
|
* Add --wrap_after option for wrapping identifier lists.Dennis Taylor2016-06-021-0/+12
|
* Code cleanup in tests.Andi Albrecht2015-10-261-3/+6
|
* Fix of problem with multiline treated as stackable while /* /* */ is one ↵JacekPliszka2015-02-121-0/+3
| | | | comment, not two stacked
* Improve formatting of HAVING statements.Andi Albrecht2014-12-211-0/+15
|
* Fix SerializerUnicode to split unquoted newlinesMichael Schuller2014-03-101-0/+17
| | | | | | | This provides a fix to issue #131. The `split_unquoted_newlines()` function added to the utils module handles the splitting of the string by performing a simple iteration of the string passed in and splitting on unquoted CR, LF, or CR+LFs as they are found.
* Add option to truncate long string literals.Andi Albrecht2013-07-091-0/+26
|
* Fixed lack of a new line before function in test_format.py.Yago Riveiro2013-04-261-0/+1
|
* Added test to STRAIGHT_JOIN token.Yago Riveiro2013-04-261-1/+5
|
* Add order criterion to identifier in ORDER BY clause (fixes #89).Andi Albrecht2013-04-051-0/+11
|
* PEP8'ified to code a bit.Andi Albrecht2012-11-121-1/+1
|
* Move SQLParseError to proper location and start deprecation of ↵Andi Albrecht2012-11-031-9/+10
| | | | sqlparse.SQLParseError.
* Put common code from Python and PHP output filters in OutputFilterJesús Leganés Combarro "Piranna"2012-04-281-2/+2
|
* Preserve whitespace after subgroups.Andi Albrecht2012-04-191-0/+6
|
* Choose first token during identifier grouping when both names/symbols and ↵Andi Albrecht2011-09-271-1/+6
| | | | functions are found (fixes issue45).
* Releax keyword detection, when keywords are used as function names (fixes ↵Andi Albrecht2011-07-241-0/+7
| | | | issue36).
* Fix formatting issue with extended CASE statements.Andi Albrecht2011-02-281-0/+8
|
* Ignore identifiers in double-quotes when changing identifier case (fixes ↵Andi Albrecht2010-11-211-1/+1
| | | | issue21).
* Ignore AND after BETWEEN when reindenting statements (fixes issue14).Andi Albrecht2010-11-211-0/+8
|
* Fix test case for CASE reindent.Andreas Albrecht2010-01-111-3/+4
|
* Add formatting test case for complex identifier lists.Andi Albrecht2009-07-121-0/+10
|
* * Python and PHP output filter now add a trailing whitespace.Andi Albrecht2009-05-061-0/+45
| | | | * More test coverage.
* Improved check for duplicated newlines (targets issue3).Andi Albrecht2009-05-051-0/+5
|
* Added unittest for issue3.Andi Albrecht2009-05-051-2/+15
|
* Handle wildcards in identifiers.Andi Albrecht2009-04-241-0/+5
|