Skip to content

Commit ea73fad

Browse files
committed
add to repo
1 parent c9c5435 commit ea73fad

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

NVDA-addon/flake8.ini

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Custom Flake8 configuration for community add-on template
2+
# Based on NVDA's Flake8 configuration with modifications for the basic add-on template (edited by Joseph Lee)
3+
4+
[flake8]
5+
6+
# Plugins
7+
use-flake8-tabs = True
8+
# Not all checks are replaced by flake8-tabs, however, pycodestyle is still not compatible with tabs.
9+
use-pycodestyle-indent = False
10+
continuation-style = hanging
11+
## The following are replaced by flake8-tabs plugin, reported as ET codes rather than E codes.
12+
# E121, E122, E123, E126, E127, E128,
13+
## The following (all disabled) are not replaced by flake8-tabs,
14+
# E124 - Requires mixing spaces and tabs: Closing bracket does not match visual indentation.
15+
# E125 - Does not take tabs into consideration: Continuation line with same indent as next logical line.
16+
# E129 - Requires mixing spaces and tabs: Visually indented line with same indent as next logical line
17+
# E131 - Requires mixing spaces and tabs: Continuation line unaligned for hanging indent
18+
# E133 - Our preference handled by ET126: Closing bracket is missing indentation
19+
20+
21+
# Reporting
22+
statistics = True
23+
doctests = True
24+
show-source = True
25+
26+
# Options
27+
max-complexity = 15
28+
max-line-length = 110
29+
# Final bracket should match indentation of the start of the line of the opening bracket
30+
hang-closing = False
31+
32+
ignore =
33+
ET113, # use of alignment as indentation, but option continuation-style=hanging does not permit this
34+
W191, # indentation contains tabs
35+
W503, # line break before binary operator. We want W504(line break after binary operator)
36+
37+
builtins = # inform flake8 about functions we consider built-in.
38+
_, # translation lookup
39+
pgettext, # translation lookup
40+
41+
exclude = # don't bother looking in the following subdirectories / files.
42+
.git,
43+
__pycache__,

NVDA-addon/style.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@charset "utf-8";
2+
body {
3+
font-family : Verdana, Arial, Helvetica, Sans-serif;
4+
line-height: 1.2em;
5+
}
6+
h1, h2 {text-align: center}
7+
dt {
8+
font-weight : bold;
9+
float : left;
10+
width: 10%;
11+
clear: left
12+
}
13+
dd {
14+
margin : 0 0 0.4em 0;
15+
float : left;
16+
width: 90%;
17+
display: block;
18+
}
19+
p { clear : both;
20+
}
21+
a { text-decoration : underline;
22+
}
23+
:active {
24+
text-decoration : none;
25+
}
26+
a:focus, a:hover {outline: solid}

0 commit comments

Comments
 (0)