Commit Graph

167 Commits

Author SHA1 Message Date
Zuul bc95cb4ab5 Merge "Project Migration to PyCQA" 2019-07-24 17:54:39 +00:00
Stephen Finucane 57d1e9afc9 Project Migration to PyCQA
This change rehomes the project to PyCQA [1] as reported to the
openstack-dev mailing list [2].

[1] https://mail.python.org/pipermail/code-quality/2019-July/001112.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007878.html

Change-Id: I5472bea4994664495220ee4ab565f95666f21eee
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Depends-On: I740c66cd959db1efa8ca8c9f29d4da4b66fbd993
2019-07-18 14:30:50 +01:00
OpenDev Sysadmins 89a3dea56a OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:01 +00:00
Jenkins 88d50ec108 Merge "Remove os.path.abspath() in ignore paths" 2017-03-21 19:48:17 +00:00
Jenkins 711bac3c76 Merge "Fix ignore_path_errors call in main" 2017-03-21 19:48:12 +00:00
Julien Danjou 6868551b12 Remove os.path.abspath() in ignore paths
The filenames are actually relative in validate(), so nothing matches otherwise.

Change-Id: Ie9c3d2f0592817e893125f7725e9cd5e9037a942
2017-03-15 14:49:08 +01:00
Julien Danjou f612f0e508 Fix ignore_path_errors call in main
The `parse_ignore_path_errors' function expects a list of paths, not an
individual path.

Change-Id: Icc8a4721b38776d8268c731ea5b624a3e4a3b2a9
2017-03-15 14:07:12 +01:00
Ned Batchelder bcdaf5f788 Add a -q option to be silent on success
Change-Id: I5cd7f72694d525420a46e5ec2aca1b394bbf7b90
2017-01-14 20:01:59 -05:00
Andreas Jaeger 08be40a220 Change py34 to py35
Master is running on xenial now which tests python35, so change default
target to py35 in tox.ini.

Change-Id: Idf8672922a5508da841f7355c95b50a221416c0c
2016-12-15 20:04:23 +01:00
Jenkins 4ef0e117d8 Merge "Skip long line check for rst definition list term" 2016-01-29 12:28:51 +00:00
KATO Tomoyuki a96c31fb3e Skip long line check for rst definition list term
Change-Id: Ieb272e506034eac7129c24ee0e0fbc40b55d11b1
Closes-Bug: #1533238
2016-01-26 12:37:05 +09:00
Jenkins 6e581553a4 Merge "remove python 2.6 trove classifier" 2016-01-26 01:15:52 +00:00
Jenkins 3c787e753f Merge "Remove support for py33/py26" 2016-01-25 22:41:25 +00:00
Jenkins d5816ab7f0 Merge "Put py34 first in the env order of tox" 2016-01-25 22:41:19 +00:00
Jenkins 2b4c3f54aa Merge "Deprecated tox -downloadcache option removed" 2016-01-25 22:39:18 +00:00
Jenkins 74ee01c804 Merge "Added the launchpad bug url and fixed one typo" 2016-01-25 22:38:54 +00:00
Andreas Jaeger f6cb9307f3 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:07:33 +01:00
reedip 5abd30494e Remove support for py33/py26
Python 3.3/Python 2.6 is not supported from Mitaka, as per Infra.
The following patch removes the support for the same.

Change-Id: Ibb91e89abf0277466b28d2df74f89e46c04b5d42
Closes-Bug: #1526170
2016-01-07 01:26:39 +00:00
Doug Hellmann 8ed2fba6e7 remove python 2.6 trove classifier
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.

Change-Id: I02274f05179c68c828bee67e95cf50143f95e7fa
2015-12-23 01:31:08 +00:00
Janonymous 0e7e4b1eaf Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: Ic4850e0dde4080e0faceb78665e11558eb4f72ba
Closes-bug: #1489059
2015-12-22 18:21:38 +05:30
Ondřej Nový b0dd12d737 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Id9cb6a024049932501c41b393ce9cf9ad7c2cc86
2015-12-11 21:14:38 +01:00
venkatamahesh 864e09308f Added the launchpad bug url and fixed one typo
The doc8 bugs launchpad url is added. And the
sphinx documentation path is corrected to
doc/build

Change-Id: Ia5dc6b2490d2421549bf9206a1e21aa379137c02
2015-11-23 20:52:49 +05:30
Jenkins b2c19dd214 Merge "Use a more relevant launchpad home-page url" 2015-10-19 18:12:07 +00:00
Jeremy Stanley 17910300af Update .gitreview for new namespace
Change-Id: I540686ed04403f8e46225550b6b5ea12c0f3c7b0
2015-10-17 22:07:36 +00:00
Joshua Harlow 5115b8685c Use a more relevant launchpad home-page url
Change-Id: Idac438f4eb1a8eb9ac9f7011e1bc007074480515
2015-10-15 16:08:43 -07:00
John L. Villalovos 17f56bb95e Fix grammar issue in README.rst
Fix minor grammar issue in README.rst

Change-Id: I172307c98a3e108bb72a7cc652c5339b409162d0
2015-09-30 16:36:17 -07:00
Joshua Harlow 65138ae3b2 Fix invalid table formatting
Fixes error related to table offsets:

System Message: ERROR/3 (<string>, line 117)

Malformed table. Text in column margin in table line 5.

Change-Id: If46d0ab0dc1fab1adccf63d43433f842ead2123d
2015-09-25 19:34:56 +00:00
Sam Stoelinga 64f22e443f Fix issue of checking max_len for directives
This patch changes the regex to also match directives
which start with whitespace.

Closes-Bug: #1487302

Change-Id: I4c3168228164d865cc31dfd24160c41267aeb016
2015-08-21 23:51:14 +08:00
Joshua Harlow 062bf244b6 Lowercase the help messages
It seems to be common practice to lowercase these instead
of uppercasing the first word so let's just follow that
practice.

Change-Id: I2c8620257cd9f0566e1d7e1ec88461f18f0bcef4
2015-04-09 08:26:27 -07:00
Jenkins 24a3c9642a Merge "Allow ignore specific error codes in files" 2015-04-09 15:08:03 +00:00
Joshua Harlow b2adee882b Allow ignore specific error codes in files
Instead of only ignoring full files or ignoring full
codes for all files, allow for ignoring specific errors
for certain files.

Change-Id: I0ebfbe1d2dc68990c84bc0b47d872e44e19b5b2a
2015-03-09 15:57:04 -07:00
Joshua Harlow 7ad4aaec88 Handle the linter returning anonyomous line numbers
When sphinx (and by association restructuredtext-lint)
finds an error with say a anonymous backref it does not
include the line number (it defaults to none); so in this
case covert that line number to ? and output that as the
line number in the output shown to the user.

Change-Id: I013857cdb6a24cf11d94265358b8294dfed0236d
2015-03-05 22:56:51 +00:00
Julien Danjou 4d82c269ab Fix Python 3 support
This fixes Python 3 support for doc8.

Change-Id: Id3f3a35f2d68c4cb6eefcf7a960d7991b8f4522f
2015-01-27 14:33:56 +01:00
Jeremy Stanley e9cd504124 Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: Ic058aebbb1818a0bb9597848ee1e6433b153c4dd
2014-12-05 03:30:44 +00:00
Jenkins 19cc3f5576 Merge "Fix the 'ignore-path' config option" 2014-10-25 00:28:30 +00:00
Jenkins 00a13a3239 Merge "Allow overriding file encoding" 2014-10-23 19:35:54 +00:00
Joshua Harlow 666805dd8e Fix the 'ignore-path' config option
The option shouldn't be named 'ignore_path' but should be
named 'ignore-path' to match the docs and to match the CLI
argument.

Change-Id: If5346910b259a0c092eea5c9adde281c2f2ff347
2014-10-23 12:35:17 -07:00
Joshua Harlow 04a710c687 Allow overriding file encoding
Chardet doesn't always seem to correctly detect files encoding
correctly in all circumstances, to make it so that a user can
specify the exact encoding of there files allow a new config
option and a new CLI option that allows for manually overriding
the encoding that chardet will try to determine.

If enabled chardet detection will no longer run.

Fixes bug 1384463

Change-Id: Ie8baf3f79083e1495c7420a9d0569390cad2115e
2014-10-22 17:30:58 -07:00
Christian Berendt 5a4341727e Add check D005 - no newline at end of file
Change-Id: I160bb7e9b3c904655567caee999ac91366668109
2014-09-30 21:44:59 +02:00
Christian Berendt 8b8f22329b Remove commented configuration of the intersphinx module
The intersphinx module should not be used. Remove commented configuration
of the intersphinx module to not enable it in the future.

Change-Id: I7140112d61651d281c52fe6ecf4e81f80f055717
Related-Bug: #1368910
2014-09-23 22:32:25 +02:00
Joshua Harlow 3912dca016 Allow a default_extension to be provided
When a file is found without an extension allow a CLI
provided default_extension to be used in these cases
so that files without extensions can be classified as
known file extension types.

Change-Id: I115ccc92ccd51a7018672b98b639ade30869f939
2014-09-17 17:56:45 -07:00
Jenkins f2ec6f2550 Merge "Ignore long-lines with urls when in text searching mode" 2014-09-15 00:08:13 +00:00
Jenkins 3f7c58cf5a Merge "Ensure reading is done in one place only" 2014-09-15 00:07:37 +00:00
Christian Berendt 6baf013203 Warn against sorting requirements
Change-Id: I8f1786ec73e3b32a5877c499f4f0e58871b37a2a
2014-09-12 15:29:59 +02:00
Joshua Harlow beed9aa8b8 Ensure reading is done in one place only
Instead of having reading being split across the lines_iter
method and the raw_content property just have it occur in
a common function so that it can be done once and only once.

Change-Id: I603bc4e85ad489d5397a78d6c987e15a0515f7ea
2014-09-11 13:12:53 -07:00
Joshua Harlow 87bcf0bb32 Just use get() instead of pop()
Now that these are functions we don't need to
destroy the incoming configuration dictionary
by popping things from it.

Change-Id: I5d0ff032f0e7c9e79d39c3f5d533c43801502a8c
2014-09-08 11:47:28 -07:00
Joshua Harlow 355029419e Split the main function into pieces
Have there be a scanning function that contained the
previous file scanning logic, then a validating function
that did the checking logic and then have the main function
call into those functions instead of containing all the
same logic in its own function.

Change-Id: Ie35665a016164122be294fee41e7ce54605d832e
2014-09-08 11:42:38 -07:00
Joshua Harlow 06e610bde7 Ignore long-lines with urls when in text searching mode
Change-Id: I57b736d441b9650b0f7bc9efe9692b78b6cbf508
2014-09-08 11:38:32 -07:00
Jenkins 89779ed115 Merge "Cache the lines that are read instead of re-reading" 2014-09-08 17:30:04 +00:00
Andreas Jaeger 83de2e6912 Improve help options
Capitalize help strings and end with "." to follow best practice from
other tools. Also improve some strings.

Change-Id: I7005f4a187385096d6a9c1e5cb1322ba76048a1c
2014-09-07 17:53:45 +02:00