Skip to content

Commit

Permalink
Initial code import
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Raiber committed Sep 27, 2024
1 parent 0f23388 commit 2832eac
Show file tree
Hide file tree
Showing 44 changed files with 6,575 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
image: Visual Studio 2022

environment:
global:
RANDOM_SEED: 0
matrix:
- PYTHON_MAJOR: 3
PYTHON_MINOR: 11

cache:
- .venv -> poetry.lock

install:
# Add Python to the PATH
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%;%PATH%
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH%
# Install system dependencies
- choco install make
- curl -sSL https://install.python-poetry.org | python -
- set PATH=%USERPROFILE%\AppData\Roaming\Python\Scripts;%PATH%
- make doctor
# Install project dependencies
- make install

build: off

test_script:
- make check
- make test
18 changes: 18 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[run]

branch = true

data_file = .cache/coverage

omit =
.venv/*
*/tests/*
*/__main__.py

[report]

exclude_lines =
pragma: no cover
raise NotImplementedError
except DistributionNotFound
TYPE_CHECKING
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
CHANGELOG.md merge=union
poetry.lock merge=binary
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: main

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']

steps:
- uses: actions/checkout@v2

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

- uses: Gr1N/setup-poetry@v8

- name: Check dependencies
run: make doctor

- uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: make install

- name: Check code
run: make check

- name: Test code
run: make test

- name: Upload coverage
uses: codecov/codecov-action@v4
if: steps.fork-check.outputs.is-fork == 'false'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Temporary Python files
*.pyc
*.egg-info/
__pycache__/
.ipynb_checkpoints/
setup.py
pip-wheel-metadata/

# Temporary OS files
Icon*

# Temporary virtual environment files
/.cache/
/.venv/
tmp/

# Temporary server files
.env
*.pid

# Generated documentation
/docs/gen/
/docs/apidocs/
/site/
/*.html
/docs/*.png

# Google Drive
*.gdoc
*.gsheet
*.gslides
*.gdraw

# Testing and coverage results
/.coverage
/.coverage.*
/htmlcov/
/prof/
coverage.xml

# Build and release directories
/build/
/dist/
*.spec

# Sublime Text
*.sublime-workspace

# Eclipse
.settings
14 changes: 14 additions & 0 deletions .pydocstyle.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[pydocstyle]

# D211: No blank lines allowed before class docstring
add_select = D211

# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
# D202: No blank lines allowed after function docstring
add_ignore = D100,D101,D102,D103,D104,D105,D107,D202
Loading

0 comments on commit 2832eac

Please sign in to comment.