summaryrefslogtreecommitdiff
path: root/.flake8
AgeCommit message (Collapse)Author
2021-07-12flake8: Disable new N818Florian Bruhin
2021-01-08Drop support for Python 3.6.0Florian Bruhin
It has some subtle typing differences compared to 3.6.1, see e.g. https://docs.python.org/3/library/typing.html#typing.NamedTuple Also, we can't easily test it, it's unlikely to be in use anywhere anyways, and various dependencies already dropped support for it or are going to (e.g. PyQt 6). See #4800
2020-12-19Merge branch 'master' into more-sophisticated-adblockÁrni Dagur
2020-12-19Fix flake8 complaintsÁrni Dagur
2020-10-26Initial drop of Python 3.5Florian Bruhin
See #4800
2019-08-11flake8: Turn off pydocstyle D412Florian Bruhin
2019-07-22flake8: Ignore B011 in testsFlorian Bruhin
2019-02-16Use per-file-ignores built into the new flake8Florian Bruhin
2018-12-10Fix lintFlorian Bruhin
2018-10-29Update flake8 dependenciesFlorian Bruhin
2018-06-11flake8: Don't require docstrings for stuff under tests/Florian Bruhin
2018-04-24Update commentFlorian Bruhin
2018-03-20Fix ignore for new flake8-per-file-ignores releaseFlorian Bruhin
2018-03-09Updated flake8-per-file-ignores to version 0.5Sebastian Noack
2017-12-19Add new B008 to flake8 ignoresFlorian Bruhin
2017-11-26Add flake8-bugbearFlorian Bruhin
2017-11-26Add flake8-builtinsFlorian Bruhin
2017-11-26Upgrade pydocstyle/flake8-docstringsFlorian Bruhin
See #3320
2017-11-26update flake8 and flake8-deprecatedRyan Farley
Updated requirements and adjusted the configuration in `.flake8`; other files have been modified where the lack of per-file auto-ignore caused problems, where putty's `# flake8: disable=` syntax could be replaced with a simpler `noqa`, or where pylint directives already suppressed the same error.
2017-08-06Merge remote-tracking branch 'upstream/master' into HEADRyan Roden-Corrent
2017-07-12SQL code review.Ryan Roden-Corrent
- Fix flake8 - history.clear should also clear completion table - call _resize_columns in set_model, not set_pattern - add more unit-testing for the history completion table
2017-07-12SQL code review fixes.Ryan Roden-Corrent
- Ignore invalid variable name in flake8 (pylint already checks this and we don't want to have to double-ignore) - Fix and test completion bug with `:set asdf ` - Remove unused import - Use `assert not func.called` instead of `func.assert_not_called` for backwards compatibility
2017-07-04Fix flake8Florian Bruhin
2017-04-13Adjust flake8 configFlorian Bruhin
Since we now ignore this on a per-file level for pylint, we need to do the same for flake8 too.
2017-02-05flake8: Ignore E722Florian Bruhin
2016-11-08flake8: Get rid of 'hacking' pluginFlorian Bruhin
It doesn't seem to be intended to be used outside OpenStack, and I'm not sure if it even works properly in our setup...
2016-09-05flake8: Disable invalid naming for some modulesFlorian Bruhin
2016-08-23flake8: Ignore E731 (do not assign a lambda expr)Florian Bruhin
2016-07-21flake8: Ignore all dotfilesFlorian Bruhin
2016-07-13flake8 requirements: Get rid of ebb-lintFlorian Bruhin
We've had many checks disabled - these are the ones we actually lose: L104 Docstrings must use Napoleon, not reStructuredText fields. L205 __init__.py is not allowed to contain function or class definitions. L206 Implicit relative imports are not allowed. L208 Pokémon exception handling is always a mistake. If the intent is really to catch and ignore exceptions, explicitly name which exception types to silence. L209 return, del, raise, assert, print (in python 2, without print_function) yield, and yield from are statements, not functions, and as such, do not require parentheses. L210 Instead of intentionally relying on the side effects of map, filter, or a comprehension, write an explicit for loop. L211 Using map or filter with a lambda as the first argument is always better written as list comprehension or generator expression. An expression is more readable and extensible, and less importantly, doesn't incur as much function call overhead. L212 Using @staticmethod is always wrong. L301 Files must end with a trailing newline. L303 noqa is ignored, and as such, # noqa comments should be deleted to reduce pointless noise. However, most of those are also checked by pylint (and the rest I don't really care about), and ebb-lint increases flake8's runtime a lot (45s -> almost 2min).
2016-06-20Update flake8 requirementsFlorian Bruhin
flake8 2.6.0 ------------ - Switch to pycodestyle as all future pep8 releases will use that package name - Allow for Windows users on select versions of Python to use --jobs and multiprocessing - Update bounds on McCabe - Update bounds on PyFlakes and blacklist known broken versions - Handle new PyFlakes warning with a new error code: F405 flake8-copyright 0.1.1 ---------------------- - Set line & column to 1,1 to avoid a flake8 error - Support multi-year copyright notices flake8-docstrings 0.2.8 ----------------------- - Try to import pydocstyle (not pycodestyle) as pep257 - Import either pycodestyle or pep8 to use stdin_get_value. This fixes the problem for newer Flake8’s (2.6.0+) and older ones. pycodestyle 2.0.0 ----------------- Announcements: - Repository renamed to `pycodestyle` - Added joint Code of Conduct as member of PyCQA Changes: - Added tox test support for Python 3.5 and pypy3 - Added check E275 for whitespace on `from ... import ...` lines - Added W503 to the list of codes ignored by default ignore list - Removed use of project level `.pep8` configuration file Bugs: - Fixed bug with treating `~` operator as binary - Identify binary operators as unary Other changes ------------- - Unpin mccabe as the flake8 requirement got updated - Pin pep8 as an older version gets installed otherwise - DIsable D403 warning (false-positivies)
2016-06-13Split browser into browser/browser.webkitFlorian Bruhin
2016-05-30flake8: Set min-version for flake8-future-importsFlorian Bruhin
2016-05-30requirements: Update flake8-future-import to 0.4.0Florian Bruhin
- Add two older future imports - Issue an error when a future import does not exist - Define which is the oldest Python version to be supported so that already mandatory features can be ignored and not yet supported features default to forbidden (ignoring the lower error code). - Use return code of 1 if errors occurred
2016-05-12Rename setup.cfg to .flake8Florian Bruhin
We only use it to store flake8 config, and it turns out flake8 didn't actually deprecate .flake8.
2015-06-02Switch from flake8 to pytest-{mccabe,flakes,pep8}.Florian Bruhin
2015-03-26lint: Move options from parameters to config files.Florian Bruhin
This is needed for tox support as we get rid of run_checks.py.
2015-02-18flake8: Ignore W503.Florian Bruhin
2015-02-16Add session support.Florian Bruhin
Closes #12. See #499. See #11. This adds PyYAML as a new dependency. It adds the following new commands: :session-delete <name> Delete a session. :session-load <name> Load a session. :session-save [<name>] Save a session. :wq [<name>] Save open pages and quit. And the following new settings: general -> save-session: Whether to always save the open pages.
2015-02-08flake8: Ignore E402.Florian Bruhin
2015-02-08Remove ez_setup.py exclude from .flake8.Florian Bruhin
We don't ship that file anymore, and it seems to trigger a bug in pep8.
2015-02-01Re-enable some flake8 checks.Florian Bruhin
2014-09-22Merge branch 'newcmd'Florian Bruhin
Conflicts: .flake8 pkg/PKGBUILD.qutebrowser-git qutebrowser/browser/commands.py qutebrowser/browser/hints.py qutebrowser/config/configdata.py qutebrowser/network/qutescheme.py qutebrowser/test/config/test_configtypes.py qutebrowser/utils/utils.py
2014-09-15Fix lintFlorian Bruhin
2014-09-08Lots of fixes for new command system.Florian Bruhin
Squashed commit: - Fix getting current URL - Get rid of *args for hints. - Make enums work. - Fix moving commands to utilcmds. - Fix enums in argparse - Fix arg splitting for hints. - Fix default enum args. - Fix argument splitting for hints if None is given. - Fix set_cmd_text with flags and fix {url}. - Fix unittests - Fix tuple types for arguments. - Fix scroll-page. - Fix lint - Fix open_target. - Others
2014-08-07pyflakes: Ignore E702Florian Bruhin
2014-08-06flake8: Ignore W292Florian Bruhin
2014-08-05flake8: Ignore redefinitionFlorian Bruhin
2014-06-22Ignore "multiple spaces after operator" for pyflakesFlorian Bruhin
2014-06-19Add vim modelines to all files.Florian Bruhin