Skip to content

main #792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 88 commits into from
Closed

main #792

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
4096129
cut: mypy plugin and monkey patching pkg
sbdchd Nov 25, 2020
64a5b3b
ref: fields to not use plugin and handle nullability for some fields
sbdchd Nov 25, 2020
dcdb0be
cut more config
sbdchd Nov 25, 2020
dc03754
cut old file
sbdchd Nov 25, 2020
74a4d01
update readme with initial version & use poetry
sbdchd Nov 25, 2020
19cbd79
remove old CI
sbdchd Nov 25, 2020
f145fbc
update license
sbdchd Nov 25, 2020
60b286c
delete unused scripts, fix setup.py
sbdchd Nov 26, 2020
d866392
fmt
sbdchd Nov 26, 2020
3c2ea43
remove release script
sbdchd Nov 26, 2020
54eba34
update(docs): readme with pypi badge
sbdchd Nov 26, 2020
7aa1b77
update(docs): readme with proper monkey patch
sbdchd Nov 26, 2020
a252160
add: pg field types, basic tests, nullability
sbdchd Dec 6, 2020
c9155e0
release: 0.2.0
sbdchd Dec 6, 2020
1f05448
fix: missing null param in overload
sbdchd Dec 11, 2020
edf7e06
add flake8, move tests
sbdchd Dec 11, 2020
51b6948
release: 0.2.1
sbdchd Dec 11, 2020
ef75c0a
update(docs): readme with info about defining FK id fields
sbdchd Dec 13, 2020
e1cb3d4
add: basic pyscopg2 type stubs
sbdchd Jan 18, 2021
6ca1054
release: 0.3.0
sbdchd Jan 18, 2021
eeb7505
fix: cursor.execute param types
sbdchd Jan 19, 2021
0889d8c
bump: version to 0.3.1
sbdchd Feb 25, 2021
4e07e57
fix(django): add missing generic types params (#2)
sbdchd Feb 26, 2021
9fd3372
ref: move stubs into typings folder to enable linting
sbdchd Feb 26, 2021
2e6944e
release: 0.4.0
sbdchd Feb 26, 2021
d59e890
remove: python 3.7 requirement
sbdchd Feb 26, 2021
8b49138
update(docs): with more usage info
sbdchd Feb 26, 2021
8c0a266
add(ci): circleci config
sbdchd Feb 26, 2021
517b593
add(ci): pyright
sbdchd Feb 26, 2021
46de226
fix(ci): use setuptools for building (#3)
sbdchd Feb 26, 2021
ad5e639
add(ci): kodiak (#5)
sbdchd Feb 27, 2021
209cdfc
fix: errors surfaced by pyright (#4)
sbdchd Feb 27, 2021
1c541ae
add(docs): related projects (#6)
sbdchd Feb 27, 2021
6e3a991
release: 0.4.2 (#7)
sbdchd Feb 27, 2021
0e1ae91
add(django): type more decorators (#8)
sbdchd Feb 27, 2021
ab66036
release: 0.5.0 (#9)
sbdchd Feb 27, 2021
168f108
add(django): type csrf and vary decorators (#10)
sbdchd Feb 28, 2021
2242c32
add pyright (#11)
sbdchd Mar 1, 2021
17c4423
add: orm example & ignore system links from search (#13)
sbdchd Mar 20, 2021
3288b0b
Export JSONField from django.db.models (#15)
kylebebak Mar 22, 2021
98ba8be
release: 0.5.1 (#16)
sbdchd Mar 22, 2021
774ca95
fix link to django-stubs-ext in readme (#17)
chdsbd Apr 2, 2021
3d097c8
update: run pyright against tests (#18)
chdsbd Apr 12, 2021
2683485
release 0.5.2 (#19)
chdsbd Apr 13, 2021
d6b2688
add(psycopg2): types for extras module (#21)
sbdchd Apr 27, 2021
a004614
add(psycopg2): types for sql module (#22)
sbdchd Apr 27, 2021
3d8a9a6
release: 0.5.3 (#23)
sbdchd Apr 27, 2021
ac571df
fix(pyscopg2): sql module Composable param type (#24)
sbdchd Apr 27, 2021
cbeac4c
ref(django): test Client types (#26)
sbdchd May 8, 2021
db79759
ref(django): stricter MultiValueDict getlist default arg (#28)
sbdchd Jun 9, 2021
7def409
fix(django): overload issues with __new__ / __init__ combo (#30)
sbdchd Jul 13, 2021
2dd0929
release: 0.6.0 (#31)
sbdchd Jul 13, 2021
55342b2
Add PositiveBigIntegerField (#32)
benesch Jul 14, 2021
6dc816d
release: 0.6.1 (#33)
sbdchd Jul 14, 2021
4cdbeb7
Add stubs for new admin decorators (#37)
benesch Jul 16, 2021
7f8a86a
Add `objects` manager to django.contrib.auth.models.User (#36)
benesch Jul 16, 2021
afb4446
Add stub for django.contrib.postgres.operations.AddIndexConcurrently …
benesch Jul 16, 2021
0f9dd47
release: 0.6.1 (#39)
sbdchd Jul 16, 2021
4508e1f
Expose new admin decorators in django.contrib.admin (#40)
benesch Jul 16, 2021
c41eca0
Add new exceptions from Django 3.2 (#41)
benesch Jul 16, 2021
ac276cc
fix(django): contrib.auth.models.User.objects, Manager -> UserManager…
sbdchd Jul 16, 2021
310c701
release: 0.7.0 (#43)
sbdchd Jul 16, 2021
2a5a56c
Improve README.md (#45)
bellini666 Aug 1, 2021
0d11989
ref(django): cache types to be more strict (#47)
sbdchd Aug 11, 2021
55219de
release: 0.8.0 (#48)
sbdchd Aug 11, 2021
53bc484
timeout can be None in cache functions (#49)
bellini666 Aug 30, 2021
7f8ed6a
release: 0.8.1 (#50)
sbdchd Aug 30, 2021
7c48455
Improve objects inside Model (#54)
bellini666 Oct 23, 2021
0c4c80c
ref(ci): update poetry to non-ancient version (#56)
sbdchd Oct 23, 2021
a2de409
Update pyright to the latest version (#57)
bellini666 Oct 24, 2021
4fae2a8
fix(poetry): build / publish setup (#60)
sbdchd Oct 31, 2021
3fdd406
release: 0.9.0 (#61)
sbdchd Oct 31, 2021
5ce12dd
Update deps (#62)
bellini666 Oct 31, 2021
9316444
Update ProtectedError and RestrictedError stubs (#67)
MananTheMoon Nov 6, 2021
38decfa
release: 0.9.1 (#68)
sbdchd Nov 6, 2021
a040cb4
Improve typing on JSONField (#64)
bellini666 Nov 6, 2021
0dcf5c3
Allow DateField to be Optional (#69)
vst Nov 10, 2021
748e7ed
release: 0.10.0 (#70)
sbdchd Nov 10, 2021
42ac645
#71 add type hint for id field (#72)
razorman8669 Nov 12, 2021
711a99f
Update pyright and mypy and fix all new issues they detected (#73)
bellini666 Nov 21, 2021
9725ceb
Improve related fields and many to many typing (#63)
bellini666 Nov 21, 2021
9496652
Fields typing improvements (#65)
bellini666 Dec 5, 2021
5d5b23f
Fix typo and Django version requirements in Readme (#78)
last-partizan Dec 11, 2021
5798225
Correct JSON encoder decoder types (#77)
lpil Dec 11, 2021
029e162
Fix migration issues for fields with choices (#79)
bellini666 Dec 12, 2021
df532d0
Add db_table kwarg to ManyToManyField constructor (#80)
vst Dec 15, 2021
f64702d
release: 0.12.0 (#81)
sbdchd Dec 15, 2021
ee9cbe7
Allow adding and removing field values (typically primary keys) in ma…
TonyRippy Dec 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2

jobs:
lint:
docker:
- image: circleci/python:3.7-node
steps:
- checkout
- restore_cache:
keys:
- django-types-v2-{{ checksum "poetry.lock" }}-{{ checksum "yarn.lock" }}
- run:
name: install python dependencies
command: |
# Use our new PATH so we can call poetry from bash
echo 'export PATH="$PATH":"$HOME"/.local/bin' >> $BASH_ENV
source $BASH_ENV
python -m pip install --user poetry==1.1.9
poetry config virtualenvs.in-project true
poetry --version
poetry install
- run:
name: install node dependencies
command: |
yarn install --frozen-lockfile --non-interactive
- save_cache:
paths:
- ./.mypy_cache
- /root/.cache/
key: django-types-v2-{{ checksum "poetry.lock" }}-{{ checksum "yarn.lock" }}
- run:
name: lint
command: ./s/lint

workflows:
version: 2
test:
jobs:
- lint
10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
extend-ignore = Y015
max-line-length = 88
exclude = .eggs,.git,.hg,.mypy_cache,.tox,.venv,venv,__pycached__,_build,buck-out,build,dist,node_modules
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

29 changes: 0 additions & 29 deletions .github/pull_request_template.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/misspel.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ out/
pip-wheel-metadata/
stubgen/
build/
dist/
node_modules/
2 changes: 2 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
django-stubs
psycopg2-stubs
5 changes: 5 additions & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version = 1

[merge.message]
title = "pull_request_title"
body = "pull_request_body"
46 changes: 0 additions & 46 deletions .pre-commit-config.yaml

This file was deleted.

86 changes: 86 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## 0.5.2 - 2021-04-13

### Fixed

- Fixed ForeignKey field to work with Pylance.

## 0.5.1 - 2021-03-21

### Fixed

- Fix export for JSONField.

### Added

- Added types for csrf and vary decorators.

## 0.5.0 - 2021-02-27

### Added

- Added types for some Django decorators.

## 0.4.2 - 2021-02-27

### Changed

- Removed Python3.7 version requirement in package.

### Fixed

- Fixed errors raised by Pyright.

## 0.4.0 - 2021-02-26

### Added

- Added missing generic type parameters.

### Fixed

- Fixed HttpHeaders to make get return Optional[str].

## 0.3.1 - 2021-01-19

### Fixed

- Fixed cursor.execute parameter types for pyscopg2.

## 0.3.0 - 2021-01-18

### Added

- Added basic pyscopg2 type stubs.

## 0.2.1 - 2020-12-11

### Fixed

- Added missing null overload for TextField.

## 0.2.0 - 2020-12-06

### Added

- Added nullability support for most ORM fields.
- Added support for Postgres-specific ORM fields.

## 0.1.0 - 2020-11-25

### Added

- Added support for nullability of ForeignKey fields.

### Removed

- mypy plugin
- monkey patching package
Loading