Thaddeus Crews
4af1068688
CI: Add svgo
pre-commit hook
2024-06-23 08:14:54 -05:00
Thaddeus Crews
576c9e4fe8
CI: Add pre-commit hook for clang-tidy
...
• Set to "manual" so it isn't invoked in normal workflow
• Modernize `.clang-tidy` file
2024-06-17 11:27:18 -05:00
Thaddeus Crews
26859357c5
CI: Migrate codespell logic to pyproject.toml
2024-06-03 10:19:58 -05:00
Thaddeus Crews
48509590fd
CI: Make local python hooks multi-platform
2024-06-02 13:22:34 -05:00
patwork
1a89ae70eb
Upgrade to eslint 9
2024-05-22 11:32:25 +02:00
Rémi Verschelde
c40c89f94c
Merge pull request #90457 from Chubercik/ruff-formatter
...
Replace `black` formatter with `ruff`
2024-05-22 09:26:42 +02:00
Jakub Marcowski
d9f8ef68df
Update pre-commit hooks configuration to use ruff
instead of black
2024-05-21 18:02:29 -05:00
Rémi Verschelde
00e52d975c
Pre-commit: Allow adding downstream hooks without (less) risk of conflicts
...
Apply Godot copyright header only on the platform folders that we maintain upstream.
This lets downstream forks decide what to do with their potential proprietary platforms.
2024-05-21 15:58:47 +02:00
patwork
0430704382
Fix for jsdoc hook in pre-commit
2024-05-16 13:50:13 +02:00
Thaddeus Crews
f4e58691c2
SCons: Consolidate pysettings via pyproject.toml
2024-05-14 12:01:48 -05:00
Thaddeus Crews
df969ff742
CI: Overhaul static checks to use pre-commit
2024-05-08 10:30:24 -05:00
Rémi Verschelde
e520359147
Pre-commit: Fix copyright_headers.py
to run on all relevant files
...
It was only running on the first file passed by pre-commit, instead of all.
Fixes compatibility with Windows paths to get the basename.
2024-03-15 15:32:50 +01:00
Rémi Verschelde
f2045ba822
Merge pull request #88933 from raulsntos/dotnet/pre-commit
...
Move dotnet-format script to pre-commit
2024-03-02 10:48:25 +01:00
Raul Santos
97851f0340
Move dotnet-format script to pre-commit
...
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2024-03-02 08:25:48 +01:00
Rémi Verschelde
3a08c646ee
Pre-commit: Update to clang-format 17.0.6 and black 24.2.0
2024-02-28 14:25:35 +01:00
Aarni Koskela
20c563de40
Replace hand-written pre-commit hooks with pre-commit
Python tool
...
`pre-commit` can be installed with pip, and configured in the Godot repo with
`pre-commit install`. It can then easily be run both locally with
`pre-commit run`, and on CI, in a cross-platform way.
This makes it much easier for contributors to set up pre-commit hooks,
without having to manually copy files to their git folder.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-02-26 14:57:53 +01:00