Skip to content

Commit

Permalink
Merge pull request #1 from lsst-sitcom/tickets/DM-40548
Browse files Browse the repository at this point in the history
DM-40548: Create repository to store testing analysis code for SITCOM
  • Loading branch information
tribeiro authored Aug 29, 2023
2 parents a321ac1 + 4ee934a commit 83e0de1
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 29 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,5 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

- name: Install
run: pip install -r <(curl https://raw.githubusercontent.com/lsst/linting/main/requirements.txt)

- name: Run linter
run: flake8
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ pytest_session.txt
.cache/
.pytest_cache
.coverage
.pre-commit-config.yaml
.flake8
.isort.cfg
.mypy.ini

# pypi
*.egg-info/
6 changes: 6 additions & 0 deletions .ts_pre_commit_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
check-yaml: true
check-xml: true
black: true
flake8: true
isort: true
mypy: true
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
https://developer.lsst.io/stack/building-single-package-docs.html
"""

from documenteer.conf.pipelinespkg import *
from documenteer.conf.pipelinespkg import * # noqa F403


project = "summit_testing_analysis"
html_theme_options["logotext"] = project
html_theme_options["logotext"] = project # noqa F405
html_title = project
html_short_title = project
86 changes: 86 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[build-system]
requires = [ "setuptools", "setuptools_scm" ]
build-backend = "setuptools.build_meta"

[project]
name = "summit-testing-analysis"
description = "Collection of data analysis for summit testing."
license = { text = "GPL" }
classifiers = [ "Programming Language :: Python :: 3" ]
urls = { documentation = "https://jira.lsstcorp.org/secure/Dashboard.jspa", repository = "https://github.com/lsst-sitcom/summit-testing-analysis" }
dynamic = [ "version" ]

[tools.setuptools]
package-data = { "" = "*.csv"}

[tool.setuptools.dynamic]
version = { attr = "setuptools_scm.get_version" }

[tool.setuptools.packages.find]
where = [ "python" ]

[tool.setuptools_scm]
write_to = "python/lsst/summit/testing/analysis/version.py"
write_to_template = """
# Generated by setuptools_scm
__all__ = ["__version__"]
__version__ = "{version}"
"""

[tool.pytest.ini_options]
asyncio_mode = "auto"

[tool.mypy]
disallow_untyped_defs = "True"
ignore_missing_imports = "True"
exclude = "version.py"

[tool.isort]
profile = "black"

[tool.ruff]
exclude = [
"__init__.py",
]
ignore = [
"N802",
"N803",
"N806",
"N812",
"N815",
"N816",
"N999",
"D107",
"D105",
"D102",
"D104",
"D100",
"D200",
"D205",
]
line-length = 110
select = [
"E", # pycodestyle
"F", # pyflakes
"N", # pep8-naming
"W", # pycodestyle
"D", # pydocstyle
"UP", # pyupgrade
]
target-version = "py311"
extend-select = [
"RUF100", # Warn about unused noqa
]


[tool.ruff.pycodestyle]
max-doc-length = 79


[tool.ruff.pydocstyle]
convention = "numpy"

[project.optional-dependencies]
dev = [
"documenteer[pipelines]",
]
5 changes: 4 additions & 1 deletion python/lsst/summit/testing/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
# 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 .version import * # Generated by sconsUtils
try:
from .version import *
except ModuleNotFoundError:
__version__ = "?"
14 changes: 0 additions & 14 deletions setup.cfg

This file was deleted.

0 comments on commit 83e0de1

Please sign in to comment.