Skip to content

Commit

Permalink
exclude _version.py from black-ification
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpitkin committed Jul 4, 2024
1 parent 856f173 commit a0857ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
if: runner.os == 'Linux'
run: |
./install_tempo2.sh
- name: Run lint
run: make lint
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
pip install -e .[astropy,dev]
- name: Run lint
run: make lint
- name: Test with pytest
run: make test

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ write_to = "libstempo/_version.py"
[tool.black]
line-length = 120
target_version = ['py39']
include = "\\.pyi?$"
exclude = """
include = '\\.pyi?$'
exclude = '''
(
/(
\\.eggs # exclude a few common directories in the
Expand All @@ -96,6 +96,7 @@ exclude = """
| dist
| docs
| .libstempo
| libstempo/_version\.py
)/
)
"""
'''

0 comments on commit a0857ad

Please sign in to comment.