Skip to content

Commit

Permalink
feat: Change to a cli package. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofiem authored Sep 23, 2022
1 parent c86aff7 commit f31688a
Show file tree
Hide file tree
Showing 184 changed files with 3,797 additions and 10,784 deletions.
10 changes: 0 additions & 10 deletions .flake8

This file was deleted.

2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These owners will be the default owners for everything in the repo.
* @cofiem
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Bug Report
description: Create a report to help us improve
title: "[Bug]: "
labels:
- bug
assignees:
- cofiem
body:
- type: textarea
id: description
attributes:
label: Describe the problem
description: A summary of the problem you've seen.
placeholder: Tell us what you see!
value: "e.g. When the program is given these arguments, it does this action I don't want ..."
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce the behavior
description: Your step-by-step guide to help use reproduce the problem.
placeholder: Tell us what you see!
value: "e.g. Run using these arguments ... Look in at the output in this folder ..."
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: What do you expect to happen?
placeholder: Tell us what you want to see!
value: "e.g. Run using these arguments ... should do this ..."
validations:
required: true
- type: input
id: program-details
attributes:
label: Program Details
description: What operating system and what version of the program is being used?
placeholder: "e.g. OS: [e.g. iOS], Program version [e.g. 2.1]"
validations:
required: false
- type: markdown
attributes:
value: |
Please attach any screenshots or logging output to help explain your problem.
Thanks for taking the time to fill out this bug report!
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature Request
description: Suggest an idea for this project
title: "[Feature]: "
labels:
- enhancement
assignees:
- cofiem
body:
- type: textarea
id: description
attributes:
label: Describe the feature
description: A summary of the new functionality you'd like
placeholder: Tell us what you want to see!
value: "e.g. It would be nice to be able to do this and get this output ..."
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Are there other approaches?
description: Any alternative solutions or features you've considered
placeholder: Tell us what else could be done
value: "e.g. Your program could interact with this other program like this ..."
validations:
required: true
- type: markdown
attributes:
value: |
Please attach any screenshots or other files to help explain your feature.
Thanks for taking the time to fill out this feature request!
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
target-branch: "main"
open-pull-requests-limit: 3

# Maintain dependencies for pip packages
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
target-branch: "main"
commit-message:
prefix: "pip stable"
prefix-development: "pip dev"
open-pull-requests-limit: 3
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
documentation:
- docs/**/*

dependencies:
- requirements.txt
- requirements-dev.txt
- pyproject.toml
- MANIFEST.in

tests:
- tests/**/*
18 changes: 18 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Automatically generate release notes
# .github/release.yml
# see https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes

changelog:
categories:
- title: New Features
labels:
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Documentation changes
labels:
- documentation
- title: Dependency updates
labels:
- dependencies
84 changes: 0 additions & 84 deletions .github/workflows/app-tests.yml

This file was deleted.

81 changes: 81 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Code Analysis

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '40 0 * * 1'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ "python" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11.0-rc.1" ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install dependencies
run: |
echo "::group::Pip dependencies"
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -r requirements-dev.txt -r requirements.txt
echo "::endgroup::"
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Install snyk to check for vulnerabilities
uses: snyk/actions/setup@master

- name: Run Snyk over the runtime dependencies
run: snyk test --sarif-file-output=snyk-requirements-${{ matrix.language }}.sarif --command=python --file=requirements.txt --package-manager=pip --skip-unresolved
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Upload Snyk runtime dependencies scan result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-requirements-${{ matrix.language }}.sarif
category: requirements-runtime-${{ matrix.language }}

- name: Run Snyk over the development dependencies
run: snyk test --sarif-file-output=snyk-requirements-dev-${{ matrix.language }}.sarif --command=python --file=requirements-dev.txt --package-manager=pip --skip-unresolved
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Upload Snyk development dependencies scan result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-requirements-dev-${{ matrix.language }}.sarif
category: requirements-dev-${{ matrix.language }}
59 changes: 0 additions & 59 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

Loading

0 comments on commit f31688a

Please sign in to comment.