Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit b4f758c

Browse files
authored
Merge pull request #250 from snok/sondrelg/drop-36
Drop Python 3.6
2 parents 9c97c12 + 3f59603 commit b4f758c

File tree

8 files changed

+36
-34
lines changed

8 files changed

+36
-34
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: [ "3.6", "3.7", "3.8" , "3.9", "3.10" ]
42+
python-version: [ "3.7", "3.8" , "3.9", "3.10" ]
4343
django-version: [ "2.2", "3.0", "3.1", "3.2" ]
4444
steps:
4545
- uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
rev: v2.29.1
3232
hooks:
3333
- id: pyupgrade
34-
args: ["--py36-plus"]
34+
args: ["--py36-plus", "--py37-plus"]
3535
- repo: https://github.com/pycqa/isort
3636
rev: 5.10.1
3737
hooks:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.3.7+
4+
5+
See Github [releases](https://github.com/snok/drf-openapi-tester/releases) for changelog in newer versions.
6+
37
## v1.3.7 2021-05-20
48

59
* Update dependencies

LICENSE.txt renamed to LICENSE

File renamed without changes.

mypy.ini

Lines changed: 0 additions & 17 deletions
This file was deleted.

openapi_tester/__init__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
""" DRF OpenAPI Schema Tester """
2-
# flake8: noqa
32
from .case_testers import is_camel_case, is_kebab_case, is_pascal_case, is_snake_case
4-
from .constants import OPENAPI_PYTHON_MAPPING
5-
from .exceptions import CaseError, DocumentationError, OpenAPISchemaError, UndocumentedSchemaSectionError
63
from .loaders import BaseSchemaLoader, DrfSpectacularSchemaLoader, DrfYasgSchemaLoader, StaticSchemaLoader
74
from .schema_tester import SchemaTester
5+
6+
__all__ = [
7+
"is_camel_case",
8+
"is_kebab_case",
9+
"is_pascal_case",
10+
"is_snake_case",
11+
"BaseSchemaLoader",
12+
"DrfSpectacularSchemaLoader",
13+
"DrfYasgSchemaLoader",
14+
"StaticSchemaLoader",
15+
"SchemaTester",
16+
]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifiers = [
2020
"Natural Language :: English",
2121
"Operating System :: OS Independent",
2222
"Programming Language :: Python",
23-
"Programming Language :: Python :: 3.6",
2423
"Programming Language :: Python :: 3.7",
2524
"Programming Language :: Python :: 3.8",
2625
"Programming Language :: Python :: 3.9",

.flake8 renamed to setup.cfg

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,28 @@ ignore=
1515
TYP101
1616
TYP102 # for cls
1717
ANN101
18-
1918
# Missing docstring in __init__
2019
D107
21-
2220
# Missing docstring in public package
2321
D104
24-
2522
# Missing type annotations for `**kwargs`
2623
TYP003
27-
2824
# Whitespace before ':'. Black formats code this way.
2925
E203
30-
3126
# 1 blank line required between summary line and description
3227
D205
33-
3428
# First line should end with a period - here we have a few cases where the first line is too long, and
3529
# this issue can't be fixed without using noqa notation
3630
D400
37-
3831
# Line break before binary operator. W504 will be hit when this is excluded.
3932
W503
40-
4133
# Missing type annotation for *args
4234
TYP002
4335
ANN002
44-
4536
# Missing type annotation for **kwargs
4637
ANN003
47-
4838
# f-string missing prefix (too many false positives)
4939
FS003
50-
5140
# Handle error-cases first
5241
SIM106
5342

@@ -59,3 +48,21 @@ exclude =
5948
manage.py,
6049
.venv
6150
max-complexity = 16
51+
52+
[mypy]
53+
python_version = 3.9
54+
show_column_numbers = True
55+
show_error_context = False
56+
ignore_missing_imports = True
57+
warn_unused_ignores = True
58+
warn_no_return = False
59+
warn_redundant_casts = True
60+
plugins =
61+
mypy_drf_plugin.main,
62+
mypy_django_plugin.main
63+
64+
[mypy.plugins.django-stubs]
65+
django_settings_module = "test_project.settings"
66+
67+
[mypy_django_plugin]
68+
ignore_missing_model_attributes = True

0 commit comments

Comments
 (0)