├── .bumpversion.cfg ├── .gitignore ├── .travis.yml ├── LICENSE ├── MANIFEST.in ├── README.rst ├── docs ├── .gitignore ├── Makefile ├── changelog.rst ├── conf.py └── index.rst ├── format_sql ├── __init__.py ├── main.py ├── parser.py ├── shortcuts.py ├── styler.py ├── tokenizer.py └── util.py ├── requirements ├── devel.txt ├── package.txt └── testing.txt ├── setup.cfg ├── setup.py └── tests ├── __init__.py ├── conftest.py ├── data ├── test_00 │ ├── one.sql │ ├── sub_dir │ │ ├── five.py │ │ └── four.sql │ ├── three.py │ └── two.sql ├── test_01 │ ├── test_00.sql │ └── test_01.sql ├── test_02 │ ├── test_00.py │ ├── test_00_expected.py │ ├── test_01.py │ ├── test_01_expected.py │ ├── test_02.py │ ├── test_02_expected.py │ ├── test_03.py │ ├── test_03_expected.py │ ├── test_04.py │ └── test_04_expected.py ├── test_03 │ ├── after.sql │ └── before.sql └── test_04 │ ├── after.py │ └── before.py ├── test_main.py ├── test_parser.py ├── test_shortcuts.py ├── test_styler.py └── test_tokenizer.py /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | .coverage 3 | 4 | build/ 5 | dist/ 6 | format_sql.egg-info/ 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/README.rst -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | doctrees/ 2 | html/ 3 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/changelog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/docs/changelog.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/docs/index.rst -------------------------------------------------------------------------------- /format_sql/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/__init__.py -------------------------------------------------------------------------------- /format_sql/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/main.py -------------------------------------------------------------------------------- /format_sql/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/parser.py -------------------------------------------------------------------------------- /format_sql/shortcuts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/shortcuts.py -------------------------------------------------------------------------------- /format_sql/styler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/styler.py -------------------------------------------------------------------------------- /format_sql/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/tokenizer.py -------------------------------------------------------------------------------- /format_sql/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/format_sql/util.py -------------------------------------------------------------------------------- /requirements/devel.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/requirements/devel.txt -------------------------------------------------------------------------------- /requirements/package.txt: -------------------------------------------------------------------------------- 1 | attrs 2 | -------------------------------------------------------------------------------- /requirements/testing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/requirements/testing.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [wheel] 2 | universal = 1 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/data/test_00/one.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/test_00/sub_dir/five.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/test_00/sub_dir/four.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/test_00/three.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/test_00/two.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/test_01/test_00.sql: -------------------------------------------------------------------------------- 1 | select x from k 2 | -------------------------------------------------------------------------------- /tests/data/test_01/test_01.sql: -------------------------------------------------------------------------------- 1 | select x from k; 2 | -------------------------------------------------------------------------------- /tests/data/test_02/test_00.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_00.py -------------------------------------------------------------------------------- /tests/data/test_02/test_00_expected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_00_expected.py -------------------------------------------------------------------------------- /tests/data/test_02/test_01.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_01.py -------------------------------------------------------------------------------- /tests/data/test_02/test_01_expected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_01_expected.py -------------------------------------------------------------------------------- /tests/data/test_02/test_02.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_02.py -------------------------------------------------------------------------------- /tests/data/test_02/test_02_expected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_02_expected.py -------------------------------------------------------------------------------- /tests/data/test_02/test_03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_03.py -------------------------------------------------------------------------------- /tests/data/test_02/test_03_expected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_03_expected.py -------------------------------------------------------------------------------- /tests/data/test_02/test_04.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_04.py -------------------------------------------------------------------------------- /tests/data/test_02/test_04_expected.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_02/test_04_expected.py -------------------------------------------------------------------------------- /tests/data/test_03/after.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_03/after.sql -------------------------------------------------------------------------------- /tests/data/test_03/before.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_03/before.sql -------------------------------------------------------------------------------- /tests/data/test_04/after.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_04/after.py -------------------------------------------------------------------------------- /tests/data/test_04/before.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/data/test_04/before.py -------------------------------------------------------------------------------- /tests/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/test_main.py -------------------------------------------------------------------------------- /tests/test_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/test_parser.py -------------------------------------------------------------------------------- /tests/test_shortcuts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/test_shortcuts.py -------------------------------------------------------------------------------- /tests/test_styler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/test_styler.py -------------------------------------------------------------------------------- /tests/test_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paetzke/format-sql/HEAD/tests/test_tokenizer.py --------------------------------------------------------------------------------