Wykres commitów

29 Commity (a27e8f075d1cb5fa669556f239d5d3ebf74e735e)

Autor SHA1 Wiadomość Data
John-Scott Atlakson 9a2177dc19
Upgrade `ruff` and replace `black` with `ruff format` 2023-11-17 15:21:55 +00:00
Matt Westcott 814c6b3865 Bump djhtml to 3.0.6 (#11158)
Notably, this changes the behaviour of multi-line HTML tags so that attributes are aligned (https://github.com/rtts/djhtml#new-multi-line-html-elements). The pre-commit hook was already set to use djhtml 3.0.6, which meant that it was making changes that conflicted with the formatting rules enforced by the Makefile and CI.
2023-10-31 10:11:02 +00:00
LB Johnston 46905db76e Move semgrep to after other linting checks
- Avoid failing all other checks if sempgrep is not compatible on an environment
2023-08-02 20:59:54 +10:00
zerolab eb0fbdbb9e Bump target python version to 3.8 in Makefile 2023-07-19 17:52:17 +10:00
Oli 459fbb2cc9 Switch to ruff for flake8 / isort code checking (#10324) 2023-04-21 11:58:27 +01:00
Loic Teixeira 5c1c2c8f53 Enforce the use of a single string formatting mechanism for translation source strings
Close #9377
2022-11-26 11:00:05 +01:00
Jaap Roes 9badc1c7f3 Mark all targets as phony
Ref: https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
2022-09-27 14:50:29 +01:00
Thibaud Colas 524cab82e3 Introduce new template fragment composition tags 2022-07-06 18:18:21 +10:00
Steve Stein 6343a9558c
Implement new reusable dialog component with a11y-dialog (#8541)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 15:02:32 +01:00
Hitansh Shah a8106e5072 Added lint-server, lint-client, format-server and format-client tasks to the Makefile (#8177) 2022-03-30 14:14:30 +01:00
Thibaud Colas fc0f76ea9d Switch from jinjalint to curlylint 2022-03-11 15:21:47 +00:00
LB (Ben Johnston) 861a509b32
add `make format` to cover most auto-fixable formatting (#8022) 2022-02-24 17:20:35 +00:00
Matt Westcott 6b8126d5a3
Fix jinjalint exclusion in 'make lint' (#8009) 2022-02-18 11:37:18 +00:00
Dan Braghis 6dae6e5d07 Add and configure black
This:
- updates the pre-commit configuration and setup.py testing dependencies
- updates isort/flake8 configuration for black
- adds black linting to Makefile and CircleCI configuration
- updates editorconfig with the new line length (88) for py files
- updates python guidelines in docs
2022-02-15 13:06:17 +00:00
Steve Stein 72886c0a62
Djhtml install and configure with pre-commit (#7940) 2022-02-12 01:04:21 +00:00
Thibaud Colas 11ccf30f00
Add Prettier configuration & documentation (#7908)
- Install Prettier
- Add Prettier configuration
- Add git-blame-ignore-revs
- Clean up .editorconfig indent_style definition
- Clean up .editorconfig space definitions
- Add documentation for Prettier
- Add missing Prettier run-scripts
- Disable Prettier formatting in CI for now
2022-02-04 11:45:08 +00:00
Jaap Roes 5808a49407 Update Makefile (#7067)
* List all tasks in .PHONY
* Describe develop task in help output
* Remove undocumented test-all task, it just executes tox which isn't one of the testing requirements
* Fix coverage task
* Running tests is not quick
2021-06-18 13:19:41 +01:00
Matt Westcott 878f2784cb Add config section for doc8 in setup.cfg and ignore _build dir 2020-10-21 12:39:32 +01:00
Matt Westcott 9947b955da Lint config fixes (#6473)
Ref #6463, #6428

* pin isort to 5.6.4
* update isort version mentioned in python_guidelines.rst
* make lint commands consistent between make lint and circleci
* fix isort errors on files outside of /wagtail
* speed up isort by ignoring additional directories and filetypes
2020-10-19 21:33:10 +01:00
Karl Hobley f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Thibaud Colas d03642dd38 Configure jinjalint to enforce errors, while filtering-out false positives 2019-05-10 14:37:11 +01:00
Thibaud Colas a51631c306 Add jinjalint linter for Django templates, allowing errors for now 2019-04-29 13:55:41 +01:00
Matt Westcott 3134ffa119 Recommend `npm install --no-save` when setting up node toolchain (#5161)
Running `npm install` without `--no-save` can introduce spurious changes to package-lock.json due to differences in platform / node version, and these have been known to accidentally sneak into people's PRs. `npm install` without `--no-save` should only be used when actively updating node dependencies in package.json.
2019-03-21 20:41:14 +00:00
Anselm Bradford a900965fba Fixes #3516 - replaces scss-lint with stylelint 2017-08-26 16:39:45 +03:00
Matt Westcott e2b5dc384f Run css/js linting as part of make lint 2017-08-11 17:21:00 +01:00
Matt Westcott f2ec21b947 Run isort as part of 'make lint' 2016-06-23 16:31:44 +01:00
Michael van Tellingen d5bdad1d15 Implement `make develop` to ease contributing to wagtail (#2709)
This installs wagtail as editable package in your current python env
including testing and docs extras. It also installs runs npm install
and generates the frontend files.
2016-06-14 10:39:45 +01:00
Matt Westcott a77977a31c add a general test runner for wagtail, accessible by running './runtests.py' or 'make test' from the wagtail repo, or 'manage.py test wagtail' from a django project such as wagtaildemo 2014-02-13 12:44:49 +00:00
Paul Hallett 3c85d8ba97 Makefile, flake8 for PEP8 and contributors added 2014-02-07 15:20:27 +00:00