debian/0000775000000000000000000000000012313775340007175 5ustar debian/changelog0000664000000000000000000000203712313775335011055 0ustar python-flake8 (2.1.0-1ubuntu1) trusty; urgency=medium * debian/tests/tools: Call flake8 on some actual files (setup.py as a known-good one, and a synthetic one for a known-bad one) instead of without arguments on an empty directory. -- Martin Pitt Mon, 24 Mar 2014 10:28:25 +0100 python-flake8 (2.1.0-1) unstable; urgency=low * Team upload. * New upstream release * Add manpage. Closes: #722704 * debian/control: - Update versioned depends * Make basic autopkgtest -- Jackson Doak Tue, 05 Nov 2013 16:52:26 +1100 python-flake8 (2.0-2) unstable; urgency=low * Team upload. * Add additional build-dependencies, such that dh_python2|3 can correctly resolve python modules -> debian package name dependencies. (Closes: #725236) -- Dmitrijs Ledkovs Thu, 03 Oct 2013 09:09:42 +0100 python-flake8 (2.0-1) unstable; urgency=low * Initial release (Closes: #661044) -- Thomas Goirand Sat, 29 Jun 2013 05:42:51 +0000 debian/rules0000775000000000000000000000172612303432724010256 0ustar #!/usr/bin/make -f PY2_PACKAGE_NAME=python-flake8 PY3_PACKAGE_NAME=python3-flake8 PYVERS=$(shell pyversions -r) PY3VERS=$(shell py3versions -r) %: dh $@ --with python2,python3 override_dh_auto_clean: rm -rf flake8.egg-info rm -rf build dh_auto_clean override_dh_auto_build: set -xe; \ for py in $(PYVERS) $(PY3VERS); do \ $$py setup.py build; \ done # Remove me when dh_python2 can handle this file rm -vf debian/*/usr/lib/python*/*-packages/*.egg-info/SOURCES.txt override_dh_auto_install: set -xe; \ for py in $(PYVERS); do \ $$py setup.py install --root=debian/python-flake8 --install-layout=deb ; \ done set -xe; \ for py in $(PY3VERS); do \ $$py setup.py install --root=debian/python3-flake8 --install-layout=deb ; \ done rm -rf debian/python3-flake8/usr/bin override_dh_python2: dh_python2 --shebang=/usr/bin/python override_dh_python3: dh_python3 --shebang=/usr/bin/python3 override_dh_installchangelogs: dh_installchangelogs CHANGES.rst debian/flake8.10000664000000000000000000000473112303432724010431 0ustar .TH FLAKE8 "1" "November 2013" "flake8 2.0 (pep8: 1.4.6, mccabe: 0.2, pyflakes: 0.7.3)" "User Commands" .SH NAME flake8 \- code checker using pep8 and pyflakes .SH SYNOPSIS .B flake8 [\fIoptions\fR] \fIinput \fR... .SH OPTIONS .TP \fB\-\-version\fR show program's version number and exit .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-v\fR, \fB\-\-verbose\fR print status messages, or debug with \fB\-vv\fR .TP \fB\-q\fR, \fB\-\-quiet\fR report only file names, or nothing with \fB\-qq\fR .TP \fB\-\-first\fR show first occurrence of each error .TP \fB\-\-exclude\fR=\fIpatterns\fR exclude files or directories which match these comma separated patterns (default: \&.svn,CVS,.bzr,.hg,.git,__pycache__) .TP \fB\-\-filename\fR=\fIpatterns\fR when parsing directories, only check filenames matching these comma separated patterns (default: *.py) .TP \fB\-\-select\fR=\fIerrors\fR select errors and warnings (e.g. E,W6) .TP \fB\-\-ignore\fR=\fIerrors\fR skip errors and warnings (e.g. E4,W) .TP \fB\-\-show\-source\fR show source code for each error .TP \fB\-\-show\-pep8\fR show text of PEP 8 for each error (implies \fB\-\-first\fR) .TP \fB\-\-statistics\fR count errors and warnings .TP \fB\-\-count\fR print total number of errors and warnings to standard error and set exit code to 1 if total is not null .TP \fB\-\-max\-line\-length\fR=\fIn\fR set maximum allowed line length (default: 79) .TP \fB\-\-hang\-closing\fR hang closing bracket instead of matching indentation of opening bracket's line .TP \fB\-\-format\fR=\fIformat\fR set the error format [default|pylint|] .TP \fB\-\-diff\fR report only lines changed according to the unified diff received on STDIN .TP \fB\-\-exit\-zero\fR exit with code 0 even if there are errors .TP \fB\-\-max\-complexity\fR=\fIMAX_COMPLEXITY\fR McCabe complexity threshold .TP \fB\-\-builtins\fR=\fIBUILTINS\fR define more built\-ins, comma separated .TP \fB\-\-install\-hook\fR Install the appropriate hook for this repository. .IP Testing Options: .TP \fB\-\-benchmark\fR measure processing speed .IP Configuration: .IP The project options are read from the [flake8] section of the tox.ini file or the setup.cfg file located in any parent folder of the path(s) being processed. Allowed options are: exclude, filename, select, ignore, max\-line\-length, hang\-closing, count, format, quiet, showpep8, show\-source, statistics, verbose, max\-complexity, builtins. .TP \fB\-\-config\fR=\fIpath\fR user config file location (default: ~/.config/flake8) debian/docs0000664000000000000000000000003412303432724010040 0ustar CONTRIBUTORS.txt README.rst debian/copyright0000664000000000000000000000251512303432724011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: flake8 Source: http://bitbucket.org/tarek/flake8 Files: * Copyright: 2011 Tarek Ziade License: Expat Files: debian/* Copyright: 2013 Chris Johnston License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/watch0000664000000000000000000000012012303432724010212 0ustar version=3 http://pypi.python.org/packages/source/f/flake8/flake8-(.*)\.tar\.gz debian/python-flake8.manpages0000664000000000000000000000001712303432724013374 0ustar debian/flake8.1debian/compat0000664000000000000000000000000212303432724010366 0ustar 9 debian/tests/0000775000000000000000000000000012313775267010347 5ustar debian/tests/tools0000664000000000000000000000111712313775267011432 0ustar #!/bin/sh set -efu # setup.py should be clean flake8 setup.py # create a known-bad file cat << EOF > $ADTTMP/test.py import sys # unused import print('Hello world, this is an overly long line for PEP-8. We expect flake8 to complain') # undeclared variable count += 1 EOF set +e flake8 $ADTTMP/test.py > $ADTTMP/out RC=$? set -e echo 'flake8 output on known-bad file:' cat $ADTTMP/out if [ $RC -eq 0 ]; then echo "flake8 expected to fail, but it succeeded:" >&2 exit 1 fi grep -q 'F401.*sys' $ADTTMP/out grep -q 'E501.*line too long' $ADTTMP/out grep -q 'F821.*count' $ADTTMP/out debian/tests/control0000664000000000000000000000002712303432724011734 0ustar Tests: tools Depends: @debian/control0000664000000000000000000000355112313775336010611 0ustar Source: python-flake8 Section: python Priority: optional Uploaders: Chris Johnston , Thomas Goirand Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Build-Depends: debhelper (>= 9), python-all, python-setuptools, python3-all, python3-setuptools, pyflakes (>= 0.7.3), pep8 (>= 1.4.6), python3-pep8 (>= 1.4.6), python3-mccabe (>= 0.2.1) Standards-Version: 3.9.4 Homepage: http://bitbucket.org/tarek/flake8 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-flake8/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-flake8/trunk/ X-Python-Version: >= 2.6 X-Python3-Version: >=3.1 XS-Testsuite: autopkgtest Package: python-flake8 Architecture: any Depends: pep8 (>= 1.4.6), pyflakes (>= 0.7.3), python-mccabe (>= 0.2.1), ${misc:Depends}, ${python:Depends} Description: code checker using pep8 and pyflakes Flake8 is a wrapper around PyFlakes, pep8, and Ned's McCabe script. Flake8 runs all tools by launching the single 'flake8' script, but ignores pep8 and PyFlakes extended options and just uses defaults. It displays the warnings in a per-file, merged output. . This package provides Python 2 module bindings only. Package: python3-flake8 Architecture: any Depends: pep8 (>= 1.4.6), pyflakes (>= 0.7.3), python-flake8, python3-mccabe (>= 0.2.1), ${misc:Depends}, ${python3:Depends} Description: code checker using pep8 and pyflakes (Python 3) Flake8 is a wrapper around PyFlakes, pep8, and Ned's McCabe script. Flake8 runs all tools by launching the single 'flake8' script, but ignores pep8 and PyFlakes extended options and just uses defaults. It displays the warnings in a per-file, merged output. . This package provides Python 3 module bindings only. debian/source/0000775000000000000000000000000012303432724010470 5ustar debian/source/format0000664000000000000000000000001412303432724011676 0ustar 3.0 (quilt)