Skip to content

Commit 6f51d65

Browse files
feat: Update README, .flake8, .isort.cfg.
1 parent 8d72602 commit 6f51d65

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
max-line-length = 79
3-
# application_import_names =
3+
application_import_names = myapp
44
import-order-style = google
55
exclude =
66
*/migrations/,

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
profile = black
33
skip = migrations, venv/, venv
44
# application import names:
5-
# known_first_party =
5+
known_first_party = myapp
66
default_section = THIRDPARTY
77
force_sort_within_sections = true
88
line_length = 79

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@ This repository contains a set of configurations for linters and formatters that
3232
- Excluded directories: `*/migrations/`, `venv/`, `.git`, `__pycache__`
3333
- Complexity limits: `max-complexity = 10`, `max-expression-complexity = 7`
3434
- The flake8-quotes plugin is set to use single quotes
35+
- `known_first_party = myproject` — Specifies the project modules that should be considered "own" imports
36+
*(replace `myapp` with the name of your Django applications)*
3537

3638
- **.isort.cfg**
3739
Configuration for sorting imports with the Black profile:
3840
- Excluded directories: `migrations`, `venv/`
3941
- Line length: 79 characters
4042
- Enforce sorting within sections
43+
- `known_first_party = myproject` — Defines project modules for proper partitioning:
44+
`STDLIB``THIRDPARTY``FIRSTPARTY``LOCALFOLDER`
45+
*(replace `myapp` with the name of your Django applications)*
4146

4247
- **pyproject.toml**
4348
Configuration for Black:

0 commit comments

Comments
 (0)