From 0a09f4415f332b7a4abc1ad905a4766c5ae067ec Mon Sep 17 00:00:00 2001 From: Matt Craig Date: Sat, 9 Dec 2023 16:22:37 -0600 Subject: [PATCH] Drop most of the indentation in pyproject --- pyproject.toml | 185 ++++++++++++++++++++++++------------------------- 1 file changed, 92 insertions(+), 93 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 64aa95f9..ea8d6044 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,120 +1,119 @@ [build-system] - requires = ["hatchling", - "hatch-vcs"] - build-backend = "hatchling.build" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] - name = "stellarphot" - dynamic = ["version"] - description = "A package for performing stellar photometry." - readme = "README.md" - license = { file = "LICENSE.rst" } - requires-python = ">=3.10" - authors = [ - { name = "Matt Craig", email = "mattwcraig@gmail.com" }, - ] - dependencies = [ - "astropy >=5", - "astroquery", - "astrowidgets", - "bottleneck", - "ccdproc", - "ginga", - "ipyautoui >=0.5.9", - "ipyfilechooser", - "ipywidgets", - "matplotlib", - "pandas", - "photutils >=1.9", - "pydantic<2", - "pyyaml", - ] +name = "stellarphot" +dynamic = ["version"] +description = "A package for performing stellar photometry." +readme = "README.md" +license = { file = "LICENSE.rst" } +requires-python = ">=3.10" +authors = [ + { name = "Matt Craig", email = "mattwcraig@gmail.com" }, +] +dependencies = [ + "astropy >=5", + "astroquery", + "astrowidgets", + "bottleneck", + "ccdproc", + "ginga", + "ipyautoui >=0.5.9", + "ipyfilechooser", + "ipywidgets", + "matplotlib", + "pandas", + "photutils >=1.9", + "pydantic<2", + "pyyaml", +] [project.optional-dependencies] - docs = [ - "sphinx", - "sphinx-astropy", - ] - exo_fitting = [ - "batman-package", - ] - test = [ - "pytest", - "pytest-astropy", - ] +docs = [ + "sphinx", + "sphinx-astropy", +] +exo_fitting = [ + "batman-package", +] +test = [ + "pytest", + "pytest-astropy", +] [project.urls] - Homepage = "https://github.com/stellarphot/stellarphot" +Homepage = "https://github.com/stellarphot/stellarphot" [tool.hatch.version] source = "vcs" [tool.hatch.build.hooks.vcs] - version-file = "stellarphot/_version.py" +version-file = "stellarphot/_version.py" [tool.hatch.build.targets.sdist] - include = [ - "/stellarphot", - ] +include = [ + "/stellarphot", +] [tool.coverage] [tool.coverage.run] - source = ["stellarphot"] - omit = [ - "stellarphot/_astropy_init*", - "stellarphot/conftest*", - "stellarphot/setup_package*", - "stellarphot/**/tests/*", - "stellarphot/*version*", - "stellarphot/**/__init__.py" - ] + source = ["stellarphot"] + omit = [ + "stellarphot/_astropy_init*", + "stellarphot/conftest*", + "stellarphot/setup_package*", + "stellarphot/**/tests/*", + "stellarphot/*version*", + "stellarphot/**/__init__.py" + ] [tool.coverage.report] - exclude_lines = [ - # Have to re-enable the standard pragma - "pragma: no cover", - # Don't complain about packages we have installed - "except ImportError", - # Don't complain if tests don't hit assertions - "raise AssertionError", - "raise NotImplementedError", - # Don't complain about script hooks - "def main(.*):", - # Ignore branches that don't pertain to this version of Python - "pragma: py{ignore_python_version}", - ] + exclude_lines = [ + # Have to re-enable the standard pragma + "pragma: no cover", + # Don't complain about packages we have installed + "except ImportError", + # Don't complain if tests don't hit assertions + "raise AssertionError", + "raise NotImplementedError", + # Don't complain about script hooks + "def main(.*):", + # Ignore branches that don't pertain to this version of Python + "pragma: py{ignore_python_version}", + ] [tool.flake8] - # E101 - mix of tabs and spaces - # W191 - use of tabs - # W291 - trailing whitespace - # W292 - no newline at end of file - # W293 - trailing whitespace - # W391 - blank line at end of file - # E111 - 4 spaces per indentation level - # E112 - 4 spaces per indentation level - # E113 - 4 spaces per indentation level - # E901 - SyntaxError or IndentationError - # E902 - IOError - select = "E101,W191,W291,W292,W293,W391,E111,E112,E113,E901,E902" - exclude = "extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py" +# E101 - mix of tabs and spaces +# W191 - use of tabs +# W291 - trailing whitespace +# W292 - no newline at end of file +# W293 - trailing whitespace +# W391 - blank line at end of file +# E111 - 4 spaces per indentation level +# E112 - 4 spaces per indentation level +# E113 - 4 spaces per indentation level +# E901 - SyntaxError or IndentationError +# E902 - IOError +select = "E101,W191,W291,W292,W293,W391,E111,E112,E113,E901,E902" +exclude = "extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py" [tool.pycodestyle] - max-line-length = 100 - # E101 - mix of tabs and spaces - # W191 - use of tabs - # W291 - trailing whitespace - # W292 - no newline at end of file - # W293 - trailing whitespace - # W391 - blank line at end of file - # E111 - 4 spaces per indentation level - # E112 - 4 spaces per indentation level - # E113 - 4 spaces per indentation level - # E901 - SyntaxError or IndentationError - # E902 - IOError - select = "E101,W191,W291,W292,W293,W391,E111,E112,E113,E901,E902" - exclude = "extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py" +max-line-length = 100 +# E101 - mix of tabs and spaces +# W191 - use of tabs +# W291 - trailing whitespace +# W292 - no newline at end of file +# W293 - trailing whitespace +# W391 - blank line at end of file +# E111 - 4 spaces per indentation level +# E112 - 4 spaces per indentation level +# E113 - 4 spaces per indentation level +# E901 - SyntaxError or IndentationError +# E902 - IOError +select = "E101,W191,W291,W292,W293,W391,E111,E112,E113,E901,E902" +exclude = "extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py" [tool.pytest.ini_options] minversion = 7.0