Skip to content

Commit

Permalink
Add black as a test requirement and set up rules
Browse files Browse the repository at this point in the history
exclude extern files from black
  • Loading branch information
mwcraig committed Aug 11, 2024
1 parent e6be6a7 commit becc645
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docs = [
"sphinx-astropy",
]
test = [
"black",
"memory_profiler",
"pytest-astropy>=0.10.0",
]
Expand All @@ -48,6 +49,19 @@ include = [
"/ccdproc",
]

[tool.black]
line-length = 88
target-version = ['py310', 'py311']
include = '\.pyi?$|\.ipynb$'
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
^/ccdproc/extern
)
'''

[tool.coverage]
[tool.coverage.run]
source = ["ccdproc"]
Expand Down

0 comments on commit becc645

Please sign in to comment.