Commit Graph

14 Commits

Author SHA1 Message Date
Kien Dang
9a773b9d7b
Use ruff in pre-commit (#1441)
* Use ruff in pre-commit

* Add pyupgrade

* Add isort

* Add bugbear

* Fix B015 Pointless comparison

* Fix B026

* B018 false positive

* Remove flake8 and isort config from setup.cfg

* Remove black and flake8 from dev dependencies

* Update black

* Show list of fixes applied with autofix on

* Fix typo

* Add C4 flake8-comprehensions

* Add ruff to dev dependencies

* Fix up
2023-08-06 01:47:00 +03:00
Nikolai Røed Kristiansen
4517e32224
👷 Add pre-commit (#1336)
* 🔧 Add pre-commit config

Similar to graphene and graphene-sqlalchemy

* ⬆ Bump black

* 👷 Lint on CI

* ⬆ Bump flake8-black

* 🔧 Keep excluding migrations

* ⬆ Bump flake8

* 🔧 Remove black and flake8 from tox config

* ⬆ Update pre-commit versions

* Upgrade syntax to python 3.7+

* Format with pre-commit

dedent docs/schema.py to allow formatting

* Fix tests on python 3.7
2022-10-19 17:10:30 +03:00
Lucas
fdeadf5ce5
Fix project setup (#1087)
* Fix project setup

* Fix test_should_query_postgres_fields
2021-01-02 09:46:00 -08:00
Jean-Louis Fuchs
f33223daa7
Make tests order independent (v3) (#940)
* Completes 'Make tests order independent'
2020-04-20 14:01:43 +01:00
Jonathan Kim
aa30750d39 Bugfix: Correct filter types for DjangoFilterConnectionFields (#682)
* Get form field from Django model before defaulting to django-filter

* Add test

* Cleanup some flake8 warnings and pytest warnings

* Run isort and add black compatible config
2019-07-07 12:11:27 -07:00
Jonathan Kim
692540cc78
Update flake8 (#688)
* Include setup.py in black formatting

* Add new flake8 plugins and update errors to look for

* Fix duplicate test name

* Don't use mutable data structure

* Install all dev dependencies for flake8 and black tox envs
2019-06-24 18:55:44 +01:00
Olle Vidner
30ced72236
Removed duplicate bdist_wheel section 2017-08-31 15:34:22 +02:00
Syrus Akbary
1bea96b31e Merge pull request #229 from graphql-python/2.0
Road to 2.0
2017-08-27 13:28:08 -07:00
Ed Morley
9fbb183820 Generate a universal wheel in addition to the source distribution
See:
https://packaging.python.org/tutorials/distributing-packages/#universal-wheels
https://docs.travis-ci.com/user/deployment/pypi/#Uploading-different-distributions

Fixes #219.
2017-08-07 22:25:22 +01:00
Syrus Akbary
872ce3922e Added support for wheel package 2017-07-31 22:46:27 -07:00
Timothy Laurent
f88590343b create pytest.ini to contain DJANGO_SETTINGS_MODULE 2016-11-16 09:56:55 -08:00
Israel Saeta Pérez
9e9a08ffe4 Add pytest-runner and test-->pytest alias to make tests run as documented. 2016-11-12 18:27:25 +01:00
Syrus Akbary
4e23c3ccf6 Improved python syntax and sorts (pep8). Improved Readme 2016-09-17 17:09:56 -07:00
Syrus Akbary
0434899b4e Isolated Graphene Django in a new package 2016-09-17 16:31:17 -07:00