Skip to content

Commit e6b122e

Browse files
committed
Update libraries
1 parent 54e07a6 commit e6b122e

File tree

7 files changed

+24
-10
lines changed

7 files changed

+24
-10
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v2
1414
with:
15-
python-version: '3.8'
15+
python-version: 3.x
1616

1717
- name: Install dependencies
1818
run: pip3 install .[dev]

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v1
1818
with:
19-
python-version: 3.6
19+
python-version: 3.x
2020

2121
- name: Install dependencies
2222
run: pip install .[dev]

.github/workflows/verify.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: verify
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- master
47

58
jobs:
69
verify:
@@ -13,7 +16,7 @@ jobs:
1316
uses: actions/setup-python@v1
1417

1518
- name: Install dependencies
16-
run: pip3 install -U git+https://github.com/online-judge-tools/verification-helper.git@master
19+
run: pip3 install -U git+https://github.com/${{ github.repository }}.git@master
1720

1821

1922
# required only if you want to verify Haskell code

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Environments
2+
.env
3+
.venv
4+
env/
5+
venv/
6+
ENV/
7+
env.bak/
8+
venv.bak/
9+
10+
__pycache__

onlinejudge_verify/documentation/type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class SourceCodeStat(NamedTuple):
2929

3030

3131
class FrontMatterItem(enum.Enum):
32+
# pylint: disable=invalid-name
3233
title = 'title'
3334
layout = 'layout'
3435
documentation_of = 'documentation_of'

onlinejudge_verify/verify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ def verify_file(path: pathlib.Path, *, compilers: List[str], tle: float, jobs: i
119119

120120
def main(paths: List[pathlib.Path], *, marker: onlinejudge_verify.marker.VerificationMarker, timeout: float = math.inf, tle: float = 60, jobs: int = 1) -> VerificationSummary:
121121
try:
122-
import resource # pylint: disable=import-outside-toplevel
123-
_, hard = resource.getrlimit(resource.RLIMIT_STACK)
124-
resource.setrlimit(resource.RLIMIT_STACK, (hard, hard))
122+
import resource # pylint: disable=import-outside-toplevel,import-error
123+
_, hard = resource.getrlimit(resource.RLIMIT_STACK) # type: ignore
124+
resource.setrlimit(resource.RLIMIT_STACK, (hard, hard)) # type: ignore
125125
except Exception:
126126
logger.warning('failed to increase the stack size')
127127
print('::warning ::failed to ulimit')

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ classifiers =
1515

1616
[options.extras_require]
1717
dev =
18-
isort == 5.5.2
19-
mypy == 0.782
20-
pylint == 2.6.0
18+
isort == 5.10.1
19+
mypy == 0.941
20+
pylint == 2.7.3
2121
yapf == 0.30.0
2222

2323
[yapf]

0 commit comments

Comments
 (0)