Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exported names per module, improved typing, refactored GitHub actions (…
…#82) * updated actions to use Node.js 16 * moved number_theory out of ecc submodule * move block(header) out of tx submodule * moved test_num_theory
- Loading branch information
Showing
137 changed files
with
1,492 additions
and
1,080 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Markdown - Check links | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-md-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Check Markdown links | ||
uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Markdown - Check linted code | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-md-linted: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Run Markdown Lint | ||
uses: DavidAnson/markdownlint-cli2-action@v8 | ||
with: | ||
command: config | ||
globs: | | ||
.markdownlint.json | ||
**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Python - Check linted code | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
check-py-linted: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Check isort and black | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U isort | ||
isort -c . | ||
python -m pip install -U black | ||
black --check . | ||
- name: Run tox -e lint | ||
run: | | ||
python -m pip install tox | ||
tox -e lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Python - Test on py312-dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
test-py312-dev: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# as of 2023-01-01 windows-latest does crash | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12-dev | ||
- name: Run tox -e py | ||
run: | | ||
python -m pip install tox | ||
tox -e py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"MD007": { "indent": 4 } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.2 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
name: black | ||
args: [--diff, --check] | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.11 | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
- repo: https://github.com/sourcery-ai/sourcery | ||
rev: v1.0.2 | ||
hooks: | ||
- id: sourcery | ||
name: sourcery | ||
# The best way to use Sourcery in a pre-commit hook: | ||
# * review only changed lines: | ||
# * omit the summary | ||
args: [--diff=git diff HEAD, --no-summary] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 🪄 This is your project's Sourcery configuration file. | ||
|
||
# You can use it to get Sourcery working in the way you want, such as | ||
# ignoring specific refactorings, skipping directories in your project, | ||
# or writing custom rules. | ||
|
||
# 📚 For a complete reference to this file, see the documentation at | ||
# https://docs.sourcery.ai/Configuration/Project-Settings/ | ||
|
||
# This file was auto-generated by Sourcery on 2023-01-01 at 13:20. | ||
|
||
version: "1" # The schema version of this config file | ||
|
||
ignore: # A list of paths or files which Sourcery will ignore. | ||
- .git | ||
- venv | ||
- .venv | ||
- env | ||
- .env | ||
- .tox | ||
|
||
rule_settings: | ||
enable: | ||
- default | ||
disable: [] # A list of rule IDs Sourcery will never suggest. | ||
rule_types: | ||
- refactoring | ||
- suggestion | ||
- comment | ||
python_version: "3.7" # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version. | ||
|
||
# rules: # A list of custom rules Sourcery will include in its analysis. | ||
# - id: no-print-statements | ||
# description: Do not use print statements in the test directory. | ||
# pattern: print(...) | ||
# replacement: | ||
# condition: | ||
# explanation: | ||
# paths: | ||
# include: | ||
# - test | ||
# exclude: | ||
# - conftest.py | ||
# tests: [] | ||
# tags: [] | ||
|
||
# rule_tags: {} # Additional rule tags. | ||
|
||
# metrics: | ||
# quality_threshold: 25.0 | ||
|
||
# github: | ||
# labels: [] | ||
# ignore_labels: | ||
# - sourcery-ignore | ||
# request_review: author | ||
# sourcery_branch: sourcery/{base_branch} | ||
|
||
# clone_detection: | ||
# min_lines: 3 | ||
# min_duplicates: 2 | ||
# identical_clones_only: false | ||
|
||
# proxy: | ||
# url: | ||
# ssl_certs_file: | ||
# no_ssl_verify: false |
Oops, something went wrong.