Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/agb32_ei310' into agb32_ei310
Browse files Browse the repository at this point in the history
  • Loading branch information
paulboosz committed Sep 26, 2024
2 parents d5cfcf7 + bb770be commit f384fe9
Show file tree
Hide file tree
Showing 126 changed files with 3,644 additions and 3,160 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ ENABLE_FOOD_SECTION=True
MATOMO_HOST=stats.beta.gouv.fr
MATOMO_SITE_ID=57
MATOMO_TOKEN=xxx
NODE_ENV=production
NODE_ENV=development
SCALINGO_POSTGRESQL_URL=please-change-this
SENTRY_DSN=please-change-this
11 changes: 3 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
node-version: [20.x]
python-version: [3.11]
python-version: [3.12]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,15 +53,13 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-${{ matrix.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}

- name: Install Node dependencies
run: npm ci --prefer-offline --no-audit

- name: Install Python dependencies
run: pip install pipenv && pipenv install
run: pip install pipenv && pipenv install -d

- name: Install Ubuntu dependencies
run: |
Expand Down Expand Up @@ -91,9 +89,6 @@ jobs:
- name: Build app
run: npm run build --if-present

- name: Build Elm static Db
run: npm run db:build

- name: Run prettier, openapi & ruff formatting check
run: npm run lint:all

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/score_history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
node-version: [20.x]
python-version: [3.11]
python-version: [3.12]

# Run the job manually, on push to master or if the commit contains "[score_history]"
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || contains(github.event.head_commit.message, '[score_history]') }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
run: npm ci --prefer-offline --no-audit

- name: Install Python dependencies
run: pip install pipenv && pipenv install
run: pip install pipenv && pipenv install -d


- name: Install Ubuntu dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.env
/dist
elm-stuff
/check-db-app.js
/compute-aggregated-app.js
/node_modules
/public/app.js
Expand Down
12 changes: 12 additions & 0 deletions .slugignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
elm-stuff/
data/
.elm/
src/
ecobalyse-private/.git
tests/
styles.scss
review/

node_modules/@parcel
node_modules/@swc
node_modules/@elm_binaries
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [2.2.0](https://github.com/MTES-MCT/ecobalyse/compare/v2.1.1...v2.2.0) (2024-09-12)


### Features

* add app version to openapi docs in the root endpoint. ([#726](https://github.com/MTES-MCT/ecobalyse/issues/726)) ([5959c34](https://github.com/MTES-MCT/ecobalyse/commit/5959c3483600a2668390f6f0dd8a2778218436c0))
* add holistic durability in exploratory mode ([#721](https://github.com/MTES-MCT/ecobalyse/issues/721)) ([774faf3](https://github.com/MTES-MCT/ecobalyse/commit/774faf3ad553687e154d4f46bf1227ccd0571710))
* render app version details in the changelog. ([#725](https://github.com/MTES-MCT/ecobalyse/issues/725)) ([8f6ea50](https://github.com/MTES-MCT/ecobalyse/commit/8f6ea50aa1d11c37a0afc54e0de68a69cffbb1bb))


### Bug Fixes

* accept custom making complexity for upcycled garments. ([#723](https://github.com/MTES-MCT/ecobalyse/issues/723)) ([8f61547](https://github.com/MTES-MCT/ecobalyse/commit/8f61547f942b3fefd2129550125e9e7c0591cbaa))
* **ci:** check for ecobalyse-private when extracting the branch name ([#733](https://github.com/MTES-MCT/ecobalyse/issues/733)) ([23ae8a5](https://github.com/MTES-MCT/ecobalyse/commit/23ae8a564854ab6cdb4f38bc62f04a04a47ca3c4))
* don't add disabled step impacts to lifecycle totals. ([#719](https://github.com/MTES-MCT/ecobalyse/issues/719)) ([b6a7e1c](https://github.com/MTES-MCT/ecobalyse/commit/b6a7e1c4ff190acef8d0af0ee0f02b93b19ee32d))
* ensure express app is properly monitored by Sentry. ([#729](https://github.com/MTES-MCT/ecobalyse/issues/729)) ([84a39aa](https://github.com/MTES-MCT/ecobalyse/commit/84a39aa69a8771294195787401cd0e9e11403d1f))
* make scalingo not segfaulting. ([#728](https://github.com/MTES-MCT/ecobalyse/issues/728)) ([1de5140](https://github.com/MTES-MCT/ecobalyse/commit/1de5140c7e75bae20bd6afb58a0180d389dd3254))
* use fabric processes to compute fabric waste ([#712](https://github.com/MTES-MCT/ecobalyse/issues/712)) ([1cce55b](https://github.com/MTES-MCT/ecobalyse/commit/1cce55b229cc9e14de72037d381d06f2255fe0bd))

## [2.1.1](https://github.com/MTES-MCT/ecobalyse/compare/v2.1.0...v2.1.1) (2024-09-02)


Expand Down
13 changes: 8 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[requires]
python_version = "3.12"

[packages]
django = ">=5.0.8,<6"
django-mail-auth = ">=3.2,<3.3"
gunicorn = ">=22,<23"
psycopg2-binary = "2.9.9"
python-decouple = ">=3,<4"
ruff = "*"
SQLAlchemy = "2.0.30"
pandas = "1.5.3"
GitPython = "3.1.43"
pre-commit = "*"
numpy = ">=1,<2"
pytest-django = "*"
pygithub = "*"
ecobalyse = {file = "packages/python/ecobalyse"}
typer = "*"
pytest-mock = "*"

[dev-packages]
numpy = ">=1,<2"
pre-commit = "*"
pandas = "1.5.3"
ruff = "*"
SQLAlchemy = "2.0.30"
Loading

0 comments on commit f384fe9

Please sign in to comment.