Nikita Sobolev
7ac33f3a28
Fixes CI ( #734 )
...
* Fixes CI
* Fixes CI
* Fixes CI
2021-10-19 14:10:25 +03:00
Nikita Sobolev
d5e45db79b
Better linting config ( #664 )
...
* Better linting config
* Applies isort on django-stubs, only style changes
* Fixes black and isort compat
2021-07-04 16:16:43 +03:00
Nikita Sobolev
eb702384a8
Improves edit.py and its forms ( #648 )
...
* Improves edit.py and its forms
* Adds tests
2021-06-16 11:25:57 +03:00
Cesar Canassa
397e3f3dac
Adds support for pyproject.toml files ( #639 )
...
* Adds support for pyproject.toml files
Since mypy 0.900 the pyproject.toml files are supported.
This PR adds a support for it. It searchs for a `tool.django-stubs` section. This is an example configuration:
```
[tool.django-stubs]
django_settings_module = "config.settings.local"
```
Fixes #638
* Added TOML tests
* Use textwrap.dedent instead of trying to manually replace spaces
2021-06-15 01:50:31 +03:00
Daniel Hahler
3c6f438cc9
build(deps-dev): remove/unpin mypy/typing-extensions ( #593 )
...
* build(deps-dev): remove/unpin mypy/typing-extensions
Closes https://github.com/typeddjango/django-stubs/issues/592 .
* Update test_options.yml
Co-authored-by: Nikita Sobolev <mail@sobolevn.me >
2021-04-14 12:27:15 +03:00
proxy
0c41d0c6e9
create monkeypatching function for adding get_item dunder ( #526 )
...
* run black
* create monkeypatching function for adding get_item dunder
* whoops i forgot the test
* change the name in INSTALLED_APPS to make test pass
* turn the whole thing into a proper package
* move django_stubs_ext to requirements.txt
* also install requirements.txt
* attempt to fix pre-commit
* numerous small code review fixes
* fix dependency issues
* small dependency fixes
* configure proper license file location
* add the rest of the monkeypatching
* use strict mypy
* update contributing with a note monkeypatching generics
* copy release script from parent package
2020-11-11 10:04:13 +03:00
Na'aman Hirschfeld
44151c485d
updated package setup ( #485 )
...
* updated package setup
* updated to use python 3.9
* fixed test runner
* fixed typecheck tests
* fixed discrepencies
* added override to runner
* updated travis
* updated pre-commit hooks
* updated dep
2020-10-29 11:59:48 +03:00
Nikita Sobolev
40c8bfa510
Update migration.pyi ( #501 )
...
* Update migration.pyi
* Fixes tests
* Fixes tests
* Fixes tests
2020-10-26 11:43:47 +03:00
Nicolas Delaby
87856754ea
psycopg2-binary is faster to install ( #473 )
2020-09-29 12:50:11 +03:00
Kacper
4c5723d368
WIP Issue 388 ( #390 )
...
* updated mypy dependency
* update readme
* readme update v2
* pytest-mypy-plugins newer version
* updated pytest_mypy_plugins name
* update ignored errors for typechecking django test suite
Co-authored-by: Kacper Szmigiel <szmigielkacper@gmai.com >
2020-06-06 11:35:51 +03:00
Marti Raudsepp
f77073157b
Fix CI build errors ( #339 )
...
* Updated gitpython dependency to fix error:
ModuleNotFoundError: No module named 'gitdb.utils.compat'
* Updated Django repository git refs because old 3.0.x commit hash gave error:
stderr: 'fatal: reference is not a tree: 6cb30414bc0f83b49afc4cae76d4af5656effe9a'
* Newer Django version also needs new ignores.
2020-03-12 00:19:51 +03:00
Maxim Kurnikov
d666ecd36f
update dev deps, mypy to 0.760
2019-12-17 23:50:50 +03:00
Maksim Kurnikov
f02050911f
various annotation improvements ( #258 )
2019-12-12 06:42:29 +03:00
Maksim Kurnikov
4ac43c6ed6
Add Django 3.0 testing to CI ( #246 )
...
* add Django 3.0 testing to CI
* remove importlib_metadata usage
* conditionally load choices module for tests
2019-12-06 23:36:24 +03:00
Maxim Kurnikov
be3fc259d5
fix compatibility with 0.730 ( #189 )
2019-09-28 05:23:55 +03:00
Maxim Kurnikov
963d50c717
add linting stubs with flake8-pyi and check for unused imports ( #186 )
2019-09-25 02:20:23 +03:00
Daniel Hahler
afcd0d9293
Bump isort, use --diff ( #164 )
...
* dev-requirements: bump isort: 4.3.4 => 4.3.21
* isort: use --diff
* known_first_party = mypy_django_plugin
* Run isort
2019-09-23 20:45:43 +03:00
Maxim Kurnikov
6b21a0476d
Remove psycopg2 from dependencies ( #117 )
...
* remove psycopg2 from direct dependencies, only add it in tests
* bump to 1.0.1
* fix mypy
2019-07-26 18:39:42 +03:00
Maxim Kurnikov
a97d76020c
enable tests typechecking using django submodule
2019-07-24 23:44:57 +03:00
Maxim Kurnikov
c962b8ac68
attempt to add flake8 and isort
2019-03-01 02:07:53 +03:00
Maxim Kurnikov
6da5ead6f0
move to pypi version of pytest plugin
2019-02-15 22:01:35 +03:00
Maxim Kurnikov
cf6119bf9b
run black over stubs, add checking to travis
2018-12-03 18:52:44 +03:00
Maxim Kurnikov
ecb9d472e9
fix ci
2018-12-03 02:05:41 +03:00
Maxim Kurnikov
3ed0af7a4b
remove requirements for mypy external
2018-12-03 01:59:57 +03:00
Maxim Kurnikov
73d82c8056
fix ci
2018-11-29 15:29:23 +03:00
Maxim Kurnikov
b9ee979984
move to external pytest plugin
2018-11-29 15:26:53 +03:00
Maxim Kurnikov
64bc053056
move to custom pytest plugin test runner, fix tests, add Any fallback to ForeignKey
2018-11-28 00:37:04 +03:00
Maxim Kurnikov
7436d641e3
add pytest config for testing infrastructure
2018-11-10 17:37:03 +03:00
Maxim Kurnikov
a53fbc5d63
add dev-requirements like in sqlalchemy-stubs
2018-11-10 16:38:08 +03:00