Commit graph

62 commits

Author SHA1 Message Date
Yohan Boniface
9e418c2ab0 chore: escape backticks in Makefile printf
Otherwise they are executed by the shell as subcommands…
2024-12-18 12:05:13 +01:00
Yohan Boniface
249367fd3a chore: install s3 dep for develop/CI 2024-12-10 19:03:19 +01:00
Yohan Boniface
d4bc91c41c chore: add --dependency-update in helm make command
Plus add a minimal doc
2024-11-21 17:40:49 +01:00
Antoine Millet
b76861489e chore: added "helm" job in Makefile to build & push helm chart 2024-11-21 15:13:51 +01:00
Yohan Boniface
13aa407e47 chore: install sync target on "make develop" 2024-10-21 11:59:58 +02:00
Yohan Boniface
1be7c8d3a9 chore: use pytest-rerunfailed 2024-10-10 10:31:25 +02:00
Yohan Boniface
c4f3196b27 chore: get Github release notes from command line
So we can integrate the changelog in the release, instead of having
a commit after the release.

You need to have a GITHUB_TOKEN env var, with a read only bearer
coming from https://github.com/settings/tokens
2024-09-11 18:26:06 +02:00
Yohan Boniface
8fc061429a chore: only run lint on our /js/
(Otherwise it will run on vendors…)
2024-07-29 16:40:57 +02:00
David Larlet
e32deedcc8
chore: setup Biome to replace Prettier
If you are using SublimeText: https://packagecontrol.io/packages/LSP-biome
2024-06-25 09:59:40 -04:00
fc2de3fc53 tests(sync): Change the way the websocket server is run in the tests
Using [pytest-xprocess](https://pytest-xprocess.readthedocs.io/) proved
not being as useful as I thought at first, because it was causing
intermitent failures when starting the process.

The code now directly uses `subprocess.popen` calls to start the server.
The tests are grouped together using the following decorator:

`@pytest.mark.xdist_group(name="websockets")`

Tests now need to be run with the `pytest --dist loadgroup` so that all
tests of the same group happen on the same process.

More details on this blogpost:

  https://blog.notmyidea.org/start-a-process-when-using-pytest-xdist.html
2024-06-07 18:21:30 +02:00
Yohan Boniface
bd84922338 chore: remove -x from make test 2024-04-24 21:12:45 +02:00
bfd573ae36 [tests] Enable make test to run js+py tests
It will run both the Python and JS tests. Test suites can still be run
independently with the `make testjs` and `make testpy` commands.
2024-04-01 11:12:44 +02:00
Yohan Boniface
73c5a963d9 chore: split lint and format recipes 2024-03-25 19:28:20 +01:00
Yohan Boniface
9d407c6b06 i18n 2024-03-25 13:52:48 +01:00
Yohan Boniface
8a9e845910 chore: do not call test and compilemessages command in make build
Those commands are documented in the release process, so they have
already run at this stage.
2024-02-09 18:39:13 +01:00
David Larlet
5da9b67b2a
Merge branch 'master' into dependabot/pip/django-5.0.1 2024-01-30 14:01:55 -05:00
David Larlet
65f1cdd6b4
lint: use eslint with a browserslist configuration 2024-01-29 16:44:04 -05:00
David Larlet
a159914c53
deps: adaptations for Django 5.x 2024-01-29 14:29:24 -05:00
Yohan Boniface
6d358a1f71 chore: make sure linters only run inside umap/ folder
No venv/, no node_modules/, not tmp/…
2024-01-17 18:44:08 +01:00
396cbd34b4 build: Update makefile testjs to open the browser 2023-12-18 08:16:17 +00:00
f3c67b54b6 [docs] Add some testing information 2023-12-15 17:00:50 +00:00
51c3ee3ce4 [ci] Add support for Github Actions
This runs the tests for different python versions,
with different working sets, and also run
a linter.
2023-11-24 23:31:18 +01:00
Yohan Boniface
c35c6ee78c test: allow to run playwright tests directly with py.test cli 2023-09-04 15:00:51 +02:00
David Larlet
95bf685159 Setup to create integration tests with Playwright 2023-09-04 11:03:28 +02:00
Yohan Boniface
a50c42dd24 Add make minor command 2023-08-15 16:49:04 +02:00
David Larlet
e03bbeadfc
1.3.6 2023-07-01 11:44:24 -04:00
Yohan Boniface
9056b8603f Use svg for 16 px icons too
Those icons would need more love to better factorize the way
they are used:
- the size of the HTML element including the icon is not consistent
- some icons are on the default file but could be in the white one

To be done in a later step
2023-06-28 21:39:43 +02:00
Yohan Boniface
4a43c653f1 Switch 24-white.png to 24-white.svg 2023-06-28 07:34:07 +02:00
Yohan Boniface
df90340937 Switch 24.png to 24.svg 2023-06-27 14:04:02 +02:00
David Larlet
be5d27d292
Lint template files with djLint 2023-06-20 10:00:02 -04:00
David Larlet
70e3852c0c
Prettify template files with djlint 2023-06-20 09:40:32 -04:00
David Larlet
44d3e64d56
Add a publish command to the Makefile 2023-06-17 09:50:36 -04:00
David Larlet
9ad47f8ef9
Customize the build process with hatch 2023-06-17 09:36:50 -04:00
David Larlet
e23f1dd3c2
From to setup.cfg+setuptools to pyproject.toml+hatch 2023-06-17 09:09:36 -04:00
Yohan Boniface
e1d3a95cce Allow to make vendors without Makefile
So we can use a lighter node image in Docker
2023-06-05 13:19:14 +02:00
Yohan Boniface
40f694f460 Make Docker happy with Makefile syntax 2023-06-05 11:48:46 +02:00
Yohan Boniface
309db975af
Merge branch 'master' into master 2023-06-02 17:34:49 +02:00
David Larlet
0cd1cf4ffc
Merge pull request #1094 from umap-project/use-dompurify
Use DOMPurify to escape malicious input from user
2023-05-30 15:49:29 -04:00
David Larlet
0a75998f11
Apply Lebab for template conversions 2023-05-30 14:53:53 -04:00
David Larlet
fd3f854a9c
Use DOMPurify to escape malicious input from user 2023-05-30 14:22:04 -04:00
David Larlet
56ce9ae22c
Apply Lebab for let/const conversions
As far as I understand, it default to `let` in these cases because the tool cannot figure out if a `const` is possible. It has to be checked manually:

```
./node_modules/lebab/bin/index.js --replace "umap/static/umap/js/*.js" --transform let
umap/static/umap/js/umap.xhr.js:
228:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.ui.js:
83:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.slideshow.js:
15:  warning  Unable to transform var  (let)
83:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.popup.js:
100:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.permissions.js:
14:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.layer.js:
195:  warning  Unable to transform var  (let)
436:  warning  Unable to transform var  (let)
568:  warning  Unable to transform var  (let)
584:  warning  Unable to transform var  (let)
989:  warning  Unable to transform var  (let)
1088:  warning  Unable to transform var  (let)
1098:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.js:
124:  warning  Unable to transform var  (let)
223:  warning  Unable to transform var  (let)
343:  warning  Unable to transform var  (let)
376:  warning  Unable to transform var  (let)
406:  warning  Unable to transform var  (let)
849:  warning  Unable to transform var  (let)
732:  warning  Unable to transform var  (let)
948:  warning  Unable to transform var  (let)
959:  warning  Unable to transform var  (let)
878:  warning  Unable to transform var  (let)
1085:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.icon.js:
145:  warning  Unable to transform var  (let)
184:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.forms.js:
453:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.features.js:
15:  warning  Unable to transform var  (let)
101:  warning  Unable to transform var  (let)
143:  warning  Unable to transform var  (let)
373:  warning  Unable to transform var  (let)
429:  warning  Unable to transform var  (let)
890:  warning  Unable to transform var  (let)
949:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.core.js:
149:  warning  Unable to transform var  (let)
175:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.controls.js:
665:  warning  Unable to transform var  (let)
876:  warning  Unable to transform var  (let)
1249:  warning  Unable to transform var  (let)
```
2023-05-30 14:16:09 -04:00
Yohan Boniface
7c2b7ac309 Simplify exlude of folder when running make messages 2023-05-30 17:52:32 +02:00
Yohan Boniface
eaef600a97 Add missing edit-in-osm icon
fix #1096
2023-05-30 15:58:29 +02:00
David Larlet
838bd73458 Install and apply Lebab for JS arrows’ conversions 2023-05-12 14:04:59 -04:00
David Larlet
f43742212b Apply PrettierJS to the whole codebase 2023-05-12 13:57:03 -04:00
Duvel
c6677ce0c8
Copy statement didn't work in build container 2022-11-27 16:25:04 +01:00
Aleksejs Popovs
c4415e1e99 Vendor leaflet.locatecontrol 2022-11-24 13:55:09 -05:00
Yohan Boniface
cc14796c6c chore: use setup.cfg 2021-12-30 11:16:00 +01:00
Yohan Boniface
eb3d115a96 bump deps 2019-02-06 19:38:19 +01:00
Yohan Boniface
fb85a6c93c i18n 2018-09-08 17:01:22 +02:00