Skip to content

Commit e60f570

Browse files
committed
Updated GitHub Actions workflows and docs.
1 parent 4f6945d commit e60f570

File tree

16 files changed

+57
-42
lines changed

16 files changed

+57
-42
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest, windows-latest, macos-latest]
17+
os: ['windows-2019', 'macos-latest', 'ubuntu-20.04']
1818
fail-fast: false
1919

2020
steps:

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: "windows-2019"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
16-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3'
16+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.4'
1717

1818
strategy:
1919
fail-fast: False
@@ -23,7 +23,7 @@ jobs:
2323
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2424
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2525
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
26-
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}
26+
- {python-version: "3.10.0-alpha.4", testenvs: "py310-dev,build", experimental: True}
2727

2828
steps:
2929
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: "ubuntu-20.04"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
16-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3,pypy-3.6'
16+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.4,pypy-3.6'
1717

1818
strategy:
1919
fail-fast: False
@@ -23,7 +23,7 @@ jobs:
2323
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2424
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2525
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
26-
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}
26+
- {python-version: "3.10.0-alpha.4", testenvs: "py310-dev,build", experimental: True}
2727
- {python-version: "pypy-3.6", testenvs: "pypy3,build", experimental: False}
2828

2929
steps:

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: "macos-latest"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
16-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3,pypy-3.6'
16+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.4,pypy-3.6'
1717

1818
strategy:
1919
fail-fast: False
@@ -23,7 +23,7 @@ jobs:
2323
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2424
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2525
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
26-
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}
26+
- {python-version: "3.10.0-alpha.4", testenvs: "py310-dev,build", experimental: True}
2727
- {python-version: "pypy-3.6", testenvs: "pypy3,build", experimental: False}
2828

2929
steps:

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ confidence=
6666
# no Warning level messages displayed, use"--disable=all --enable=classes
6767
# --disable=W"
6868
disable=all
69-
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,cyclic-import,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,multiple-statements,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-an-iterable,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
69+
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,cyclic-import,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,multiple-statements,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
7070

7171
[REPORTS]
7272

doc-source/_static/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* This file is managed by 'repo_helper'. Don't edit it directly. */
2+
3+
div.highlight {
4+
-moz-tab-size: 4; /* Firefox */
5+
tab-size: 4;
6+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--- This file is managed by 'repo_helper'. Don't edit it directly. --->
2-
{% extends "!layout.html" %}
2+
{% extends "!base.html" %}
33
{% block extrahead %}
44
<link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
55
{% endblock %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!---This file is managed by 'repo_helper'. Don't edit it directly.--->
2+
<div class="sidebar-tree">
3+
{{ furo_navigation_tree }}
4+
</div>
5+
6+
<div class="sidebar-tree">
7+
<p class="caption"><span class="caption-text">Links</span></p>
8+
<ul>
9+
<li class="toctree-l1"><a class="reference external" href="https://github.com/domdfcoding/flake8_strftime">GitHub</a></li>
10+
<li class="toctree-l1"><a class="reference external" href="https://pypi.org/project/flake8_strftime">PyPI</a></li>
11+
</ul>
12+
</div>

doc-source/api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
================
2+
API Reference
3+
================
4+
5+
.. automodule:: flake8_strftime
6+
:private-members:
7+
:special-members:
8+
:undoc-members:

doc-source/conf.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,23 @@
6666
"sphinx": ("https://www.sphinx-doc.org/en/stable/", None),
6767
}
6868

69-
html_theme = "domdf_sphinx_theme"
70-
html_theme_options = {"logo_only": False}
69+
html_theme = "furo"
70+
html_theme_options = {
71+
"light_css_variables": {
72+
"toc-title-font-size": "12pt",
73+
"toc-font-size": "12pt",
74+
"admonition-font-size": "12pt",
75+
},
76+
"dark_css_variables": {
77+
"toc-title-font-size": "12pt",
78+
"toc-font-size": "12pt",
79+
"admonition-font-size": "12pt",
80+
},
81+
}
7182
html_theme_path = ["../.."]
7283
html_show_sourcelink = True # True will show link to source
7384

74-
html_context = {
75-
"display_github": True,
76-
"github_user": "domdfcoding",
77-
"github_repo": "flake8_strftime",
78-
"github_version": "master",
79-
"conf_py_path": "/doc-source/",
80-
}
85+
html_context = {}
8186
htmlhelp_basename = slug
8287

8388
latex_documents = [("index", f'{slug}.tex', project, author, "manual")]

0 commit comments

Comments
 (0)