Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
352 changes: 176 additions & 176 deletions .calcipy_packaging.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Answer file maintained by Copier for: https://github.com/KyleKing/calcipy_template
# DO NOT MODIFY THIS FILE. Edit by re-running copier and changing responses to the questions
# Check into version control.
_commit: 1.2.5
_commit: 1.5.0
_src_path: gh:KyleKing/calcipy_template
author_email: [email protected]
author_name: Kyle King
Expand All @@ -13,13 +13,14 @@ development_branch: main
doc_dir: docs
extends_calcipy: false
include_adrs: false
install_extras: null
install_extras: ''
minimum_python: 3.8.12
minimum_python_short: '3.8'
package_name_py: tail_jsonl
project_description: Pretty Print Tailed JSONL Logs
project_name: tail-jsonl
repository_namespace: kyleking
repository_provider: https://github.com
repository_source_url: https://github.com/kyleking/tail-jsonl/blob/main
repository_url: https://github.com/kyleking/tail-jsonl

3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[flake8]
# Explanation and Notes on Flake8 Ignore Rules. Also see: https://www.flake8rules.com/
# E501 - defer line length to other tools
# PIE786 - Use precise exception handlers
# W503 - Python 3 standard is a line break BEFORE binary operator, so ignore W503. Enforce W504
ignore = E501,W503
ignore = E501,PIE786,W503
max-function-length = 55
max-line-length = 120
min-python-version = 3.8
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
os:
default: ubuntu-22.04
poetry-version:
default: 1.3.2
default: 1.4.2
python-version:
required: true

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ on: # yamllint disable-line rule:truthy
paths:
- tail_jsonl/**
- tests/**
- poetry.lock
- pyproject.toml

env:
COLUMNS: 120

jobs:
lint:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -60,5 +64,7 @@ jobs:
- name: Run typecheck
run: ./run types.mypy

# TODO: Resolve why the virtual environment isn't found
# - uses: jakebailey/pyright-action@v1
# Based on: https://github.com/jakebailey/pyright-action/issues/10#issuecomment-1455220629
- name: Add Poetry Python to Path
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- uses: jakebailey/pyright-action@v1
3 changes: 3 additions & 0 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ permissions:
# Repository contents, commits, branches, downloads, releases, and merges.
contents: write

env:
COLUMNS: 120

jobs:
docs:
runs-on: ${{ matrix.os }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/upgrade-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ permissions:
# Repository contents, commits, branches, downloads, releases, and merges.
contents: write

env:
COLUMNS: 120

jobs:
upgrade:
name: Upgrade & Open Pull Request
Expand All @@ -32,11 +35,14 @@ jobs:
- name: Upgrade Python dependencies
run: poetry update

- name: Upgrade pre-commit dependencies
run: pip install pre-commit && pre-commit autoupdate

# Creates a PR against the checked-out branch
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5
with:
title: "build: automated dependency upgrades"
body: "Full log: https://github.com/${{ github.repository }}/actions/runs/${{github.run_id }}"
body: "Full log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
branch: auto-dependency-upgrades
delete-branch: true
67 changes: 50 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ----------------------------------------------------------------------------------------------------------------------
# General Python Ignore Patterns from Github and https://www.gitignore.io/api/python
# Created by https://www.toptal.com/developers/gitignore/api/python
# Edit at https://www.toptal.com/developers/gitignore?templates=python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -23,7 +24,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -53,6 +53,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -75,6 +76,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -85,7 +87,9 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -94,7 +98,22 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
Expand All @@ -120,11 +139,6 @@ venv.bak/
# Rope project settings
.ropeproject

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# mkdocs documentation
/site

Expand All @@ -136,11 +150,32 @@ dmypy.json
# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# 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/

### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml

# ruff
.ruff_cache/

# End of https://www.toptal.com/developers/gitignore/api/python

# ----------------------------------------------------------------------------------------------------------------------
# Common Rules

# General
.r*
.vscode/*
*.csv
*.doc*
Expand All @@ -167,8 +202,9 @@ dmypy.json
setup.py

# Coverage (for Pytest)
**/coverage*
**/cov_html/
.cover/*
coverage*
cov_html/
coverage.json

# Other Custom Pytest
Expand All @@ -177,11 +213,8 @@ coverage.json
# Static Type Checkers
.pytype/*

# Ignore DOIT cache files
**/.doit.*

# Ignore testmon cache files
**/.testmondata
.testmondata

# Built Outputs
/releases/
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
args: [--fix=auto]
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.0
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
Expand All @@ -58,15 +58,15 @@ repos:
- id: shellcheck
args: [--severity=warning]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.0-alpha.6
hooks:
- id: prettier
additional_dependencies:
- prettier-plugin-sh
exclude: \.copier-answers\.yml|.*/cassettes/.*\.yaml|tests/.*assert-cache.*/.+\.json
types: [html, javascript, shell, yaml]
- repo: https://github.com/pappasam/toml-sort
rev: v0.22.3
rev: v0.23.0
hooks:
- id: toml-sort-fix
args: [--in-place, --all, --trailing-comma-inline-array]
Expand All @@ -79,7 +79,7 @@ repos:
args: [--never]
files: tail_jsonl/.*\.py
- repo: https://github.com/KyleKing/calcipy
rev: 1.0.0rc7
rev: 1.2.2
hooks:
- id: copier-forbidden-files
- id: lint-fix
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ We follow the [Contributor Covenant Code of Conduct][contributor-covenant].

