-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from albertsgarde/4-ci-with-static-checks
4 ci with static checks
- Loading branch information
Showing
8 changed files
with
78 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: CI | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- ci-test | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: CRLF endings | ||
uses: erclu/check-crlf@v1 | ||
|
||
- name: Find trailing whitespace | ||
uses: harupy/[email protected] | ||
|
||
- name: Validate YAML files | ||
run: yamllint . --strict | ||
|
||
- name: Ruff | ||
uses: chartboost/ruff-action@v1 | ||
with: | ||
src: eadk_discord | ||
|
||
- name: Mypy | ||
uses: jashparekh/mypy-action@v2 | ||
with: | ||
mypy_version: 1.11.2 | ||
requirement_files: requirements.txt requirements_dev.txt | ||
python_version: '3.12' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[mypy] | ||
warn_unused_configs = True | ||
disallow_untyped_defs = True | ||
warn_redundant_casts = True | ||
warn_unused_ignores = True | ||
warn_return_any = True | ||
warn_unreachable = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools", "setuptools-scm"] | ||
|
||
[project] | ||
name = "eadk_discord" | ||
version = "0.0.1" | ||
authors = [{name = "albertsgarde", email = "[email protected]"}] | ||
description = "A Discord bot the EADK discord server" | ||
authors = [{ name = "albertsgarde", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
dynamic = ["dependencies", "optional-dependencies"] | ||
license = {file = "LICENSE"} | ||
name = "eadk_discord" | ||
readme = "README.md" | ||
requires-python = ">=3.11" | ||
dynamic = ["dependencies", "optional-dependencies"] | ||
|
||
[tool.setuptools] | ||
packages = ["eadk_discord"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = { file = ["requirements.txt"] } | ||
|
||
[tool.setuptools.dynamic.optional-dependencies] | ||
dev = { file = ['requirements_dev.txt'] } | ||
version = "0.0.1" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["eadk_discord"] | ||
|
||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
select = ["I", "E", "F", "W", "N", "B"] | ||
ignore = ["D203", "D213", "F722"] | ||
select = ["I", "E", "F", "W", "N", "B"] | ||
isort.known-first-party = ["eadk_discord"] | ||
|
||
[tool.setuptools] | ||
packages = ["eadk_discord"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[tool.setuptools.dynamic.optional-dependencies] | ||
dev = {file = ['requirements_dev.txt']} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
discord.py ~= 2.4.0 | ||
pydantic ~= 2.9.1 | ||
aiocron == 1.8 | ||
beartype ~= 0.18.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ruff ~= 0.6.5 | ||
mypy ~= 1.11.2 | ||
pre-commit ~= 3.9.0 | ||
pre-commit ~= 3.8.0 |