Commit graph

77 commits

Author SHA1 Message Date
Anthony Sottile
a021df6fdd drop python3.4 2020-10-02 16:47:00 -07:00
Anthony Sottile
f0e1324d6d upgrade black and run via pre-commit 2020-08-27 15:30:14 -07:00
Anthony Sottile
309db63ba8 switch dogfood to use python3 2020-05-07 11:29:37 -07:00
Anthony Sottile
1649827396 exclude broken pylint version
https://github.com/PyCQA/pylint/issues/3524
2020-04-27 13:00:17 -07:00
Anthony Sottile
93a17a806d instrument coverage on tests and require 100% coverage there 2020-03-23 12:15:29 -07:00
Eric N. Vander Weele
03ee3644dd tox: Avoid installing pytest==5.2.3 due to an introduced regression
This will ensure that others don't git bitten by accidentally picking up
`pytest==5.2.3`.

See https://github.com/pytest-dev/pytest/issues/6194.
2019-11-15 20:53:03 +09:00
Djailla
f2a17ddf33 Cleanup CI and add python 3.8 support 2019-11-05 10:52:55 +01:00
Eric N. Vander Weele
b42e758ac7 linters: Add flake8-bugbear for finding bugs and design problems
Also, make appropriate changes to satisfy issues flagged by
`flake8-bugbear`.
2019-10-25 17:11:30 -04:00
Anthony Sottile
b66ebd7034 move from optparse to argparse 2019-08-17 20:09:45 -07:00
Anthony Sottile
3d1069a397 Remove workaround for broken pydocstyle / flake8-docstrings 2019-08-02 10:57:15 -07:00
Anthony Sottile
7506847c9a fix CI build 2019-07-08 09:07:37 -07:00
Anthony Sottile
d81de455b6 Ensure typing imports don't break old patch versions 2019-05-20 22:30:06 -07:00
Anthony Sottile
fb7e9338cd mypy now passes 2019-05-19 17:31:04 -07:00
Anthony Sottile
65f97106ae Updates for changes in black's cli 2019-03-18 12:21:00 -07:00
Anthony Sottile
3127d213f6 Some lint / mypy fixes 2019-01-24 02:15:25 -08:00
Ian Stapleton Cordasco
c58a4662d8
Use black to reformat Flake8
Instead of just using Flake8 and pylint to keep Flake8 clean, let's also
use black to make it less manual for clean-up.
2018-10-20 12:37:14 -05:00
Miro Hrončok
2639bc648c Remove py33 from tox
Got:

    flake8 requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
    but the running Python is 3.3.7
2018-06-05 14:16:47 +00:00
Ville Skyttä
c5e47063ab Add Python 3.7 to tox and GitLab CI 2018-05-20 22:01:25 +02:00
Jimi Cullen
e61d9d2466 Add W504 to default ignore list. 2018-04-15 14:17:26 +00:00
Ian Stapleton Cordasco
696063ed1a
Make our flake8 output more colorful 2017-11-26 11:25:11 -06:00
Ian Stapleton Cordasco
c60546e896
Add pep8-naming to flake8 linting 2017-11-26 11:25:09 -06:00
Ian Cordasco
804eef4368
Upgrade dependencies when dogfooding 2017-05-27 19:31:10 -05:00
Ian Cordasco
29d9090954
Change dogfood environment to use Python 2.7
This eliminates any ambiguity with respect to which version of Python is
necessary for the dogfood environment and should fix up the AppVeyor
tests
2017-01-21 13:51:01 -06:00
Anthony Sottile
3afd74edf8 Add py36 to tox, correct a tiny typo 2017-01-20 12:18:29 -08:00
Ian Cordasco
f32e151b47
Fix up GitLab CI runners
PyLint does not yet support 3.6 [1] and the dogfood environment really
shouldn't be pinning to a specific version of Python 3.

[1]: https://github.com/PyCQA/pylint/issues/1241
2017-01-15 09:33:50 -06:00
Ian Cordasco
4629c75a67
Blacklist pytest 3.0.5
See also https://github.com/pytest-dev/pytest/issues/2118
2016-12-23 09:34:54 -06:00
Ondřej Nový
8a3869e965 Require mock 2.0.0, because unit tests are failing on older one 2016-11-22 22:43:54 +01:00
Ian Cordasco
662d787285
Revert "Update release machinery to include manpages"
This reverts commit f6f01b469c.
2016-11-14 09:49:03 -06:00
Ian Cordasco
f6f01b469c
Update release machinery to include manpages 2016-11-14 09:48:48 -06:00
Ian Cordasco
e380665530
Add a man page for Flake8
Document Flake8 for users expecting `man flake8` to work and include the
man page in Flake8's documentation.

