Skip to content

Lint config cleaning#65

Closed
ulgens wants to merge 7 commits intodjango:mainfrom
ulgens:lint-config-cleaning
Closed

Lint config cleaning#65
ulgens wants to merge 7 commits intodjango:mainfrom
ulgens:lint-config-cleaning

Conversation

@ulgens
Copy link
Copy Markdown
Member

@ulgens ulgens commented Nov 22, 2025

Several improvements related to the lint config and docs. The details can be found in commit messages.

Supersedes:

@ulgens ulgens mentioned this pull request Nov 22, 2025
@ulgens ulgens force-pushed the lint-config-cleaning branch from de35fcd to c8d549a Compare November 22, 2025 12:50
Comment thread requirements.txt
@@ -1,3 +1,2 @@
black
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not going to replace black with ruff here at this stage...

This file is used for installing additional Python requirements within the container that are used for the development of Django and not provided in another existing requirements file in the Django source tree.

We need this so that we're able to run black on the Django source code itself.

Comment thread README.md
Comment on lines -139 to -148
You can run individual tools by passing them as an argument:

```console
$ docker compose run --rm pre-commit black
$ docker compose run --rm pre-commit blacken-docs
$ docker compose run --rm pre-commit isort
$ docker compose run --rm pre-commit flake8
$ docker compose run --rm pre-commit eslint # XXX: Currently not working.
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For that reason, we're not going to remove these instructions either.

(Note that the issues with eslint have been addressed and it now works.)

Comment thread ruff.toml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will, however, add some configuration for ruff for using in django-docker-box itself. Note that this will largely only affect settings.py for now, unless we add some other tooling or scripts later.

I will endeavour to configure ruff in a way that meets Django's coding style as much as possible, for consistency.

Comment thread requirements.txt
@@ -1,3 +1,2 @@
black
pre-commit
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could switch to prek here over pre-commit, but I won't right now. It's not as much of an issue as the black vs ruff thing because it pretty much works identically to pre-commit. It's just faster.

@ngnpope
Copy link
Copy Markdown
Member

ngnpope commented Feb 5, 2026

Superseded by #72.

@ngnpope ngnpope closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants