Skip to content

Pytest the entire repo #980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 10, 2019
24 changes: 23 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,35 @@ language: python
dist: xenial # required for Python >= 3.7
python: 3.7
cache: pip
before_install: pip install --upgrade pip setuptools
install: pip install -r requirements.txt
before_script:
- black --check . || true
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
script:
- mypy --ignore-missing-imports .
- pytest --doctest-modules ./ciphers ./other ./searches ./sorts ./strings
#- IGNORE="data_structures,file_transfer_protocol,graphs,machine_learning,maths,neural_network,project_euler"
#- pytest . --doctest-modules --ignore=${IGNORE}
- pytest --doctest-modules
arithmetic_analysis
backtracking
boolean_algebra
ciphers
compression
conversions
digital_image_processing
divide_and_conquer
dynamic_programming
hashes
linear_algebra_python
matrix
networking_flow
other
searches
sorts
strings
traversals

after_success:
- python ./~script.py
- cat DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ def LongestIncreasingSubsequenceLength(v):
return length


v = [2, 5, 3, 7, 11, 8, 10, 13, 6]
print(LongestIncreasingSubsequenceLength(v))
if __name__ == "__main__":
v = [2, 5, 3, 7, 11, 8, 10, 13, 6]
print(LongestIncreasingSubsequenceLength(v))
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ flake8
matplotlib
mypy
numpy
opencv-python
pandas
pytest
sklearn
sympy
tensorflow