Giter Club home page Giter Club logo

Comments (4)

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

This is strange. I know people have been able to use this with windows in the past... Ill see if I can reproduce this... I think ill have some time tonight.

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

I had some trouble reproducing this.

I tried using a virtualenv in windows 10. I install diff cover and I am able to run diff-cover and diff-quality and the only errors I get are the expected validation error you would get when not providing any arguments.

λ virtualenv venv
Using base prefix 'c:\\users\\bachmann\\appdata\\local\\programs\\python\\python37-32'
New python executable in C:\Users\Bachmann\code\venv\Scripts\python.exe
Installing setuptools, pip, wheel...
done.

C:\Users\Bachmann\code
λ venv\Scripts\
activate.bat          easy_install.exe      pip3.exe              wheel.exe
deactivate.bat        pip.exe               python.exe
easy_install-3.7.exe  pip3.7.exe            pythonw.exe
C:\Users\Bachmann\code
λ venv\Scripts\activate.bat

C:\Users\Bachmann\code
(venv) λ pip install diff-cover
Collecting diff-cover
  Downloading https://files.pythonhosted.org/packages/55/0d/3aab24b03c40957b93912cc41e511e1e4069e0c10c1b08418f20ea7e2966/diff_cover-1.0.7.tar.gz (74kB)
    100% |████████████████████████████████| 81kB 2.3MB/s
Collecting Jinja2>=2.7.1 (from diff-cover)
  Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
    100% |████████████████████████████████| 133kB 3.1MB/s
Collecting six>=1.6.1 (from diff-cover)
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting jinja2_pluralize (from diff-cover)
  Downloading https://files.pythonhosted.org/packages/40/26/e6a6d7741076ea1bcfac02821e744fc40fa4cbb07e870b7dd969f4af8721/jinja2_pluralize-0.3.0-py2.py3-none-any.whl
Collecting pygments (from diff-cover)
  Downloading https://files.pythonhosted.org/packages/13/e5/6d710c9cf96c31ac82657bcfb441df328b22df8564d58d0c4cd62612674c/Pygments-2.3.1-py2.py3-none-any.whl (849kB)
    100% |████████████████████████████████| 849kB 4.9MB/s
Collecting MarkupSafe>=0.23 (from Jinja2>=2.7.1->diff-cover)
  Downloading https://files.pythonhosted.org/packages/5b/d4/1deb3c5dc3714fb160c7e2116fc6dff36a063d9156a9328cce54ef35cc52/MarkupSafe-1.1.1-cp37-cp37m-win32.whl
Collecting inflect>=0.2.4 (from jinja2_pluralize->diff-cover)
  Downloading https://files.pythonhosted.org/packages/86/02/e6b11020a9c37d25b4767a1d0af5835629f6e75d6f51553ad07a4c73dc31/inflect-2.1.0-py2.py3-none-any.whl (40kB)
    100% |████████████████████████████████| 51kB 3.9MB/s
Building wheels for collected packages: diff-cover
  Building wheel for diff-cover (setup.py) ... done
  Stored in directory: C:\Users\Bachmann\AppData\Local\pip\Cache\wheels\cc\3e\07\7d709018d2f36544630ef5f9de77e074cfca5f6ef7dcd2ca9d
Successfully built diff-cover
Installing collected packages: MarkupSafe, Jinja2, six, inflect, jinja2-pluralize, pygments, diff-cover
Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 diff-cover-1.0.7 inflect-2.1.0 jinja2-pluralize-0.3.0 pygments-2.3.1 six-1.12.0

C:\Users\Bachmann\code
(venv) λ diff-cover
usage: diff-cover [-h] [--html-report FILENAME] [--external-css-file FILENAME]
                  [--compare-branch BRANCH] [--fail-under SCORE]
                  [--ignore-staged] [--ignore-unstaged]
                  [--exclude EXCLUDE [EXCLUDE ...]]
                  [--src-roots DIRECTORY [DIRECTORY ...]]
                  coverage_xml [coverage_xml ...]
diff-cover: error: the following arguments are required: coverage_xml

C:\Users\Bachmann\code
(venv) λ diff-quality
usage: diff-quality [-h] --violations TOOL [--html-report FILENAME]
                    [--external-css-file FILENAME] [--compare-branch BRANCH]
                    [--options [OPTIONS]] [--fail-under SCORE]
                    [--ignore-staged] [--ignore-unstaged]
                    [--exclude EXCLUDE [EXCLUDE ...]]
                    [input_reports [input_reports ...]]
diff-quality: error: the following arguments are required: --violations

from diff_cover.

sunmoondeer avatar sunmoondeer commented on July 22, 2024

from diff_cover.

sunmoondeer avatar sunmoondeer commented on July 22, 2024

I update to the 1.0.7 version, and this problem fixed.
Thanks

from diff_cover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.