Commit Graph

22 Commits

Author SHA1 Message Date
MinWoo Sung
4cdfea3977
add compatibility options for black and flake8 (#4541)
* add compatibility options for black and flake8

* remove flake8 args option

---------

Co-authored-by: 성민우 <minwoo@seongmin-uui-MacBookPro.local>
2023-08-28 11:09:15 +01:00
Bruno Alla
17fa459dc3
Fix inconsistent line length and move configs to pyproject.toml (#4276)
* Fix inconsistent line length and move config to pyproject.toml

Fix #2720

* Fix running tox with AUTOFIXABLE_STYLES

* Adjust some styles

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Adjust more styles

* Split isort and flake8 tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 15:43:04 +01:00
Jelmer
42c30dafcb
Upgrade Python to version 3.11 (Faster CPython) (#4256)
* Upgrade Python to version 3.11 (Faster CPython)

* Update pyupgrade config for Python 3.11

* Update tox env to Python 3.11

* Update to latest Python 3.11.3

* Add a note about lack of support in PythonAnywhere

* Rephrase note

* Fix casing

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:42:33 +01:00
mpsantos
a5d8b4be88
Fix the omit configuration for coverage (#4201) 2023-03-09 10:43:50 +00:00
Pamela Fox
629785e1d4
Add .venv to exclude (#4069) 2023-01-10 08:57:05 +00:00
pyup.io bot
dd1f3a6d12
Update coverage to 7.0.0 (#4013)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-12-21 13:57:20 +00:00
Jelmer
4ea0e98f3f
Upgrade Python version from 3.9 to 3.10 (#3913) 2022-10-24 21:41:00 +01:00
Dalton Rardin
00ff825b8c
Add djangorestframework-stubs
Add djangorestframework-stubs to local.txt requirements
Modify setup.cfg to add stubs to mypy settings
Fix new type error in DRF

`./users/api/views.py:19: error: Incompatible type for lookup 'id': (got "Union[AutoField[Union[Combinable, int, str], int], Any]", expected "Union[str, int]")`

by asserting that `self.request.user.id` is an int
2021-10-11 20:41:32 -05:00
Matthew Foster Walsh
4d8923f584 Removed outdated isort option "recursive=true" 2021-08-08 23:38:40 -05:00
Matthew Foster Walsh
0d4190c243 Moved isort config from .editorconfig to setup.cfg 2021-08-08 22:58:48 -05:00
areski
a1d551d067 Update from Python3.8 to Python3.9 2021-01-26 16:13:27 +01:00
Howie Zhao
baf5e6e74e
chore: exclude venv directory 2020-08-29 11:53:24 +08:00
Bruno Alla
2993bbf78f
Merge pull request #2514 from codnee/python_3.8
Upgrade to Python 3.8
2020-04-13 15:13:32 +01:00
Dani Hodovic
83934f3d86
Store coverage config in setup.cfg
Less is more. Unify tooling configuration in one file.
2020-04-12 21:40:02 +03:00
Ernesto Cedeno
0cdf60ceac Change Python version to 3.8 2020-03-29 19:55:27 +02:00
Daniel Hillier
0872982245 Fix failing mypy tests in users app with django-stubs (#2395)
Adds django-stubs as a requirement for local virtualenv. This is
required now that the User Model type is being resolved properly.
2020-01-13 01:57:20 +11:00
Dani Hodovic
0f515974cb
Remove mypy defaults and set django-stubs setting
https://mypy.readthedocs.io/en/latest/config_file.html

ignore_errors = False
strict_optional = True

Are both set to these values by default. No need to set them in the
config.

```toml
[mypy.plugins.django-stubs]
django_settings_module = config.settings.local
```
mypy.plugins.django-stubs requires django_settings_module to be set.
https://github.com/typeddjango/django-stubs#configuration
2019-12-11 14:58:21 +01:00
Nicolas Stefani
1f68e370ee Updated python version to 3.7 2019-09-29 21:07:59 -03:00
Denis Orehovsky
d7a05cf69d Add mypy to the local dependencies 2018-07-02 10:22:48 +03:00
Nikita P. Shupeyko
9f14254e8e Move pytest settings from setup.cfg to pytest.ini 2018-05-05 12:45:49 +03:00
Fábio C. Barrionuevo da Luz
fb0aaced34 change [pep8] to [pycodestyle] on setup.cfg
use [pycodestyle] instead of [pep8] on setup.cfg because [pep8] section is deprecated after 2.1.0 version of pycodestyle
2017-04-29 18:57:23 -03:00
Audrey Roy Greenfeld
15f350f05e Change repo_name to project_slug for clarity. 2016-04-20 10:00:35 -07:00