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
3
3
4
4
RUN usermod -d /home www-data \
5
5
&& 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
+
12
8
# mfr dependencies
13
- && apt-get install -y \
9
+ RUN apt-get install -y \
14
10
git \
15
11
make \
16
12
gcc \
@@ -32,17 +28,10 @@ RUN usermod -d /home www-data \
32
28
# pspp dependencies
33
29
pspp \
34
30
# 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/*
46
35
47
36
RUN mkdir -p /code
48
37
WORKDIR /code
Original file line number Diff line number Diff line change 176
176
# Output file base name for HTML help builder.
177
177
htmlhelp_basename = 'mfrdoc'
178
178
179
+ # This block will use the same theme when building locally as on RTD.
179
180
on_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.
184
181
if not on_rtd :
185
- import sphinx_rtd_theme # noqa: F401
186
182
html_theme = 'sphinx_rtd_theme'
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ openpyxl = "^3.1"
46
46
waterbutler = { git = " https://github.com/CenterForOpenScience/waterbutler.git" , branch = " feature/buff-worms" }
47
47
markupsafe = " 2.0.1"
48
48
celery = " 5.5.0"
49
+ black = " ^25.1.0"
50
+ isort = " ^6.0.1"
51
+ ruff = " ^0.12.7"
49
52
50
53
51
54
[tool .poetry .group .dev ]
@@ -845,3 +848,50 @@ jasp = "mfr.extensions.jasp:JASPRenderer"
845
848
846
849
# Zip
847
850
zip = " 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