File tree Expand file tree Collapse file tree 4 files changed +144
-24
lines changed Expand file tree Collapse file tree 4 files changed +144
-24
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,10 @@ FROM python:3.13-slim
33
44RUN usermod -d /home www-data \
55 && chown www-data:www-data /home \
6- # -slim images strip man dirs, but java won't install unless this dir exists.
7- && mkdir -p /usr/share/man/man1 \
8- && echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list \
9- && apt-get update \
10- # HACK: work around bug in install java (dep of libreoffice)
11- && apt-get install -y ca-certificates-java \
6+ && apt-get update
7+
128 # mfr dependencies
13- && apt-get install -y \
9+ RUN apt-get install -y \
1410 git \
1511 make \
1612 gcc \
@@ -32,17 +28,10 @@ RUN usermod -d /home www-data \
3228 # pspp dependencies
3329 pspp \
3430 # grab gosu for easy step-down from root
35- gosu \
36- # unoconv dependencies
37- && apt-get -t bookworm-backports install -y \
38- libreoffice-core \
39- libreoffice-writer \
40- libreoffice-calc \
41- libreoffice-impress \
42- libreoffice-java-common \
43- && apt-get clean \
44- && apt-get autoremove -y \
45- && rm -rf /var/lib/apt/lists/*
31+ gosu
32+ RUN apt-get clean
33+ RUN apt-get autoremove -y
34+ RUN rm -rf /var/lib/apt/lists/*
4635
4736RUN mkdir -p /code
4837WORKDIR /code
Original file line number Diff line number Diff line change 176176# Output file base name for HTML help builder.
177177htmlhelp_basename = 'mfrdoc'
178178
179+ # This block will use the same theme when building locally as on RTD.
179180on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
180-
181- # On RTD we can't import sphinx_rtd_theme, but it will be applied by
182- # default anyway. This block will use the same theme when building locally
183- # as on RTD.
184181if not on_rtd :
185- import sphinx_rtd_theme # noqa: F401
186182 html_theme = 'sphinx_rtd_theme'
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ openpyxl = "^3.1"
4646waterbutler = { git = " https://github.com/CenterForOpenScience/waterbutler.git" , branch = " feature/buff-worms" }
4747markupsafe = " 2.0.1"
4848celery = " 5.5.0"
49+ black = " ^25.1.0"
50+ isort = " ^6.0.1"
51+ ruff = " ^0.12.7"
4952
5053
5154[tool .poetry .group .dev ]
@@ -845,3 +848,50 @@ jasp = "mfr.extensions.jasp:JASPRenderer"
845848
846849# Zip
847850zip = " mfr.extensions.zip:ZipRenderer"
851+
852+ [tool .black ]
853+ line-length = 88
854+ target-version = [" py313" ]
855+ include = ' \.pyi?$'
856+ exclude = '''
857+ /(
858+ \.venv
859+ |\.eggs
860+ |_build
861+ |build
862+ |dist
863+ |mfr\.egg-info
864+ )/
865+ '''
866+
867+ [tool .isort ]
868+ profile = " black"
869+ line_length = 88
870+ known_first_party = [" mfr" , " tests" ]
871+ default_section = " THIRDPARTY"
872+ multi_line_output = 3
873+ include_trailing_comma = true
874+ force_grid_wrap = 0
875+ combine_as_imports = true
876+ skip = [" mfr.egg-info" , " .venv" ]
877+
878+ [tool .ruff ]
879+ target-version = " py313"
880+ line-length = 88
881+ extend-select = [
882+ " E" ,
883+ " F" ,
884+ " C90" ,
885+ " I" ,
886+ " B" ,
887+ ]
888+ extend-ignore = [
889+ " E203"
890+ ]
891+ exclude = [
892+ " mfr.egg-info" ,
893+ " .venv" ,
894+ " build" ,
895+ " dist" ,
896+ " ipynb"
897+ ]
You can’t perform that action at this time.
0 commit comments