Skip to content

Commit 56a0d56

Browse files
authored
Merge pull request #402 from kzrnm/feature/env
実行環境の更新
2 parents bda2aa1 + 9ed28e6 commit 56a0d56

File tree

7 files changed

+33
-10
lines changed

7 files changed

+33
-10
lines changed

.github/workflows/format.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: format
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
format:

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
test:

.github/workflows/verify.yml

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

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
verify:
@@ -13,7 +17,7 @@ jobs:
1317
uses: actions/setup-python@v4
1418

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

1822

1923
# 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
@@ -14,9 +14,9 @@ classifiers =
1414

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

2222
[yapf]

0 commit comments

Comments
 (0)