@@ -41,7 +41,6 @@ sqlformat = "sqlparse.__main__:main"
4141
4242[project .optional-dependencies ]
4343dev = [
44- " hatch" ,
4544 " build" ,
4645]
4746doc = [
@@ -51,39 +50,6 @@ doc = [
5150[tool .hatch .version ]
5251path = " sqlparse/__init__.py"
5352
54- [tool .hatch .envs .default ]
55- dependencies = [
56- " coverage[toml]>=6.5" ,
57- " pytest" ,
58- # switch to ruff, but fix problems first
59- # but check defaults!
60- # https://hatch.pypa.io/1.9/config/static-analysis/#default-settings
61- " flake8" ,
62- ]
63- [tool .hatch .envs .default .scripts ]
64- unittest = " pytest {args:tests}"
65- test-cov = " coverage run -m pytest {args:tests}"
66- cov-report = [
67- " - coverage combine" ,
68- " coverage report" ,
69- ]
70- cov = [
71- " test-cov" ,
72- " cov-report" ,
73- ]
74- check = " flake8 sqlparse/"
75- test = [" check" , " unittest" ]
76-
77- [[tool .hatch .envs .all .matrix ]]
78- python = [" 3.8" , " 3.9" , " 3.10" , " 3.11" , " 3.12" ]
79-
80- [tool .hatch .envs .types ]
81- dependencies = [
82- " mypy>=1.0.0" ,
83- ]
84- [tool .hatch .envs .types .scripts ]
85- check = " mypy --install-types --non-interactive {args:sqlparse tests}"
86-
8753[tool .coverage .run ]
8854source_pkgs = [" sqlparse" , " tests" ]
8955branch = true
@@ -102,3 +68,62 @@ exclude_lines = [
10268 " if __name__ == .__main__.:" ,
10369 " if TYPE_CHECKING:" ,
10470]
71+
72+ [tool .pixi .workspace ]
73+ channels = [" conda-forge" ]
74+ platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" ]
75+
76+ [tool .pixi .pypi-dependencies ]
77+ sqlparse = { path = " ." , editable = true }
78+
79+ [tool .pixi .feature .test .dependencies ]
80+ pytest = " *"
81+ coverage = " *"
82+ flake8 = " *"
83+
84+ [tool .pixi .feature .test .pypi-dependencies ]
85+ sqlparse = { path = " ." , editable = true }
86+
87+ [tool .pixi .feature .py38 .dependencies ]
88+ python = " 3.8.*"
89+
90+ [tool .pixi .feature .py39 .dependencies ]
91+ python = " 3.9.*"
92+
93+ [tool .pixi .feature .py310 .dependencies ]
94+ python = " 3.10.*"
95+
96+ [tool .pixi .feature .py311 .dependencies ]
97+ python = " 3.11.*"
98+
99+ [tool .pixi .feature .py312 .dependencies ]
100+ python = " 3.12.*"
101+
102+ [tool .pixi .feature .py313 .dependencies ]
103+ python = " 3.13.*"
104+
105+
106+ [tool .pixi .environments ]
107+ default = { solve-group = " default" }
108+ dev = { features = [" dev" ], solve-group = " default" }
109+ doc = { features = [" doc" ], solve-group = " default" }
110+ py38 = { features = [" test" , " py38" ], solve-group = " py38" }
111+ py39 = { features = [" test" , " py39" ], solve-group = " py39" }
112+ py310 = { features = [" test" , " py310" ], solve-group = " py310" }
113+ py311 = { features = [" test" , " py311" ], solve-group = " py311" }
114+ py312 = { features = [" test" , " py312" ], solve-group = " py312" }
115+ py313 = { features = [" test" , " py313" ], solve-group = " py313" }
116+
117+ [tool .pixi .tasks ]
118+ test-py38 = " pixi run -e py38 pytest tests/"
119+ test-py39 = " pixi run -e py39 pytest tests/"
120+ test-py310 = " pixi run -e py310 pytest tests/"
121+ test-py311 = " pixi run -e py311 pytest tests/"
122+ test-py312 = " pixi run -e py312 pytest tests/"
123+ test-py313 = " pixi run -e py313 pytest tests/"
124+ test-all = { depends-on = [" test-py38" , " test-py39" , " test-py310" , " test-py311" , " test-py312" , " test-py313" ] }
125+ lint = " pixi run -e py311 flake8 sqlparse/"
126+ coverage = " coverage run -m pytest tests/"
127+ coverage-combine = " coverage combine"
128+ coverage-report = " coverage report"
129+ coverage-xml = " coverage xml"
0 commit comments