Skip to content

Commit

Permalink
Merge pull request #2 from lincc-frameworks/issue/1/tests
Browse files Browse the repository at this point in the history
Add e2e unit test to parse anticipated output
  • Loading branch information
delucchi-cmu authored Aug 9, 2023
2 parents f760dcb + e9e45cc commit 84d0f3d
Show file tree
Hide file tree
Showing 24 changed files with 1,507 additions and 511 deletions.
5 changes: 2 additions & 3 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ author_email: [email protected]
author_name: LINCC Frameworks Team
create_example_module: false
custom_install: true
include_docs: true
include_notebooks: true
include_docs: false
mypy_type_checking: none
package_name: lf_asv_formatter
preferred_linter: black
preferred_linter: pylint
project_license: MIT
project_name: lf-asv-formatter
use_gitlfs: none
Expand Down
63 changes: 0 additions & 63 deletions .github/pull_request_template.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/build-documentation.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analyze code with linter

uses: psf/black@stable
with:
src: ./src
run: |
pylint -rn -sn --recursive=y ./src --rcfile=./src/.pylintrc
50 changes: 24 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,43 +68,41 @@ repos:
files: ^(src|tests)/


# Analyze the code style and report code that doesn't adhere.
- repo: https://github.com/psf/black
rev: 23.1.0
# Analyze the src code style and report code that doesn't adhere.
- repo: local
hooks:
- id: black
- id: pylint
name: pylint (python files in src/)
entry: pylint
language: system
types: [python]
files: ^(src|tests)/
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.10


# Make sure Sphinx can build the documentation while explicitly omitting
# notebooks from the docs, so users don't have to wait through the execution
# of each notebook or each commit. By default, these will be checked in the
# GitHub workflows.
files: ^src/
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=src/.pylintrc",
]
# Analyze the tests code style and report code that doesn't adhere.
- repo: local
hooks:
- id: sphinx-build
name: Build documentation with Sphinx
entry: sphinx-build
- id: pylint
name: pylint (python files in tests/)
entry: pylint
language: system
always_run: true
exclude_types: [file, symlink]
types: [python]
files: ^tests/
args:
[
"-M", # Run sphinx in make mode, so we can use -D flag later
# Note: -M requires next 3 args to be builder, source, output
"html", # Specify builder
"./docs", # Source directory of documents
"./_readthedocs", # Output directory for rendered documents
"-T", # Show full trace back on exception
"-E", # Don't use saved env; always read all files
"-d", # Flag for cached environment and doctrees
"./docs/_build/doctrees", # Directory
"-D", # Flag to override settings in conf.py
"exclude_patterns=notebooks/*", # Exclude our notebooks from pre-commit
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=tests/.pylintrc",
]


22 changes: 0 additions & 22 deletions .readthedocs.yml

This file was deleted.

12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# lf-asv-formatter
# ASV Formatter

[![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/latest/)

This project was automatically generated using the LINCC-Frameworks
[python-project-template](https://github.com/lincc-frameworks/python-project-template).

A repository badge was added to show that this project uses the python-project-template, however it's up to
you whether or not you'd like to display it!

For more information about the project template see the
[documentation](https://lincc-ppt.readthedocs.io/en/latest/).
Simple script to re-format the output of ASV (air-speed-velocity) benchmarking
outputs for use in github messages.
31 changes: 0 additions & 31 deletions docs/Makefile

This file was deleted.

47 changes: 0 additions & 47 deletions docs/conf.py

This file was deleted.

13 changes: 0 additions & 13 deletions docs/index.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/notebooks.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/notebooks/README.md

This file was deleted.

Loading

0 comments on commit 84d0f3d

Please sign in to comment.