Skip to content

Commit

Permalink
Merge pull request #7 from lsst-ts/tickets/DM-47110
Browse files Browse the repository at this point in the history
Add T&S pre-commit configs to donut_viz repo
  • Loading branch information
jbkalmbach authored Oct 24, 2024
2 parents 483b988 + f513af6 commit ee494bc
Show file tree
Hide file tree
Showing 14 changed files with 532 additions and 400 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: lint

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install
run: |
$CONDA/bin/conda install python=3.11 -y
$CONDA/bin/conda install -c lsstts ts-pre-commit-config -y
$CONDA/bin/conda install -c conda-forge pre-commit -y
$CONDA/bin/generate_pre_commit_conf --skip-pre-commit-install
- name: Run pre commit checks
run: $CONDA/bin/pre-commit run --all
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.pre-commit-config.yaml
.flake8
.isort.cfg
.ruff.toml
10 changes: 10 additions & 0 deletions .ts_pre_commit_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
black: true
check-xml: true
check-yaml: true
clang-format: false
flake8: true
format-xmllint: false
isort: true
mypy: false
ruff: true
towncrier: false
1 change: 1 addition & 0 deletions python/lsst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import pkgutil

__path__ = pkgutil.extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions python/lsst/donut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import pkgutil

__path__ = pkgutil.extend_path(__path__, __name__)
4 changes: 2 additions & 2 deletions python/lsst/donut/viz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from .aggregateVisit import *
from .plotAOSTask import *
from .aggregate_visit import *
from .plot_aos_task import *
Loading

0 comments on commit ee494bc

Please sign in to comment.