Skip to content

Commit ec13836

Browse files
committed
Fix lint
1 parent 20cb88e commit ec13836

File tree

2 files changed

+100
-100
lines changed

2 files changed

+100
-100
lines changed

config.yaml

+97-95
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ baseURL: https://scipy.org/
22
languageCode: en-us
33
theme: scientific-python-hugo-theme
44
disableKinds:
5-
- taxonomy
6-
- term
5+
- taxonomy
6+
- term
77
DefaultContentLanguage: en
88
markup:
99
goldmark:
@@ -12,13 +12,13 @@ markup:
1212
disableLanguages: []
1313
params:
1414
images:
15-
- /images/logo.svg
15+
- /images/logo.svg
1616
navColor: blue
1717
font:
1818
name: Lato
1919
sizes:
20-
- 400
21-
- 900
20+
- 400
21+
- 900
2222
plausible:
2323
dataDomain: scipy.org
2424
languages:
@@ -28,7 +28,8 @@ languages:
2828
contentDir: content/en
2929
languageName: English
3030
params:
31-
description: Why SciPy? Fundamental algorithms. Broadly applicable. Foundational.
31+
description:
32+
Why SciPy? Fundamental algorithms. Broadly applicable. Foundational.
3233
Interoperable. Performant. Open source.
3334
navbarlogo:
3435
image: logo.svg
@@ -43,67 +44,68 @@ languages:
4344
image: logo.svg
4445
section5: false
4546
navbar:
46-
- title: Install
47-
url: /install
48-
- title: Documentation
49-
url: https://docs.scipy.org/doc/scipy/
50-
- title: Community
51-
url: /community
52-
- title: About Us
53-
url: /about
54-
- title: Contribute
55-
url: /contribute
47+
- title: Install
48+
url: /install
49+
- title: Documentation
50+
url: https://docs.scipy.org/doc/scipy/
51+
- title: Community
52+
url: /community
53+
- title: About Us
54+
url: /about
55+
- title: Contribute
56+
url: /contribute
5657
footer:
5758
logo: logo.svg
58-
socialmediatitle: ''
59+
socialmediatitle: ""
5960
socialmedia:
60-
- link: https://github.com/scipy/scipy
61-
icon: github
62-
- link: https://discuss.scientific-python.org/c/contributor/scipy/
63-
icon: scientific-python
61+
- link: https://github.com/scipy/scipy
62+
icon: github
63+
- link: https://discuss.scientific-python.org/c/contributor/scipy/
64+
icon: scientific-python
6465
quicklinks:
6566
column1:
66-
title: ''
67+
title: ""
6768
links:
68-
- text: Install
69-
link: /install
70-
- text: Documentation
71-
link: https://docs.scipy.org/doc/scipy/
72-
- text: Citing SciPy
73-
link: /citing-scipy
74-
- text: Roadmap
75-
link: https://scipy.github.io/devdocs/dev/roadmap.html
69+
- text: Install
70+
link: /install
71+
- text: Documentation
72+
link: https://docs.scipy.org/doc/scipy/
73+
- text: Citing SciPy
74+
link: /citing-scipy
75+
- text: Roadmap
76+
link: https://scipy.github.io/devdocs/dev/roadmap.html
7677
column2:
7778
links:
78-
- text: About Us
79-
link: /about
80-
- text: Community
81-
link: /community
82-
- text: SciPy Conference
83-
link: https://conference.scipy.org/
84-
- text: Contribute
85-
link: /contribute
86-
- text: Code of Conduct
87-
link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html
79+
- text: About Us
80+
link: /about
81+
- text: Community
82+
link: /community
83+
- text: SciPy Conference
84+
link: https://conference.scipy.org/
85+
- text: Contribute
86+
link: /contribute
87+
- text: Code of Conduct
88+
link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html
8889
column3:
8990
links:
90-
- text: FAQ
91-
link: /faq
92-
- text: Terms of Use
93-
link: /terms
94-
- text: Privacy
95-
link: /privacy
96-
- text: Press Kit
97-
link: /press-kit
98-
- text: Social Media
99-
link: /about/#social-media
91+
- text: FAQ
92+
link: /faq
93+
- text: Terms of Use
94+
link: /terms
95+
- text: Privacy
96+
link: /privacy
97+
- text: Press Kit
98+
link: /press-kit
99+
- text: Social Media
100+
link: /about/#social-media
100101
pt:
101102
title: SciPy
102103
weight: 2
103104
contentDir: content/pt
104105
languageName: "Portugu\xEAs"
105106
params:
106-
description: Por que SciPy? Algoritmos fundamentais. Broadly applicable. Foundational.
107+
description:
108+
Por que SciPy? Algoritmos fundamentais. Broadly applicable. Foundational.
107109
Interoperable. Performant. Open source.
108110
navbarlogo:
109111
image: logo.svg
@@ -118,57 +120,57 @@ languages:
118120
image: logo.svg
119121
section5: false
120122
navbar:
121-
- title: Install
122-
url: /pt/install
123-
- title: Documentation
124-
url: https://docs.scipy.org/doc/scipy/
125-
- title: Community
126-
url: /pt/community
127-
- title: About Us
128-
url: /pt/about
129-
- title: Contribute
130-
url: /pt/contribute
123+
- title: Install
124+
url: /pt/install
125+
- title: Documentation
126+
url: https://docs.scipy.org/doc/scipy/
127+
- title: Community
128+
url: /pt/community
129+
- title: About Us
130+
url: /pt/about
131+
- title: Contribute
132+
url: /pt/contribute
131133
footer:
132134
logo: logo.svg
133-
socialmediatitle: ''
135+
socialmediatitle: ""
134136
socialmedia:
135-
- link: https://github.com/scipy/scipy
136-
icon: github
137-
- link: https://discuss.scientific-python.org/c/contributor/scipy/
138-
icon: scientific-python
137+
- link: https://github.com/scipy/scipy
138+
icon: github
139+
- link: https://discuss.scientific-python.org/c/contributor/scipy/
140+
icon: scientific-python
139141
quicklinks:
140142
column1:
141-
title: ''
143+
title: ""
142144
links:
143-
- text: Install
144-
link: /pt/install
145-
- text: Documentation
146-
link: https://docs.scipy.org/doc/scipy/
147-
- text: Citing SciPy
148-
link: /pt/citing-scipy
149-
- text: Roadmap
150-
link: https://scipy.github.io/devdocs/dev/roadmap.html
145+
- text: Install
146+
link: /pt/install
147+
- text: Documentation
148+
link: https://docs.scipy.org/doc/scipy/
149+
- text: Citing SciPy
150+
link: /pt/citing-scipy
151+
- text: Roadmap
152+
link: https://scipy.github.io/devdocs/dev/roadmap.html
151153
column2:
152154
links:
153-
- text: About Us
154-
link: /pt/about
155-
- text: Community
156-
link: /pt/community
157-
- text: SciPy Conference
158-
link: https://conference.scipy.org/
159-
- text: Contribute
160-
link: /pt/contribute
161-
- text: Code of Conduct
162-
link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html
155+
- text: About Us
156+
link: /pt/about
157+
- text: Community
158+
link: /pt/community
159+
- text: SciPy Conference
160+
link: https://conference.scipy.org/
161+
- text: Contribute
162+
link: /pt/contribute
163+
- text: Code of Conduct
164+
link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html
163165
column3:
164166
links:
165-
- text: FAQ
166-
link: /pt/faq
167-
- text: Terms of Use
168-
link: /pt/terms
169-
- text: Privacy
170-
link: /pt/privacy
171-
- text: Press Kit
172-
link: /pt/press-kit
173-
- text: Social Media
174-
link: /pt/about/#social-media
167+
- text: FAQ
168+
link: /pt/faq
169+
- text: Terms of Use
170+
link: /pt/terms
171+
- text: Privacy
172+
link: /pt/privacy
173+
- text: Press Kit
174+
link: /pt/press-kit
175+
- text: Social Media
176+
link: /pt/about/#social-media

gen_config.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import yaml
44

55

6-
config = yaml.load(
7-
open("config.yaml.in", "r", encoding="utf-8"), Loader=yaml.SafeLoader
8-
)
6+
config = yaml.load(open("config.yaml.in", encoding="utf-8"), Loader=yaml.SafeLoader)
97

108

119
def merge_dicts(d1, d2):
@@ -29,7 +27,7 @@ def include_files(d):
2927
elif key == "include-files":
3028
for otherfile in val:
3129
external_data = yaml.load(
32-
open(otherfile, "r", encoding="utf-8"), Loader=yaml.SafeLoader
30+
open(otherfile, encoding="utf-8"), Loader=yaml.SafeLoader
3331
)
3432
external = merge_dicts(external, external_data)
3533

@@ -42,4 +40,4 @@ def include_files(d):
4240
del config["disableLanguages"]
4341

4442

45-
yaml.dump(config, open('config.yaml', 'w', encoding='utf-8'), sort_keys=False)
43+
yaml.dump(config, open("config.yaml", "w", encoding="utf-8"), sort_keys=False)

0 commit comments

Comments
 (0)