Skip to content

Commit d5872b9

Browse files
committed
Moved flake8 config to pyproject.toml and removed setup.cfg
1 parent 385df20 commit d5872b9

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repos:
1717
hooks:
1818
- id: flake8
1919
additional_dependencies:
20+
- flake8-pyproject
2021
- flake8-tidy-imports
2122
- flake8-bugbear
2223
- repo: https://github.com/adamchainz/blacken-docs

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ extra_standard_library = [ "types" ]
104104
known_third_party = [ "pytest", "_pytest", "django", "pytz", "uritemplate" ]
105105
known_first_party = [ "rest_framework", "tests" ]
106106

107+
[tool.flake8]
108+
extend-ignore = [ "E501", "W503", "W504", "B" ]
109+
extend-select = [ "B006" ]
110+
banned-modules = "json = use from rest_framework.utils import json!"
111+
107112
[tool.codespell]
108113
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
109114
skip = "*/kickstarter-announcement.md,*.js,*.map,*.po,*.css,locale"

setup.cfg

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

0 commit comments

Comments
 (0)