Skip to content

Commit 64c2e30

Browse files
committed
Remove suggestion and documentation of using unmaintained nose
The nose project has ceased development. The last commit is from Mar 3, 2016. From their docs page: https://nose.readthedocs.io/ > Note to Users > > Nose has been in maintenance mode for the past several years and will > likely cease without a new person/team to take over maintainership. > New projects should consider using Nose2, py.test, or just plain > unittest/unittest2.
1 parent 566cdc0 commit 64c2e30

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

CONTRIBUTING.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,19 @@ GitHub has an excellent `guide`_.
6969
The current tests are written in 2 styles:
7070

7171
* standard xUnit based only on stdlib unittest
72-
(can be executed with nose)
7372
* functional test using a custom framework and executed by the
7473
pycodestyle itself when installed in dev mode.
7574

7675

7776
Running unittest
7877
~~~~~~~~~~~~~~~~
7978

80-
While the tests are writted using stdlib `unittest` module, the existing
81-
test include unit, integration and functional tests.
79+
The tests are writted using stdlib `unittest` module, the existing test
80+
include unit, integration and functional tests.
8281

83-
There are a couple of ways to run the tests::
82+
To run the tests::
8483

8584
$ python setup.py test
86-
$ # Use nose to run specific test
87-
$ nosetests \
88-
> testsuite.test_blank_lines:TestBlankLinesDefault.test_initial_no_blank
89-
$ # Use nose to run a subset and check coverage, and check the resulting
90-
$ $ cover/pycodestyle_py.html in your browser
91-
$ nosetests --with-coverage --cover-html -s testsuite.test_blank_lines
92-
9385

9486
Running functional
9587
~~~~~~~~~~~~~~~~~~

docs/advanced.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ in your project::
2525
self.assertEqual(result.total_errors, 0,
2626
"Found code style errors (and warnings).")
2727

28-
If you are using ``nosetests`` for running tests, remove ``quiet=True``
29-
since Nose suppresses stdout.
30-
3128
There's also a shortcut for checking a single file::
3229

3330
import pycodestyle

testsuite/support.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,3 @@ def run_tests(style):
215215
if options.testsuite:
216216
init_tests(style)
217217
return style.check_files()
218-
219-
220-
# nose should not collect these functions
221-
init_tests.__test__ = run_tests.__test__ = False

0 commit comments

Comments
 (0)