Skip to content

Commit 5844ad0

Browse files
committed
build: run local tooling
1 parent 400f4df commit 5844ad0

20 files changed

+6486
-93
lines changed

.calcipy_packaging.lock

Lines changed: 1874 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
22
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
3-
43
blank_issues_enabled: false

.github/actions/setup/action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,40 @@
11
---
22
name: Setup Action
33
description: Run "poetry install"
4-
54
inputs:
65
os:
76
default: ubuntu-22.04
87
poetry-version:
98
default: 1.2.2
109
python-version:
1110
required: true
12-
1311
env:
1412
POETRY_VIRTUALENVS_IN_PROJECT: true
1513
POETRY_NO_INTERACTION: 1
16-
1714
runs:
1815
using: composite
1916
steps:
2017
- name: Install Poetry ${{ inputs.poetry-version }}
2118
run: pipx install poetry==${{ inputs.poetry-version }}
2219
shell: bash
23-
2420
- name: Setup Python ${{ inputs.python-version }}
2521
uses: actions/setup-python@v4
2622
with:
2723
python-version: ${{ inputs.python-version }}
2824
cache: poetry
29-
3025
- name: Cache Nox
3126
uses: actions/cache@v3
3227
id: cache
3328
with:
3429
path: .nox
3530
key: ${{ inputs.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock')
3631
}}
37-
3832
- name: Poetry Debug Info
3933
run: |-
4034
poetry env info
4135
poetry config --list
4236
shell: bash
43-
4437
- name: Install Project and Dependencies
4538
run: |-
46-
poetry install
39+
poetry install
4740
shell: bash

.github/codeql-config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
22
name: Python CodeQL Configuration
3-
43
# If you wish to specify custom queries, you can do so here or in a config file.
54
# By default, queries listed here will override any specified in a config file.
65
# Prefix the list here with "+" to use these queries and those in the config file.
7-
86
# Exclude errors already caught by pylint/flake8
97
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#excluding-specific-queries-from-analysis
108
query-filters:

.github/labels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Other Where Used: https://github.com/search?q=name+path%3A%2F.github+filename%3Alabels.yml&type=Code&ref=advsearch&l=&l=
55
#
66
# Style Guide: ../docs/STYLE_GUIDE.md
7-
87
- name: Needs Discussion
98
color: ff5722
109
description: Ticket needs discussion and prioritization

.github/workflows/ci_pipeline.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
---
22
name: CI Pipeline
3-
43
on: # yamllint disable-line rule:truthy
54
push:
65
branches: [main]
76
pull_request:
87
branches: [main]
9-
paths:
10-
- tail_jsonl/**
11-
- tests/**
12-
- pyproject.toml
13-
8+
paths: [tail_jsonl/**, tests/**, pyproject.toml]
149
jobs:
1510
lint:
1611
runs-on: ${{ matrix.os }}
@@ -24,10 +19,8 @@ jobs:
2419
with:
2520
os: ${{ matrix.os }}
2621
python-version: ${{ matrix.python-version }}
27-
2822
- name: Run linters
2923
run: poetry run doit run --continue lint_project static_checks security_checks
30-
3124
test:
3225
runs-on: ${{ matrix.os }}
3326
strategy:
@@ -40,11 +33,9 @@ jobs:
4033
with:
4134
os: ${{ matrix.os }}
4235
python-version: ${{ matrix.python-version }}
43-
4436
- name: Test with pytest
4537
run: |-
4638
poetry run doit run test_all
47-
4839
check_types:
4940
runs-on: ${{ matrix.os }}
5041
strategy:
@@ -57,6 +48,5 @@ jobs:
5748
with:
5849
os: ${{ matrix.os }}
5950
python-version: ${{ matrix.python-version }}
60-
6151
- name: Run linters
6252
run: poetry run doit run check_types

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
# Based on the Github-recommended CodeQL Action
33
name: CodeQL
4-
54
on: # yamllint disable-line rule:truthy
65
push:
76
branches: [main]
@@ -10,7 +9,6 @@ on: # yamllint disable-line rule:truthy
109
schedule:
1110
- cron: 34 21 * * 6
1211
workflow_dispatch: # For manual runs
13-
1412
jobs:
1513
analyze:
1614
name: Analyze
@@ -19,15 +17,13 @@ jobs:
1917
actions: read
2018
contents: read
2119
security-events: write
22-
2320
strategy:
2421
fail-fast: false
2522
matrix:
2623
python-version: ['3.8']
2724
language: [python]
2825
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
2926
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
30-
3127
steps:
3228
- uses: actions/checkout@v3
3329
- uses: ./.github/actions/setup
@@ -45,7 +41,6 @@ jobs:
4541

4642
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4743
queries: security-extended,security-and-quality
48-
4944
- name: Perform CodeQL Analysis
5045
uses: github/codeql-action/analyze@v2
5146
with:

.github/workflows/labeler.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ name: github_labeler
55
# Will only be run each push or PR merge to the main branch
66
on: # yamllint disable-line rule:truthy
77
push:
8-
branches:
9-
- main
10-
paths:
11-
- .github/labels.yml
12-
- .github/workflows/labeler.yml
13-
8+
branches: [main]
9+
paths: [.github/labels.yml, .github/workflows/labeler.yml]
1410
jobs:
1511
labeler:
1612
runs-on: ubuntu-22.04

.github/workflows/update_docs.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
---
22
name: Update Docs
3-
43
on: # yamllint disable-line rule:truthy
54
push:
65
branches: [main]
7-
paths:
8-
- docs/**
9-
- mkdocs.yml
6+
paths: [docs/**, mkdocs.yml]
107
workflow_dispatch: # For manual runs
11-
128
jobs:
139
docs:
1410
runs-on: ${{ matrix.os }}

.github/workflows/upgrade-dependencies.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
---
22
# Based on: https://www.oddbird.net/2022/06/01/dependabot-single-pull-request/
33
name: Upgrade Dependencies
4-
54
on: # yamllint disable-line rule:truthy
65
workflow_dispatch:
76
schedule:
87
# First day of every month at 08:00 UTC
98
- cron: 0 8 1 * *
10-
119
jobs:
1210
upgrade:
1311
name: Upgrade & Open Pull Request
@@ -20,7 +18,6 @@ jobs:
2018
- uses: actions/checkout@v3
2119
with:
2220
ref: main
23-
2421
- uses: ./.github/actions/setup
2522
with:
2623
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)