diff options
| -rw-r--r-- | .coveragerc | 2 | ||||
| -rw-r--r-- | .github/workflows/lint.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/perf.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 2 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 22 | ||||
| -rw-r--r-- | MANIFEST.in | 2 | ||||
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | codecov.yml | 2 | ||||
| -rw-r--r-- | docs/.gitignore | 2 | ||||
| -rw-r--r-- | docs/_static/.gitignore | 2 | ||||
| -rw-r--r-- | docs/_static/custom.css | 2 | ||||
| -rw-r--r-- | docs/conf.py | 5 | ||||
| -rw-r--r-- | test/data/chipwhisperer_settings.cwset | 12 | ||||
| -rw-r--r-- | test/data/curve.json | 2 | ||||
| -rw-r--r-- | test/plots/.gitignore | 2 | ||||
| -rw-r--r-- | unittest.cfg | 2 |
16 files changed, 47 insertions, 27 deletions
diff --git a/.coveragerc b/.coveragerc index adce703..7377d60 100644 --- a/.coveragerc +++ b/.coveragerc @@ -15,4 +15,4 @@ exclude_lines = raise NotImplementedError if 0: if __name__ == .__main__.: - \.\.\.$
\ No newline at end of file + \.\.\.$ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ae3693e..0da3096 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -49,4 +49,4 @@ jobs: make codestyle-all - name: Documentation coverage run: | - make doc-coverage
\ No newline at end of file + make doc-coverage diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index b4a2693..d3cc261 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -60,4 +60,4 @@ jobs: with: name: perf-results path: - .perf
\ No newline at end of file + .perf diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a799d0..e09003a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,4 +60,4 @@ jobs: if: ${{ matrix.python-version == 3.9 }} with: env_vars: PYTHON,USE_GMP - functionalities: gcov
\ No newline at end of file + functionalities: gcov diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e940b0b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: mixed-line-ending + - id: check-ast + - id: check-yaml + - id: check-added-large-files +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.812 + hooks: + - id: mypy + args: [--ignore-missing-imports, --show-error-codes] +- repo: https://github.com/PyCQA/flake8 + rev: 3.9.0 + hooks: + - id: flake8 + args: ["--ignore=E501,F405,F403,F401,E126"] diff --git a/MANIFEST.in b/MANIFEST.in index 12be3ea..f3de4f2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,4 @@ graft pyecsca/ec/efd/ graft pyecsca/ec/std/ global-exclude .git* exclude pyecsca/ec/efd/README.md pyecsca/ec/std/README.md -prune pyecsca/ec/std/.github/
\ No newline at end of file +prune pyecsca/ec/std/.github/ @@ -58,7 +58,7 @@ The data was partially changed, to make working with it easier. It also supports working with [Riscure](https://www.riscure.com) Inspector trace sets, which are of a proprietary format. -### Testing +### Testing & Development - [nose2](https://nose2.readthedocs.io) - [green](https://github.com/CleanCut/green) @@ -68,6 +68,7 @@ It also supports working with [Riscure](https://www.riscure.com) Inspector trace - [coverage](https://coverage.readthedocs.io/) - [interrogate](https://interrogate.readthedocs.io/) - [pyinstrument](https://github.com/joerick/pyinstrument/) + - [pre-commit](https://pre-commit.com/) at `.pre-commit-config.yaml` ### Docs @@ -81,17 +82,17 @@ It also supports working with [Riscure](https://www.riscure.com) Inspector trace MIT License Copyright (c) 2018-2021 Jan Jancar - + 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 @@ -99,7 +100,7 @@ It also supports working with [Riscure](https://www.riscure.com) Inspector trace 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. - + *Development is supported by the Masaryk University grant [MUNI/C/1701/2018](https://www.muni.cz/en/research/projects/46834), this support is very appreciated.* diff --git a/codecov.yml b/codecov.yml index 5bf2bbe..daabd82 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,4 +5,4 @@ coverage: ignore: - "test/**/*.py" - - "setup.py"
\ No newline at end of file + - "setup.py" diff --git a/docs/.gitignore b/docs/.gitignore index f6070b7..3bb33ca 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -1,2 +1,2 @@ _build/ -api/*
\ No newline at end of file +api/* diff --git a/docs/_static/.gitignore b/docs/_static/.gitignore index d5ecedf..423213e 100644 --- a/docs/_static/.gitignore +++ b/docs/_static/.gitignore @@ -1,2 +1,2 @@ font/ -graphik.css
\ No newline at end of file +graphik.css diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 129bd44..f92e0ba 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -8,4 +8,4 @@ img.logo { dl.class, dl.function { margin-bottom: 15px; -}
\ No newline at end of file +} diff --git a/docs/conf.py b/docs/conf.py index 438d83b..8fafb3b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -120,9 +120,6 @@ html_css_files = [ # # html_sidebars = {} - - - # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. @@ -134,7 +131,7 @@ htmlhelp_basename = 'pyecscadoc' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # - # 'papersize': 'letterpaper', + 'papersize': 'a4paper', # The font size ('10pt', '11pt' or '12pt'). # diff --git a/test/data/chipwhisperer_settings.cwset b/test/data/chipwhisperer_settings.cwset index 839fca1..e6d0ad4 100644 --- a/test/data/chipwhisperer_settings.cwset +++ b/test/data/chipwhisperer_settings.cwset @@ -1,8 +1,8 @@ [Aux Settings] [Trace Settings] [[ChipWhisperer/Native]] -Config File = -Format = +Config File = +Format = [Trace Settings] [Target Settings] [[Simple Serial]] @@ -15,11 +15,11 @@ Version = auto Timeout (ms) = 20 [[Simple Serial]] Preset Mode = Custom -Init Command = -Load Key Command = -Load Input Command = +Init Command = +Load Key Command = +Load Input Command = Go Command = p$TEXT$\n -Output Format = +Output Format = [[[NewAE USB (CWLite/CW1200)]]] baud = 38400 [Target Settings] diff --git a/test/data/curve.json b/test/data/curve.json index 98d9ae7..c965c90 100644 --- a/test/data/curve.json +++ b/test/data/curve.json @@ -26,4 +26,4 @@ }, "order": "0xc5f5cd5e4a0beb9b5515cd2847c4051d", "cofactor": "0x01" -}
\ No newline at end of file +} diff --git a/test/plots/.gitignore b/test/plots/.gitignore index 365fb3e..d5b7427 100644 --- a/test/plots/.gitignore +++ b/test/plots/.gitignore @@ -1,3 +1,3 @@ *.png *.html -*.svg
\ No newline at end of file +*.svg diff --git a/unittest.cfg b/unittest.cfg index c057996..7c90619 100644 --- a/unittest.cfg +++ b/unittest.cfg @@ -1,3 +1,3 @@ [unittest] plugins = nose2.plugins.attrib - nose2.plugins.doctests
\ No newline at end of file + nose2.plugins.doctests |