### Open Source Status

We try to reasonably meet most aspects of the "OpenSSF scorecard" from [Open Source Insights](https://deps.dev/pypi/tail_jsonl)
We try to reasonably meet most aspects of the "OpenSSF scorecard" from [Open Source Insights](https://deps.dev/pypi/tail-jsonl)

## Responsible Disclosure

Expand All @@ -75,9 +75,9 @@ If you have any security issue to report, please contact the project maintainers

[LICENSE]

[changelog]: ./docs/CHANGELOG.md
[code_tag_summary]: ./docs/CODE_TAG_SUMMARY.md
[changelog]: https://tail-jsonl.kyleking.me/docs/CHANGELOG
[code_tag_summary]: https://tail-jsonl.kyleking.me/docs/CODE_TAG_SUMMARY
[contributor-covenant]: https://www.contributor-covenant.org
[developer_guide]: ./docs/DEVELOPER_GUIDE.md
[license]: https://github.com/kyleking/tail-jsonl/LICENSE
[style_guide]: ./docs/STYLE_GUIDE.md
[developer_guide]: https://tail-jsonl.kyleking.me/docs/DEVELOPER_GUIDE
[license]: https://github.com/kyleking/tail-jsonl/blob/main/LICENSE
[style_guide]: https://tail-jsonl.kyleking.me/docs/STYLE_GUIDE
8 changes: 8 additions & 0 deletions docs/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Unreleased

## 1.2.3 (2023-03-11)

### Fix

- remove the trailing new line and formatting on raw text

## 1.2.2 (2023-02-25)

### Fix

- ensure keys are unique without losing any arguments
Expand Down
11 changes: 5 additions & 6 deletions docs/docs/CODE_TAG_SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Collected Code Tags

| Type | Comment | Last Edit | Source File |
|---------|------------------------------------------------------------------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| TODO | Resolve why the virtual environment isn't found | 2023-02-24 | [.github/workflows/ci_pipeline.yml:63](https://github.com/KyleKing/tail-jsonl/blame/e7c201459d60f1a7f01b3bbac9ddd87f5b91b1b4/.github/workflows/ci_pipeline.yml#L63) |
| TODO | https://github.com/pappasam/toml-sort/issues/42 | 2023-02-24 | [.pre-commit-config.yaml:73](https://github.com/KyleKing/tail-jsonl/blame/e7c201459d60f1a7f01b3bbac9ddd87f5b91b1b4/.pre-commit-config.yaml#L73) |
| PLANNED | Add a flag (--debug & store_true) to print debugging information | 2023-02-02 | [tail_jsonl/scripts.py:30](https://github.com/KyleKing/tail-jsonl/blame/fd15e5907afae783ba21bb0f9d310cc6b08008c4/tail_jsonl/main.py#L34) |
| Type | Comment | Last Edit | Source File |
|---------|------------------------------------------------------------------|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| TODO | https://github.com/pappasam/toml-sort/issues/42 | 2023-02-24 | [.pre-commit-config.yaml:73](https://github.com/KyleKing/tail-jsonl/blame/e7c201459d60f1a7f01b3bbac9ddd87f5b91b1b4/.pre-commit-config.yaml#L73) |
| PLANNED | Add a flag (--debug & store_true) to print debugging information | 2023-02-02 | [tail_jsonl/scripts.py:30](https://github.com/KyleKing/tail-jsonl/blame/fd15e5907afae783ba21bb0f9d310cc6b08008c4/tail_jsonl/main.py#L34) |

Found code tags for TODO (2), PLANNED (1)
Found code tags for TODO (1), PLANNED (1)

<!-- calcipy_skip_tags -->
2 changes: 1 addition & 1 deletion docs/docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ poetry config pypi-token.pypi ...
| `tail_jsonl/scripts.py` | 18 | 0 | 11 | 100.0% |
| **Totals** | 81 | 1 | 11 | 98.8% |

Generated on: 2023-02-25
Generated on: 2023-04-08
<!-- {cte} -->
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ plugins:
scripts:
- docs/gen_ref_nav.py
- git-revision-date-localized:
type: date
fallback_to_build_date: true
enable_creation_date: true
fallback_to_build_date: true
strict: false
type: date
- mkdocstrings:
handlers:
python:
Expand All @@ -62,7 +63,6 @@ markdown_extensions:
- extra
- fenced_code
- footnotes
- mdx_truly_sane_lists
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
Expand Down
Loading