Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d8c780

Browse filesBrowse files
authored
Merge pull request USTC-Resource#8 from cclauss/patch-1
Travis CI: Use flake8 to find syntax errors and undefined names
2 parents fd40e0d + 1f02990 commit 6d8c780
Copy full SHA for 6d8c780

File tree

Expand file treeCollapse file tree

7 files changed

+11
-10
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

7 files changed

+11
-10
lines changed
Open diff view settings
Collapse file

‎.travis.yml‎

Copy file name to clipboardExpand all lines: .travis.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ env:
1111

1212
install:
1313
- pip install --upgrade pip
14-
- pip install markdown pypinyin
14+
- pip install flake8 markdown pypinyin
1515

1616
script:
17+
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
1718
- python utils/genReadme.py
1819
- python utils/genIndex.py
1920

Collapse file

‎数据结构/codes/mbinary/graph/adjacentList.py‎

Copy file name to clipboardExpand all lines: 数据结构/codes/mbinary/graph/adjacentList.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self):
5151
self.edges = {}
5252
def __getitem__(self,i):
5353
return self.vertexs[i]
54-
def __setitem__(selfi,x):
54+
def __setitem__(self, i,x):
5555
self.vertexs[i]= x
5656
def __iter__(self):
5757
return iter(self.vertexs)
Collapse file

‎数据结构/codes/mbinary/graph/directed.py‎

Copy file name to clipboardExpand all lines: 数据结构/codes/mbinary/graph/directed.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self):
4545
self.edges = {}
4646
def __getitem__(self,i):
4747
return self.vertexs[i]
48-
def __setitem__(selfi,x):
48+
def __setitem__(self,i,x):
4949
self.vertexs[i]= x
5050
def __iter__(self):
5151
return iter(self.vertexs.values())
Collapse file

‎数据结构/codes/mbinary/graph/undirected.py‎

Copy file name to clipboardExpand all lines: 数据结构/codes/mbinary/graph/undirected.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self):
5656
self.edges = {}
5757
def __getitem__(self,i):
5858
return self.vertexs[i]
59-
def __setitem__(selfi,x):
59+
def __setitem__(self,i,x):
6060
self.vertexs[i]= x
6161
def __iter__(self):
6262
return iter(self.vertexs)
Collapse file

‎数据结构/labs/2017/navigation/directed.py‎

Copy file name to clipboardExpand all lines: 数据结构/labs/2017/navigation/directed.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self):
3535
self.edges = {}
3636
def __getitem__(self,i):
3737
return self.vertexs[i]
38-
def __setitem__(selfi,x):
38+
def __setitem__(self,i,x):
3939
self.vertexs[i]= x
4040
def __iter__(self):
4141
return iter(self.vertexs.values())
Collapse file

‎数据结构/labs/2017/navigation/graph.py‎

Copy file name to clipboardExpand all lines: 数据结构/labs/2017/navigation/graph.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self):
4848
self.edges = {}
4949
def __getitem__(self,i):
5050
return self.vertexs[i]
51-
def __setitem__(selfi,x):
51+
def __setitem__(self,i,x):
5252
self.vertexs[i]= x
5353
def __iter__(self):
5454
return iter(self.vertexs)
Collapse file

‎数理逻辑/codes/mbinary/system_L.py‎

Copy file name to clipboardExpand all lines: 数理逻辑/codes/mbinary/system_L.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030
NON = sympy.Symbol('~')
3131
CONTAIN = sympy.Symbol('>')
32-
AND = sympy .Symbol('&')
33-
OR = sysmpy.Symbol('|')
34-
EQUAL = sysmpy.Symbol('-')
32+
AND = sympy.Symbol('&')
33+
OR = sympy.Symbol('|')
34+
EQUAL = sympy.Symbol('-')
3535
LEFT = sympy.Symbol('(')
3636
RIGHT = sympy.Symbol(')')
3737

@@ -217,7 +217,7 @@ def l3(self,p,q):
217217
return contain(left,right)
218218
def genFormula(self,s:str)->formula:
219219
s=s.replace('~~','') # simplify the deduction, to do
220-
s=s.replace('<->','-')
220+
s=s.replace('<->','-')
221221
s=s.replace('->','>')
222222
li = re.findall(r'[\(\)\>\~]|\w+',s)
223223
li = [sympy.Symbol(i) for i in li]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.