deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.61k stars 163 forks source link

style: add module imported but unused in flake8 #191

Closed oboulant closed 3 years ago

oboulant commented 3 years ago

Just add the F401 flake8 code to .flake8 so that we have a warning message when there is an unused import. For instance in src/ruptures/utils/utils.py here with numpy.

codecov[bot] commented 3 years ago

Codecov Report

Merging #191 (f23a4c1) into master (d211c5c) will increase coverage by 0.27%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   96.31%   96.59%   +0.27%     
==========================================
  Files          40       40              
  Lines         978      969       -9     
==========================================
- Hits          942      936       -6     
+ Misses         36       33       -3     
Impacted Files Coverage Δ
src/ruptures/datasets/pw_linear.py 100.00% <ø> (ø)
src/ruptures/utils/utils.py 93.33% <ø> (+12.38%) :arrow_up:
src/ruptures/detection/kernelcpd.py 100.00% <100.00%> (ø)
src/ruptures/metrics/hamming.py 100.00% <100.00%> (ø)
src/ruptures/metrics/precisionrecall.py 100.00% <100.00%> (ø)
src/ruptures/utils/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d211c5c...f23a4c1. Read the comment docs.

deepcharles commented 3 years ago

Good to me