Skip to content

Commit

Permalink
Drop most of the indentation in pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Dec 9, 2023
1 parent cc48fa8 commit 0a09f44
Showing 1 changed file with 92 additions and 93 deletions.
185 changes: 92 additions & 93 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" },
]
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 = "[email protected]" },
]
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
Expand Down

0 comments on commit 0a09f44

Please sign in to comment.