Skip to content

Commit

Permalink
chore: Vendor pydantic-argparse for easier experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Jan 4, 2024
1 parent e724438 commit e7ed2e0
Show file tree
Hide file tree
Showing 68 changed files with 7,032 additions and 0 deletions.
32 changes: 32 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Linting

on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 0 * * 0"

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: poetry
- name: Install Dependencies
run: poetry install --no-interaction --no-root
- name: Install Package
run: poetry install --no-interaction
- name: Run Linting
run: poetry run poe lint
60 changes: 60 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Tests

on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 0 * * 0"

jobs:
tests:
name: Tests
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
fail-fast: false
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install Dependencies
run: poetry install --no-interaction --no-root
- name: Install Package
run: poetry install --no-interaction
- name: Run Tests
run: |
poetry run poe test
poetry run coverage lcov
- name: Coverage Results
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
flag-name: ${{ matrix.os }}-${{ matrix.python-version }}
parallel: true

coverage:
name: Coverage
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
32 changes: 32 additions & 0 deletions vendor/pydantic-argparse/.github/workflows/typing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Typing

on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 0 * * 0"

jobs:
typing:
name: Typing
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: poetry
- name: Install Dependencies
run: poetry install --no-interaction --no-root
- name: Install Package
run: poetry install --no-interaction
- name: Run Type Checking
run: poetry run poe type
85 changes: 85 additions & 0 deletions vendor/pydantic-argparse/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# IDE settings / virtual environment
.venv/
.vscode/

# Caches
.mypy_cache/
.pytest_cache/
.ruff_cache/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Sphinx documentation
docs/_build/

# pyenv
.python-version

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

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# macOS
.DS_Store

# Misc
/TODO.md
Dockerfile
21 changes: 21 additions & 0 deletions vendor/pydantic-argparse/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Hayden Richards

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit e7ed2e0

Please sign in to comment.