-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Philip Adenekan
committed
Jan 21, 2022
1 parent
a9bb879
commit 2d81289
Showing
15 changed files
with
436 additions
and
222 deletions.
There are no files selected for viewing
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,23 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,py}] | ||
charset = utf-8 | ||
|
||
# 4 space indentation | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab |
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,23 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint rec_to_binaries/ |
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,25 @@ | ||
name: Project Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
python-version: ["3.6"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
activate-environment: rec_to_binaries | ||
environment-file: environment.yml | ||
- run: pytest -vv |
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,44 @@ | ||
#options - https://github.com/Qiskit/openqasm/blob/master/.pylintrc | ||
# https://pylint.pycqa.org/en/latest/technical_reference/features.html | ||
|
||
|
||
[MESSAGES CONTROL] | ||
disable= | ||
missing-docstring, | ||
too-few-public-methods, | ||
too-many-instance-attributes, | ||
line-too-long, | ||
too-many-arguments, | ||
logging-fstring-interpolation, | ||
consider-using-f-string, # consider removing in the future | ||
import-error, # consider removing after finding a better solution | ||
|
||
|
||
[TYPECHECK] | ||
ignored-modules = numpy, pandas, scipy.stats | ||
|
||
|
||
[BASIC] | ||
# Good variable names which should always be accepted, separated by a comma | ||
good-names=_, id | ||
|
||
# Bad variable names which should always be refused, separated by a comma | ||
bad-names=foo,bar,baz,toto,tutu,tata | ||
|
||
# Regular expression matching correct attribute names | ||
attr-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$ | ||
|
||
# Naming hint for attribute names | ||
attr-name-hint=[A-Za-z_][A-Za-z0-9_]{0,30}$ | ||
|
||
# Regular expression matching correct argument names | ||
argument-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$ | ||
|
||
# Naming hint for argument names | ||
argument-name-hint=[A-Za-z_][A-Za-z0-9_]{0,30}$ | ||
|
||
# Regular expression matching correct variable names | ||
variable-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$ | ||
|
||
# Naming hint for variable names | ||
variable-name-hint=[A-Za-z_][A-Za-z0-9_]{0,30}$ |
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,5 @@ | ||
{ | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true, | ||
"python.linting.flake8Enabled": false | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ dependencies: | |
- pytest | ||
- pytest-cov | ||
- coveralls | ||
- Faker | ||
- pip | ||
- pip: | ||
- mountainlab-pytools |
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
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
Oops, something went wrong.