Ran Benita
104f8fc836
Update mypy from 0.711 to 0.720
...
Release notes: http://mypy-lang.blogspot.com/2019/07/mypy-0720-released.html
2019-07-17 22:39:10 +03:00
Ran Benita
fd8f92d0e7
Run mypy on src/ and testing/ together
...
This makes testing/ actually pick up the pytest imports -- otherwise
they are opaque and we don't actually test the types.
A single run is also a bit faster and simpler. The original reason why
we split it is no longer relevant (we fixed the problems).
2019-07-16 23:29:02 +03:00
Ran Benita
c1167ac552
Add rudimentary mypy type checking
...
Add a very lax mypy configuration, add it to tox -e linting, and
fix/ignore the few errors that come up. The idea is to get it running
before diving in too much.
This enables:
- Progressively adding type annotations and enabling more strict
options, which will improve the codebase (IMO).
- Annotating the public API in-line, and eventually exposing it to
library users who use type checkers (with a py.typed file).
Though, none of this is done yet.
Refs https://github.com/pytest-dev/pytest/issues/3342 .
2019-07-09 10:49:17 +03:00
Anthony Sottile
99057555e1
manual changes to .pre-commit-config.yaml
2019-06-03 12:08:01 -03:00
Anthony Sottile
b81173ea0c
Upgrade pre-commit/pre-commit-hooks
2019-05-15 10:19:12 -07:00
Anthony Sottile
dc75b6af47
Use fix-encoding-pragma pre-commit hook
2019-05-14 15:56:31 -07:00
Bruno Oliveira
dae455e8a3
Add Tidelift management docs and blurb on README, as discussed in the ML
2019-05-09 20:10:30 -03:00
Jon Dufresne
143499d041
Update Black URLs
...
> Black, your uncompromising #Python code formatter, was a project
> created with the community in mind from Day 1. Today we moved it under
> the PSF umbrella. It's now available on GitHub under
> https://github.com/python/black/ . You install and use it just like
> before.
https://twitter.com/llanga/status/1123980466292445190
2019-05-04 08:28:50 -07:00
Anthony Sottile
da2e092163
pre-commit autoupdate
2019-04-12 04:52:47 -07:00
Anthony Sottile
acece23697
pre-commit autoupdate
2019-01-29 21:13:32 -08:00
Anthony Sottile
e5f823a3a7
fixes for flake8 3.7
2019-01-29 21:11:15 -08:00
Anthony Sottile
92a2c1a9c4
remove and ban py.io.BytesIO, py.process, py.path.local.sysfind
2019-01-21 19:51:16 -08:00
Anthony Sottile
0c6ca0da62
Fix usages of py.io.saferepr
2019-01-20 16:36:23 -08:00
Anthony Sottile
ec5e279f93
Remove and ban use of py.builtin
2019-01-20 11:59:48 -08:00
Anthony Sottile
af00367fed
Upgrade pyupgrade for crlf fixes (again)
2018-10-31 13:26:49 -07:00
Anthony Sottile
b17e6cea21
Upgrade pre-commit hooks
2018-10-30 11:02:44 -07:00
Anthony Sottile
2368fbb63c
Apply reorder-python-imports to all files
2018-10-25 00:01:29 -07:00
Anthony Sottile
11ff14be1f
Upgrade pre-commit/pre-commit-hooks to 2.0.0
2018-10-18 20:11:35 -07:00
Ronny Pfannschmidt
4736b2bdfb
address review comments
2018-10-11 20:48:30 +02:00
Ronny Pfannschmidt
b48e23d54c
port interals of tmpdir to a basic pathlib implementation
...
this is still lacking locking and cleanup of the folders
2018-10-11 07:15:08 +02:00
Bruno Oliveira
9a3836a0cf
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-09 19:34:04 -03:00
Anthony Sottile
11a07211b6
re-enable linting tox env on windows
2018-10-09 13:01:51 -07:00
Anthony Sottile
1caf6d5907
Upgrade pre-commit hooks
2018-10-08 10:10:46 -07:00
Bruno Oliveira
fcc5b6d604
Add "deprecation" to possible changelog entries in pre-commit
2018-09-22 18:43:22 -03:00
Anthony Sottile
826adafe2e
Improve pre-commit detection for changelog filenames
2018-09-07 09:36:09 -07:00
Anthony Sottile
4de247cfa0
Use more flexible `language_version: python3`
2018-08-20 06:27:35 -07:00
Anthony Sottile
a80e031c62
Enforce that changelog files are .rst
2018-08-01 15:22:43 -07:00
Anthony Sottile
8d401cdb9d
Use upstream rst-backticks hook
2018-07-29 15:46:06 -07:00
Anthony Sottile
50f030d233
Correct code blocks in docs
2018-07-04 15:16:34 -07:00
Anthony Sottile
cbaa7dd56a
Upgrade pre-commit hooks except pyupgrade
2018-06-26 06:35:27 -07:00
Anthony Sottile
0f2d7dc73c
blacken docs
2018-06-03 07:58:46 -07:00
Anthony Sottile
2a8463c745
Call rst-lint directly with pre-commit
2018-05-25 18:16:54 -07:00
Ronny Pfannschmidt
df17bb2bd3
switch linting tox env to use pre-commit, clean out travis linting env as unneeded
2018-05-24 14:17:09 +02:00
Ronny Pfannschmidt
703e4b11ba
run black
2018-05-23 16:48:46 +02:00
Ronny Pfannschmidt
3e1590bcfc
sort out pyupgrade fallout
2018-05-23 16:45:58 +02:00
Ronny Pfannschmidt
86fc31db8d
apply most other hooks and opt out of black reformating
2018-05-23 16:45:58 +02:00
Ronny Pfannschmidt
d41119ed04
add the config
2018-05-23 16:45:09 +02:00