Closes #247
2016-11-13 14:40:14 -06:00
Ian Cordasco
b995d56e19
Add coverage reporting and uploading
Upload our coverage data to codecov.io and aggregate it on test runs.
2016-08-06 15:21:50 -05:00
Ian Cordasco
c1d21393bf
Set dogfood testenv to Python 3.5
AppVeyor doesn't allow us to use `python3` to select the version of
Python 3.x that is linked as `python3.exe` so we must be explicit.
2016-08-03 16:48:39 -05:00
Ian Cordasco
63f5f15068
Re-allow for relative paths for exclude
Previously, all testing was done from the directory in which the
configuration file lived, so this bug went unnoticed. However, if you
run Flake8 against its own source from a directory above, you would
notice that the patterns in the exclude config value in tox.ini were
ignored. This is because we (like any reasonable person) are using
relative paths. The path is relative, however, to the directory in
which the configuration file was located. So we keep track of which
directory that is and use that to normalize the paths in the config
file.

Yes, there is an unrelated change to our tox.ini in this commit as
well. ;-)

Closes #194
2016-07-29 19:27:06 -05:00
Ian Cordasco
3766f3a584 Update our flake8 testenv dependencies
We had capped Flake8 until flake8-import-order created a new release. We
can now add a lower bound to flake8-import-order and uncap Flake8.
2016-07-26 19:32:49 +00:00
Fabian Neundorf
777e7e3854 Force flake8 test to below 3.x
Because flake8-import-order does not support Flake8 3.x yet, we need to force
a Flake8 version that is supported.
2016-07-25 13:53:10 +02:00
Ian Cordasco
58e67634cd
Add build testenv for future CI work 2016-07-10 09:31:43 -05:00
Ian Cordasco
2dec2ebc6e
Set default python for flake8 testenv 2016-07-10 09:29:57 -05:00
Ian Cordasco
41cd67f747
Simplify our test environments 2016-06-30 20:09:46 -05:00
Ian Cordasco
6208a4969b
Add README to linters
Add basepythons to dogfood and readme
2016-06-29 19:17:20 -05:00
Ian Cordasco
497f52e4b1
Add a dogfood testenv 2016-06-28 13:21:58 -05:00
Ian Cordasco
b194717d1a
Search current directory if no paths are specified
This fixes a regression in behaviour from 2.x to 3.

Closes #150
2016-06-26 15:08:58 -05:00
Ian Cordasco
6bca1c30cc
Fix linters to use src/flake8 2016-06-25 16:07:28 -05:00
Ian Cordasco
b5d13260eb
Enable GitLab CI 2016-06-25 15:28:31 -05:00
Ian Cordasco
5d1150cc27
Update the packaging so wheels work 2016-06-25 11:20:28 -05:00
Ian Cordasco
1a2c68f5da
Move flake8 into src
This is an emerging best practice and there is little reason to not
follow it
2016-06-25 10:12:13 -05:00
Ian Cordasco
8bc76f79de
Configure flake8-import-order to use Google Style
This relies on two things:

1. Properly configuring flake8-import-order to use that style
2. Properly configuring flake8-import-order to know that flake8 is our
   application name.
2016-06-17 10:26:36 -05:00
Ian Cordasco
eff77e2bc2
Set a lower-limit on flake8-docstrings
flake8-docstrings is broken on 0.2.6 with flake8 2.6.0, 0.2.7 was
released today which fixes the problem. Let's avoid that version if at
all possible.
2016-06-16 06:35:51 -05:00
Ian Cordasco
dc8fc0058d
Configure bandit to ignore subprocess warnings 2016-06-14 07:58:13 -05:00
Ian Cordasco
2e5c646d74
Exclude our fixtures from Flake8 2016-06-07 19:08:54 -05:00
Ian Cordasco
0a418f8d1e
Refactor docs requirements into file for RTD 2016-06-04 14:26:37 -05:00