Commit graph

90 commits

Author SHA1 Message Date
Anthony Sottile
4a47bab979 improve coverage 2023-07-29 15:46:40 -04:00
Anthony Sottile
aa002ee4ed require python 3.8.1+ 2022-11-18 11:33:52 -05:00
Anthony Sottile
e94fb10940 require python>=3.7 2022-08-05 19:51:08 -04:00
Anthony Sottile
430f55e6d7 remove manpage
the suggestion for packagers is to utilize help2man or similar tools to get an up-to-date manpage
2022-02-10 09:44:04 -05:00
Anthony Sottile
66071563c2 split out file discovery and test it 2021-11-14 20:04:29 -08:00
Anthony Sottile
e527b8e3ca simplify our own flake8 config 2021-11-14 08:49:01 -08:00
Anthony Sottile
ef3585b3a0 require coverage 6.x and simplify config 2021-11-14 08:14:36 -08:00
Anthony Sottile
848003cc05 add --color option 2021-11-05 20:37:08 -04:00
Anthony Sottile
ea52cb6f76 master -> main 2021-10-10 16:53:37 -07:00
Anthony Sottile
6a56056823 ignore N818 (error naming) since our exceptions do not match it 2021-07-12 20:28:31 -04:00
Anthony Sottile
358ae85120 automatic: pyupgrade --py36-plus 2021-03-30 17:37:13 -07:00
Anthony Sottile
8cc3fc01e8 some manual python2 metadata cleanup 2021-03-30 17:37:12 -07:00
Anthony Sottile
d2b8770b3f remove flake8-colors
they break `--format` in incompatible ways:
https://github.com/and3rson/flake8-colors/issues/12
2020-11-17 23:41:59 -08:00
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