Commit Graph

59 Commits

Author SHA1 Message Date
Alex Waygood
89f22278ba Bump flake8-pyi and pytype versions used in CI (#9268) 2022-11-24 14:55:26 +00:00
Alex Waygood
263427f438 Bump test dependencies; improve pycln config (#9197) 2022-11-14 11:58:45 -08:00
Alex Waygood
4f381af4c5 Upgrade mypy to 0.990 (#9123) 2022-11-07 11:20:47 -08:00
Alex Waygood
d1d1afbe3a Bump flake8-bugbear; ignore flake8-bugbear in stub files (#9069) 2022-11-02 12:18:00 -07:00
Alex Waygood
401a7b929e Bump various test dependencies; pin Python to <3.10 in CI to workaround pytype incompatibility (#9068) 2022-11-02 18:44:48 +00:00
Alex Waygood
8b41b1337b Bump flake8-pyi and black to latest versions (#8859) 2022-10-06 16:45:02 -07:00
Alex Waygood
78ca9c7390 Bump mypy to 0.982 (#8831) 2022-10-03 10:34:44 -07:00
Alex Waygood
ab2fba9c83 check_consistent.py: ignore .gitignored files (#8804) 2022-09-28 17:02:27 +01:00
Alex Waygood
48e76e8a56 Bump mypy to 0.981 (#8796) 2022-09-26 17:14:33 -07:00
Shantanu
67c858408d Upgrade to termcolor>=2 (#8766) 2022-09-19 08:17:30 +02:00
Jelle Zijlstra
c1d307fc3b black: upgrade (#8659) 2022-08-31 16:01:52 -07:00
Alex Waygood
3e5808a990 Bump flake8-pyi and pytype test dependencies (#8656) 2022-08-31 12:20:11 +01:00
Alex Waygood
b417d5796d Run flake8-noqa in CI (#8641) 2022-08-29 21:06:47 +01:00
Alex Waygood
c0f27e39f9 Upgrade pytype to 22.8.23 (#8644) 2022-08-29 14:07:11 +01:00
Alex Waygood
1b6cda86d4 Alphabetise items in requirements-tests.txt (#8635) 2022-08-28 07:59:17 -07:00
Alex Waygood
d91e5f0eff Further enhance check_consistent.py (#8604) 2022-08-26 07:50:26 -07:00
Alex Waygood
15f74295d2 Add aiohttp and tomlkit to requirements-tests.txt (#8605) 2022-08-24 23:08:54 +01:00
Rebecca Chen
1e1a586893 Update pytype_test to be compatible with the latest pytype version. (#8551)
We moved some files around =)
2022-08-17 19:18:33 -07:00
pre-commit-ci[bot]
ed06b8bf54 Upgrade flake8 to 5.0.4 (#8507)
updates:
- [github.com/pycqa/flake8: 5.0.2 → 5.0.4](https://github.com/pycqa/flake8/compare/5.0.2...5.0.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-09 09:56:19 +01:00
Rebecca Chen
ac2fe42a14 Bump pytype version. (#8478)
Picks up a fix for the pytype test failure in
https://github.com/python/typeshed/pull/8469.
2022-08-03 22:58:54 +01:00
pre-commit-ci[bot]
fc0a5a26b5 [pre-commit.ci] pre-commit autoupdate (#8461)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.4 → v2.1.1](https://github.com/hadialqattan/pycln/compare/v2.0.4...v2.1.1)
- [github.com/pycqa/flake8: 4.0.1 → 5.0.2](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)

* Update requirements-tests.txt

* Update flake8-pyi and flake8-bugbear as well

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 20:43:32 +01:00
Alex Waygood
df4618ef2d Upgrade pycln and flake8-pyi (#8464) 2022-08-02 08:43:02 +01:00
Alex Waygood
62cde01365 Upgrade flake8-pyi to 22.7.0 (#8377) 2022-07-24 03:20:35 +01:00
Alex Waygood
fceccd217c Upgrade mypy to 0.971 (#8332) 2022-07-19 16:27:05 +01:00
pre-commit-ci[bot]
89154bf4c8 [pre-commit.ci] pre-commit autoupdate (#8327)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.2 → v2.0.4](https://github.com/hadialqattan/pycln/compare/v2.0.2...v2.0.4)

* Update requirements-tests.txt

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 22:40:15 +01:00
Alex Waygood
35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +02:00
Shantanu
5ef20e8021 Use packaging to parse versions (#8314)
packaging is the standard tool for dealing with versions and
requirements. This allows us to easily support all PEP 508 specs.
packaging also has good error messages, so I don't create our own here.
This lets us get rid of our handrolled half parser and sanity checks.
I kept the whitespace consistency check, since that's just a formatting
lint and isn't testing the correctness of parsing (which we now
definitely do correctly).
2022-07-17 12:35:32 -07:00
pre-commit-ci[bot]
54e006c23d Upgrade black dependency (#8236)
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-05 00:02:43 +01:00
Alex Waygood
f5f37fed3a Upgrade pytype (#8164) 2022-06-25 18:15:43 +01:00
Stephen Rosen
199132122b Add pre-commit config for flake8 (#8068)
This makes it easier to lint your own work with `pre-commit`, but doesn't change the CI config by adding this to the pre-commit.ci skip list.

There's no way to automatically reflect the additional dependencies from the requirements file, so the flake8 plugin list needs to be a verbatim copy.

resolves #7991
2022-06-14 02:30:09 +01:00
Alex Waygood
15ad2657db Upgrade pytype (#8025)
Unblocks #7865
2022-06-07 12:13:05 +01:00
Sebastian Rittau
301caad709 Update mypy to 0.960 (#7948) 2022-05-25 14:44:22 +02:00
Alex Waygood
dd080d9840 Upgrade flake8-pyi to 22.5.1 (#7882) 2022-05-19 19:59:25 +02:00
Jelle Zijlstra
68a781d04e Upgrade pytype (#7823) 2022-05-10 14:47:10 -07:00
Alex Waygood
f8547a3f31 Use flake8-pyi 22.5.0, remove redundant parts of check_new_syntax (#7821) 2022-05-10 09:34:41 -07:00
Jelle Zijlstra
1f2a970b94 Upgrade mypy to 0.950 (#7726) 2022-04-27 19:25:02 +02:00
Sebastian Rittau
54c8f45869 pytype now supports Python 3.10 (#7700) 2022-04-27 10:59:34 +02:00
Alex Waygood
a95a862ca8 Upgrade to pytype 2022.4.26 (#7699) 2022-04-26 15:40:47 -06:00
Alex Waygood
197dac2c0c Upgrade flake8-pyi to 22.4.1 (#7662) 2022-04-18 22:52:44 +01:00
Alex Waygood
7ce4607dee Upgrade flake8-pyi to 22.4.0, enable Y026 in .flake8 config (#7650) 2022-04-17 01:23:35 +01:00
Alex Waygood
be64b01e6c Upgrade black version (#7582) 2022-04-03 22:34:44 +01:00
Sebastian Rittau
9687d53b65 Use explicit type aliases in _typeshed (#7534) 2022-03-30 11:06:07 +02:00
Alex Waygood
1192db784c Use flake8-pyi 22.3.0 (#7557)
Hot off the presses!
2022-03-26 19:27:11 +00:00
Alex Waygood
4b63f345ad Upgrade mypy version to 0.942 (#7547) 2022-03-24 18:42:26 +01:00
Sebastian Rittau
b307142f62 Update pytype to 2022.3.21 (#7532) 2022-03-22 08:30:03 +00:00
Sebastian Rittau
fdc5863337 Use stubtest 0.941 (#7490) 2022-03-15 00:37:34 -07:00
Jelle Zijlstra
fa332220b7 Fix mypy test (#7478)
* Fix `mypy_test.py` so that it actually tests the third-party stubs
* Upgrade to mypy 0.940
* Skip running mypy on `SQLAlchemy` stubs for now, to workaround a mypy crash.

Because we didn't set mypy's clean_exit parameter, it was exiting immediately after checking the stdlib, meaning `mypy_test.py` wasn't checking the third-party stubs at all.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-03-13 13:01:14 +00:00
Alex Waygood
062fc75d73 Upgrade pytype to 22.2.23 (#7375)
Unblocks #7343
2022-02-23 17:39:27 -08:00
Alex Waygood
189e4ea396 Use flake8-pyi 22.2.0 (#7338) 2022-02-20 17:46:42 -08:00
Sebastian Rittau
2dc53caffe Improve abc module and builtin function decorators (#5703) 2022-02-02 16:22:32 +01:00