Skip to content

Commit eed3d50

Browse files
committed
added GitHub banner
1 parent 7b12413 commit eed3d50

File tree

5 files changed

+104
-59
lines changed

5 files changed

+104
-59
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.github/workflows/codeql-analysis.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master, ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [master]
9+
schedule:
10+
- cron: '0 2 * * 6'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
with:
21+
# We must fetch at least the immediate parents so that if this is
22+
# a pull request then we can checkout the head.
23+
fetch-depth: 2
24+
25+
# If this run was triggered by a pull request event, then checkout
26+
# the head of the pull request instead of the merge commit.
27+
- run: git checkout HEAD^2
28+
if: ${{ github.event_name == 'pull_request' }}
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v1
33+
# Override language selection by uncommenting this and choosing your languages
34+
# with:
35+
# languages: go, javascript, csharp, python, cpp, java
36+
37+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+
# If this step fails, then you should remove it and run the build manually (see below)
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v1
41+
42+
# ℹ️ Command-line programs to run using the OS shell.
43+
# 📚 https://git.io/JvXDl
44+
45+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46+
# and modify them (or add more) to build your code if your project
47+
# uses a compiled language
48+
49+
#- run: |
50+
# make bootstrap
51+
# make release
52+
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v1

doc/sphinx/requirements.txt

+14-58
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,26 @@
1-
-i https://pypi.tuna.tsinghua.edu.cn/simple
2-
--extra-index-url https://mirrors.sjtug.sjtu.edu.cn/pypi/web/simple
3-
--extra-index-url https://pypi.org/simple
4-
-e .
5-
aenum==2.2.4
1+
# sphinx
2+
Sphinx==3.2.1
63
alabaster==0.7.12
7-
appnope==0.1.0 ; sys_platform == 'darwin'
8-
astroid==2.4.2
9-
autopep8==1.5.4
10-
babel==2.8.0
11-
backcall==0.2.0
12-
beautifulsoup4[html5lib]==4.9.1
13-
certifi==2020.6.20
14-
chardet==3.0.4
15-
decorator==4.4.2
16-
dictdumper==0.8.4.post2
17-
doc8==0.8.1
4+
Babel==2.8.0
5+
pytz==2020.1
186
docutils==0.16
19-
dpkt==1.9.3
20-
html5lib==1.1
21-
idna==2.10
227
imagesize==1.2.0
23-
ipython-genutils==0.2.0
24-
ipython==7.18.1
25-
isort==5.5.1
26-
jedi==0.17.2
27-
jinja2==3.0.0a1
28-
lazy-object-proxy==1.5.1
29-
lxml==4.5.2
30-
markupsafe==2.0.0a1
31-
mccabe==0.6.1
8+
Jinja2==2.11.2
9+
MarkupSafe==1.1.1
3210
packaging==20.4
33-
parso==0.8.0
34-
pbr==5.5.0
35-
pexpect==4.8.0 ; sys_platform != 'win32'
36-
pickleshare==0.7.5
37-
pockets==0.9.1
38-
prompt-toolkit==3.0.7
39-
ptyprocess==0.6.0
40-
py==1.9.0
41-
pycodestyle==2.6.0
42-
pygments==2.6.1
43-
pylint==2.6.0
44-
pyparsing==3.0.0a2
45-
pyshark==0.4.2.11
46-
pysocks==1.7.1
47-
pytz==2020.1
48-
requests[socks]==2.24.0
49-
restructuredtext-lint==1.3.1
50-
rstcheck==3.3.1
51-
scapy==2.4.4
11+
pyparsing==2.4.7
5212
six==1.15.0
13+
Pygments==2.7.1
14+
requests==2.24.0
15+
certifi==2020.6.20
16+
chardet==3.0.4
17+
idna==2.10
18+
urllib3==1.25.10
19+
setuptools==50.3.0
5320
snowballstemmer==2.0.0
54-
soupsieve==2.0.1
55-
sphinx==3.2.1
5621
sphinxcontrib-applehelp==1.0.2
5722
sphinxcontrib-devhelp==1.0.2
5823
sphinxcontrib-htmlhelp==1.0.3
5924
sphinxcontrib-jsmath==1.0.1
60-
sphinxcontrib-napoleon==0.7
6125
sphinxcontrib-qthelp==1.0.3
6226
sphinxcontrib-serializinghtml==1.1.4
63-
stevedore==3.2.1
64-
tbtrim==0.3.1
65-
toml==0.10.1
66-
traitlets==5.0.4
67-
urllib3==1.25.10
68-
wcwidth==0.2.5
69-
webencodings==0.5.1
70-
wrapt==1.12.1

doc/sphinx/source/conf.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'sphinx.ext.viewcode',
3535
'sphinx.ext.intersphinx',
3636
'sphinx.ext.autodoc', 'sphinx.ext.autodoc.typehints',
37-
'sphinxcontrib.napoleon',
37+
'sphinx.ext.napoleon',
3838
'sphinx.ext.todo',
3939
]
4040

@@ -99,6 +99,20 @@
9999
# so a file named "default.css" will overwrite the builtin "default.css".
100100
html_static_path = ['_static']
101101

102+
# Theme options are theme-specific and customize the look and feel of a theme
103+
# further. For a list of options available for each theme, see the
104+
# documentation.
105+
html_theme_options = {
106+
'show_powered_by': False,
107+
'github_user': 'JarryShaw',
108+
'github_repo': 'pypcapkit',
109+
'github_banner': True,
110+
#'show_related': False,
111+
#'note_bg': '#FFF59C',
112+
#'travis_button': True,
113+
#'codecov_button': True,
114+
}
115+
102116

103117
def maybe_skip_member(app, what: str, name: str, obj: object, skip: bool, options: dict): # pylint: disable=unused-argument
104118
if '_abc_impl' in name:

mypy.ini

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[mypy]
2+
ignore_missing_imports = True
3+
disallow_untyped_defs = True
4+
disallow_incomplete_defs = True
5+
check_untyped_defs = True
6+
no_implicit_optional = True
7+
warn_redundant_casts = True
8+
warn_unused_ignores = True
9+
warn_unreachable = True
10+
strict_equality = True
11+
show_column_numbers = True
12+
show_error_codes = True

0 commit comments

Comments
 (0)