Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vincent Sellier
swh-docs
Commits
643141a2
Commit
643141a2
authored
4 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
python: Reorder imports with isort
Related to T2610
parent
b60869d8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+2
-1
2 additions, 1 deletion
setup.py
swh/docs/django_settings.py
+0
-1
0 additions, 1 deletion
swh/docs/django_settings.py
swh/docs/sphinx/conf.py
+3
-2
3 additions, 2 deletions
swh/docs/sphinx/conf.py
with
5 additions
and
4 deletions
setup.py
+
2
−
1
View file @
643141a2
...
...
@@ -4,7 +4,8 @@
# See top-level LICENSE file for more information
import
os
from
setuptools
import
setup
,
find_packages
from
setuptools
import
find_packages
,
setup
def
parse_requirements
(
name
=
None
):
...
...
This diff is collapsed.
Click to expand it.
swh/docs/django_settings.py
+
0
−
1
View file @
643141a2
from
swh.deposit.settings.development
import
*
# noqa
import
swh.web.settings.development
as
web
# merge some config variables
ns
=
globals
()
for
var
in
dir
(
web
):
...
...
This diff is collapsed.
Click to expand it.
swh/docs/sphinx/conf.py
+
3
−
2
View file @
643141a2
...
...
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
#
import
os
from
typing
import
Dict
import
django
import
os
# General information about the project.
project
=
"
Software Heritage - Development Documentation
"
...
...
@@ -160,9 +160,10 @@ def register_routingtable_as_label(app, document):
def
setup
(
app
):
os
.
environ
.
setdefault
(
"
DJANGO_SETTINGS_MODULE
"
,
"
swh.docs.django_settings
"
)
django
.
setup
()
import
pkg_resources
# noqa
from
distutils.version
import
StrictVersion
# noqa
import
pkg_resources
# noqa
httpdomain
=
pkg_resources
.
get_distribution
(
"
sphinxcontrib-httpdomain
"
)
if
StrictVersion
(
httpdomain
.
version
)
<=
StrictVersion
(
"
1.7.0
"
):
app
.
connect
(
"
doctree-read
"
,
register_routingtable_as_label
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment