Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: そふとうぇあえんじにありんぐっぽい何か #59

Merged
merged 4 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/softeng/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.3
19 changes: 19 additions & 0 deletions python/softeng/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: lint
lint:
@echo "Running flake8..."
@rye run flake8 src
@echo "Running mypy..."
@rye run mypy src

.PHONY: format
format:
@echo "Running black..."
@rye run black src
@echo "Running isort..."
@rye run isort src

.PHONY: test
test:
@echo "Running pytest..."
@rye run pytest src

1 change: 1 addition & 0 deletions python/softeng/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Pythonでソフトウェア工学っぽいことをやる
64 changes: 64 additions & 0 deletions python/softeng/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[project]
authors = [
{name = "Junya Okabe", email = "[email protected]"},
]
dependencies = ["black~=23.3.0", "flake8~=5.0.4", "mypy~=1.3.0", "isort~=5.12.0", "pytest~=7.3.1"]
description = "Add a short description here"
name = "softeng"
readme = "README.md"
requires-python = ">= 3.8"
version = "0.1.0"

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]

[tool.rye]
managed = true
[tool.hatch.metadata]
allow-direct-references = true

[tool.flake8]
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
max-line-length = 119


[tool.black]
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
line-length = 119

[tool.isort]
force_single_line = true
line_length = 119
multi_line_output = 3

[tool.mypy]
ignore_missing_imports = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
25 changes: 25 additions & 0 deletions python/softeng/requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false

-e file:.
black==23.3.0
click==8.1.3
flake8==5.0.4
iniconfig==2.0.0
isort==5.12.0
mccabe==0.7.0
mypy==1.3.0
mypy-extensions==1.0.0
packaging==23.1
pathspec==0.11.1
platformdirs==3.5.1
pluggy==1.0.0
pycodestyle==2.9.1
pyflakes==2.5.0
pytest==7.3.1
typing-extensions==4.6.2
25 changes: 25 additions & 0 deletions python/softeng/requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false

-e file:.
black==23.3.0
click==8.1.3
flake8==5.0.4
iniconfig==2.0.0
isort==5.12.0
mccabe==0.7.0
mypy==1.3.0
mypy-extensions==1.0.0
packaging==23.1
pathspec==0.11.1
platformdirs==3.5.1
pluggy==1.0.0
pycodestyle==2.9.1
pyflakes==2.5.0
pytest==7.3.1
typing-extensions==4.6.2
Empty file added python/softeng/src/main.py
Empty file.
2 changes: 2 additions & 0 deletions python/softeng/src/softeng/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def hello():
Okabe-Junya marked this conversation as resolved.
Show resolved Hide resolved
Okabe-Junya marked this conversation as resolved.
Show resolved Hide resolved
return "Hello from softeng!"
Okabe-Junya marked this conversation as resolved.
Show resolved Hide resolved