Commit Graph

38 Commits

Author SHA1 Message Date
Shantanu
5324bd02f2 typeshed: run stubtest in CI (#3727)
* README.md: refactor "Running the tests"

This organises the section a little better. Previously some tests were
unmentioned; it read as if mypy_test and pytype_test were the only
tests. The section is now organised by test, making it easy to keep
track of the requirements and details of each. This also makes it
easier to add documentation for stubtest.

Also mention turning on Travis CI on your fork, since that is very
useful.

* README.md: document stubtest_test.py

* stubtest_test: add it

* travis: add stubtest_test to CI

* stubtest_test: add whitelists
2020-02-20 22:16:52 -08:00
Sebastian Rittau
66778639a5 Run CI tests against win32 and darwin platform (#3457)
Also use Python 3.8 as default Python version for tests
2019-11-11 07:52:11 -08:00
Sebastian Rittau
23232c056c Simplify Travis-CI configuration (#3220)
This removes the indirection of setting environment variables to
install and run tests. Also, use an explicit version for running
mypy with typed-ast.
2019-09-30 11:46:12 +02:00
Sebastian Rittau
b20e5b6c14 Travis: run mypy with Python 3.8 as well (#3146)
This runs mypy both with Python 3.7 and 3.8. In Python 3.8,
mypy switched from using typed-ast to using Python's built-in ast.
This patch ensures that both are tested.
2019-07-25 07:43:52 -07:00
Sebastian Rittau
09d1055cd3 Remove mypy new analyzer tests (#3128)
Now that the new analyzer is the default, this does exactly the same
as the normal mypy self test.
2019-07-18 17:02:12 +02:00
Ivan Levkivskyi
61eb99664b Add new semantic analyzer to mypy tests (#3037)
This also removes two redundant definitions in curses/__init__.pyi star-imported from _curses.
2019-06-07 16:49:57 +01:00
Rebecca Chen
a651e2f3cd Update pytype_test to remove now-unnecessary parse-only functionality. (#2897)
With today's release, pytype is able to fully load
stdlib/3/collections/__init__.pyi, so the test no longer needs the
ability to partially parse stubs using the pytd tool. Removing this
functionality allows the test code to be simplified considerably.
2019-04-03 12:47:20 -07:00
Sebastian Rittau
8c8dc5658f sudo is not required anymore (#2618) 2018-11-22 22:17:20 -08:00
Sebastian Rittau
48fc8d6d82 Rework .travis.yml and run with Python 3.7 where possible (#2536) 2018-10-23 13:19:25 +02:00
Rebecca Chen
eb09e2898b Update pytype_test to be easier to run manually. (#2469)
* Moves the pytype installation to requirements-tests-py3.txt, now
  that pytype can run under Python 3.5+.
* Changes tests/pytype_test.py to not require a --python{version}-exe
  argument when it can automatically find the Python interpreter, and
  cleans up a few typos and out-of-date things.
* Updates the appropriate documentation.
* Updates .travis.yml.
2018-09-21 09:38:33 -07:00
Jelle Zijlstra
c06a718c5b always run mypy with --no-implicit-optional (#2242)
This was already the configuration in Travis and it's been working fine. It's
confusing that Travis was using a different configuration than the default
when you run tests/mypy_test.py yourself.
2018-06-15 21:34:14 -07:00
Ethan Smith
e9600db2ec Remove symlinks! (#2132) 2018-05-15 15:18:59 -04:00
Martin DeMello
aeb1aa4899 add requirements.txt to travis config (#2062) 2018-04-17 14:15:58 -07:00
Jelle Zijlstra
0af84cd9a0 upgrade flake8, pin flake8-pyi version (#2001)
I'd prefer to pin the exact flake8-pyi version so that test runs are more reproducible.
2018-04-03 07:16:34 -07:00
Martin DeMello
754789b031 modify pytype_test to run from within pytype too, and support python3 (#1817) 2018-01-22 12:18:58 -08:00
Guido van Rossum
350563223f Add Optional[] for all remaining cases of x: <type> = None (#1424)
* Final round of adding Optional[] to type of arguments with default = None
* Update Travis to use --no-implicit-optionals and clarify CONTRIBUTING.md
2017-06-21 10:50:21 -07:00
Jelle Zijlstra
3101768f12 drop 3.2 (#1213)
Closes #1145.
2017-04-25 17:15:49 -07:00
Jelle Zijlstra
e50fcaf658 add mypy_selftest.py (#1102)
* add mypy_selftest.py
* add selftest to Travis
2017-04-17 11:17:27 -07:00
Łukasz Langa
9899037be9 Update dependencies in Travis and requirements-tests-py3.txt
We were still telling people to install mypy-lang 0.4.6!
2017-03-14 09:07:43 -07:00
Lukasz Langa
25a46f42be Switch to Python 3.6 for flake8 runs, re-enable E999 checks 2016-12-22 16:02:46 -08:00
Lukasz Langa
4466a225a6 Upgrade to flake8-pyi 16.12.1
Fixes #786.
2016-12-21 17:30:57 -08:00
Lukasz Langa
8c5c788a4d Enable flake8-pyi plugin to automatically include *.pyi files
This simplifies running flake8 tests and reduces the amount of F821 errors
reported (flake8-pyi enables support for forward references in *.pyi files).
The error code is left disabled until I clean up the remaining issues.
2016-12-21 00:56:01 -08:00
Lukasz Langa
79d8757f1f Enable flake8 tests
Ran both by Travis and locally. There's some setup required, README updated.
A few important Flake8 checks are still disabled, we're going to enable them as
soon as the stubs are fixed and we can reliably run Flake8 locally with Python
3.6.
2016-12-20 04:07:44 -08:00
Lukasz Langa
ab4ad3fe9d Make tests run with 3.6 --fast-parser, too 2016-11-26 20:17:28 -08:00
alvarocaceres
63cbe2dc3c Refactor how test are run, add tests to exercise pytype (if installed) (#353) 2016-07-12 15:30:54 -07:00
Guido van Rossum
4f483dc314 Precision surgery to take out sqlalchemy test failures (#140)
* Comment out parts of the sqlalchemy stubs to make tests pass.

* Run all tests, one step per Python version.
2016-04-10 20:45:42 -07:00
Guido van Rossum
35c3917c29 The tornado tests now pass. 2016-03-10 10:23:11 -08:00
Guido van Rossum
ddf43e3bdb Make tests version-aware. Now only tornado and sqlalchemy stubs fail. 2016-03-09 12:38:51 -08:00
Guido van Rossum
a7221265cc Install from python/mypy instead of JukkaL/mypy. 2016-02-28 18:59:47 -08:00
Guido van Rossum
bc26b28d78 Try using "pip install -U ..." to install mypy; does this make the test failure disappear? 2016-02-03 17:21:08 -08:00
Guido van Rossum
913495886d Wrote a runtests.py script. It has some flaws, hence the -x args in .travis.yml. 2016-01-28 13:22:45 -08:00
Guido van Rossum
f6f3d4d9ca Sigh. Need to write a local test script. 2016-01-28 11:36:52 -08:00
Guido van Rossum
f77e9dc9a0 Better approach to testing. Fixes #7. 2016-01-28 11:17:26 -08:00
Guido van Rossum
b3666b52cf Test 2and3, 3.3, 3.4. 2016-01-26 20:10:24 -08:00
Guido van Rossum
bf1dde5636 Fix tokenize.pyi; fix cp command. 2016-01-26 20:01:34 -08:00
Guido van Rossum
9e15a1db0a Add stdlib/2.7 to Travis CI tests. 2016-01-26 17:30:54 -08:00
Guido van Rossum
b091a7311c Use the correct pip install incantation. 2016-01-26 16:54:18 -08:00
Guido van Rossum
c6f15133cf Add a Travis CI configuration. 2016-01-26 16:50:47 -08:00