Skip to content

Commit

Permalink
Merge pull request #1 from grafuls/development
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
sadsfae authored Feb 20, 2024
2 parents d8a9c85 + fb392e9 commit 12d2bab
Show file tree
Hide file tree
Showing 26 changed files with 2,016 additions and 14 deletions.
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
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: main

on: [push]

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@v1
with:
fail_ci_if_error: true
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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

# VS Code
.vscode

# poetry
poetry.lock
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 12d2bab

Please sign in to comment.