summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Clean uptravis-on-nightlySteven Myint2018-01-271-2/+1
|
* Keep installation clean as possible when testingSteven Myint2018-01-271-3/+2
| | | | Install the linting tools after testing is done.
* Work around Travis CI error on Python "nightly"Steven Myint2018-01-271-1/+1
|
* Support `__class__` without `self` in Python 3 (#325)Steven Myint2018-01-272-4/+26
| | | | | | | | | | | This fixes #223. I created this patch previously in: https://github.com/PyCQA/pyflakes/commit/83ab002d6fab2b717df91e854624c6fdfd9b9213 But I deleted that branch for some reason. I can't recall why I disliked it enough to delete it. But since I can't remember, I'll commit it to branch again for others to look at.
* Ignore underscore redefinition (#73)eight2017-12-082-2/+22
| | | | | | | | * Ignore underscore redefinition * Add test: ignore underscore redefinition * Redefining an importation should always raise a warning
* Handle string literal annotations (#313)Jimmy Jia2017-11-253-4/+121
|
* Fix failed AppVeyor web requests (#309)Jon Dufresne2017-10-231-0/+2
| | | | | | | | | | | | Allow we requests to servers that only support TLS 1.2. Previously failed with the error: Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure channel." Was marking all contributions as broken which is not helpful for reviewing. Fixes #308
* Enable pip cache in Travis CI (#305)Jon Dufresne2017-10-211-0/+1
| | | | | | | Can speed up builds and reduce load on PyPI servers. For more information, see: https://docs.travis-ci.com/user/caching/#pip-cache
* Include license file in the generated wheel package (#306)Jon Dufresne2017-10-211-0/+3
| | | | | | | The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
* Add check for unused exception binding in except: block (#293)Jon Dufresne2017-10-215-31/+80
| | | Fixes #301
* Point to NEWS.txt from READMEPhil Frost2017-10-061-0/+5
| | | https://github.com/PyCQA/pyflakes/issues/299
* Make `pyflakes` happy about its our own code (#295)Steven Myint2017-09-201-0/+3
|
* Skip a test under PyPy that varies on version (#294)Steven Myint2017-09-201-7/+1
|
* Match tox test matrix with and Travis configurationsJon Dufresne2017-09-191-1/+1
| | | | | Testing for Python 3.2 was removed in c94e50759839b781cdbb029ae68f8069234ada3b.
* Increment version to 1.6.01.6.0Phil Frost2017-08-032-1/+5
|
* Support for Python 3.6? (#281)cclauss2017-06-241-1/+1
|
* Support Python 3.7 (#273)Steven Myint2017-06-052-4/+13
| | | | | | | | | | | | | | * Ignore temporary files * Support Python 3.7 This fixes #271. * Re-enable nightly in Travis CI This relates to #90. * Undo 821a0694b1bdc61c53cc0ad20dbc1ed2bca0de7d
* Rename [wheel] section to [bdist_wheel] as the former is legacy (#278)Jon Dufresne2017-06-031-1/+1
| | | | | | | See: https://bitbucket.org/pypa/wheel/src/54ddbcc9cec25e1f4d111a142b8bfaa163130a61/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125 http://pythonwheels.com/
* Detect `pythonw` in shebang (#277)Steven Myint2017-06-032-7/+21
| | | | | | | Also add more tests. This addresses: https://github.com/PyCQA/pyflakes/issues/149#issuecomment-305881232
* Find Python files without extensionsSteven Myint2017-06-012-2/+42
| | | | | | | Previously, only files ending with `*.py` would be detected as Python files while recursing a directory. This closes #149.
* Show master branch only in Travis CI badge (#274)Steven Myint2017-05-311-1/+1
| | | I previously noticed the badge going awry. This explains it.
* Use new URL for issues (#272)Steven Myint2017-05-281-1/+1
|
* Remove obsolete version of Python from Travis CI (#91)Steven Myint2017-05-251-1/+1
| | | | | | | | This also adds the latest version of Python. The `setuptools` on Travis CI no longer supports Python 3.2: https://github.com/pypa/setuptools/commit/b47fe15b9039a165589353a1a43f6dfe3bbe3a8e https://travis-ci.org/myint/scspell/jobs/235721220#L146
* Allow failure in "nightly" Python until we fix it (#90)Steven Myint2017-05-121-0/+3
|
* Merge branch 'master' of github.com:pyflakes/pyflakesPhil Frost2017-02-264-16/+15
|\ | | | | | | | | Forgot to push the commit that increments to 1.5.0 when I made the release, and some changes have been made since then :(
| * Don't test against file perms when running as root (#86)cfs-pure2017-02-041-0/+3
| | | | | | | | | | | | | | | | * Don't test against file perms when running as root test_permissionDenied tests file modes by creating a temporary file, then sets the mode to 0000 and attempts to process it and see if and permission denied error is generated. This never happens when the unit tests are run as root since it can open files regardless of file permissions. * Fix up UID skip in tests for Windows
| * Process function scope variable annotations (#88)Jakub Stasiak2017-01-222-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even though variable annotations in function scope aren't evaluated at runtime it's still useful for static analysis tools to process them and catch some issues (and not report some things that aren't issues). Let's take the following code: from typing import Any def fun(): a: Any Previously pyflakes would report Any to be unused: test.py:1: 'typing.Any' imported but unused With this patch it's no longer the case.
| * Just pip install setuptools on AppVeyorJason R. Coombs2017-01-141-7/+5
| | | | | | | | | | | | | | | | | | Use the get-pip script to bootstrap pip and setuptools to pinned versions for Python 3.2 compatibility. PyPy3's latest Windows version only supports Python 3.2, so while Python 3.2 is EOL upstream, we're still testing against it and need to be able to install our tooling (including pip and setuptools).
* | Increment version to 1.5.01.5.0Phil Frost2017-01-092-1/+4
|/
* Enable support for PEP 526 annotated assignments (#84)Łukasz Langa2017-01-062-0/+79
| | | | | | Without this change, code with annotated assignments is crashing pyflakes with an attribute error (`object has no attribute 'ANNASSIGN'`). Test plan: new tests introduced conforming to behavior described in the PEP.
* Increment version to 1.4.01.4.0Phil Frost2016-12-302-1/+5
|
* Fix typo in README (#82)Benjamin Dopplinger2016-11-031-1/+1
|
* Use %r instead of %s in ImportStarMessage (#81)Jelte Fennema2016-09-281-1/+1
| | | | | This was inconsistent with the other error messages. This is useful as it allows easy detecting of the offending item for editor plugins by simply searching in the message for quotes.
* Fix format string checking (#80)Jared Garst2016-09-082-1/+9
| | | | format strings (PEP 498) defines a new AST node, JOINEDSTR which contains a list of string expressions.
* Point URLs to PyCQA (#79)Ville Skyttä2016-09-024-4/+4
|
* Increment version to 1.3.01.3.0Phil Frost2016-09-012-1/+7
|
* Use current Travis CI URL (#78)Steven Myint2016-08-091-2/+2
|
* Fix PyPy2 Windows IntegrationTests (#76)John Vandenberg2016-08-042-2/+64
| | | | | | | | | IntegrationTests.test_errors is failing on Windows under PyPy2 as its stderr emits \r\r\n as the line separator. Add AppVeyor testing for three PyPy releases. Also add a test for the other more complex stderr message emitted by the Reporter.
* Fix typos (#77)Jakub Wilk2016-07-274-8/+8
|
* Check for duplicate dictionary keys (#72)geokala2016-07-253-1/+333
|
* Fix TestMain tests on Windows (#75)John Vandenberg2016-07-213-4/+37
| | | | | | | | | Currently the API test module has failures for TestMain class, added in f0084592, on Windows as SysStreamCapturing is in universal newlines mode while its super class IntegrationTests is using a native console stream with newline=os.linesep. Add Appveyor CI script as .appveyor.yml, which can be selected in the Appveyor settings.
* Add PyPy 5.3 and PyPy3 5.2-alpha1 (#74)John Vandenberg2016-07-121-0/+2
|
* Fix "continue" and "break" checks ignoring py3.5's "async for" loop (#71)Yann Kaiser2016-07-042-1/+64
|
* Increment version to 1.2.31.2.3Phil Frost2016-05-122-1/+4
|
* Fix TypeError when processing relative imports (#61)John Vandenberg2016-05-122-6/+122
| | | | | | | | | | | | | | Fixes lp:1560134 aec68a784 added module names to error messages, however it caused a TypeError for relative imports that do not specify a module such as: from . import x This fixes the TypeError, and also adds the necessary leading dots for relative import error messages. Add tests for various types of relative imports.
* Increment version to 1.2.21.2.2Phil Frost2016-05-062-1/+4
|
* Avoid traceback when exception is del-ed in except (#67)Phil Frost2016-05-063-1/+17
| | | | | | | | | | | | | Fixes a regression introduced by 2a698f87c02a43d4489e30481e9def14ed4b4431. This would fail with a KeyError: try: pass except Exception as e: del e Fixes lp:1578903
* Increment version to 1.2.11.2.1Phil Frost2016-05-053-3/+7
|
* Suppress RedefinedWhileUnused for submodule import (#62)John Vandenberg2016-05-052-4/+24
| | | | | | | | | | Fixes lp:1578051 aec68a7 added module names to error messages, which included a new class SubmoduleImportation to handle the special case of submodule imports. It correctly handled the case of a submodule import occurring after the root module was imported, but didnt handle the opposite case of the submodule import occurring before the root module was imported.
* README - add link to issue tracker (#66)Adam Chainz2016-05-051-0/+2
| | | As discussed in #64