Skip to content

Commit

Permalink
Remove old metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelLefkowitz committed May 27, 2024
1 parent 1bec81b commit f5ccdb6
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 52 deletions.
5 changes: 1 addition & 4 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,20 @@
"cppclean",
"cppdefines",
"cpppath",
"cpppaths",
"cxxcomstr",
"cxxflags",
"debugpy",
"doctest",
"emojize",
"excalidraw",
"frameworkpath",
"frameworks",
"furo",
"giphy",
"grotesk",
"gtest",
"isort",
"lefkowitz",
"libpath",
"libpaths",
"libs",
"linkcomstr",
"linkflags",
"matplotlib",
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ __pycache__/
.thx/
.yarn/
*.egg-info/
*.excalidraw
coverage/
dist/
node_modules/
venv/
yarn-error.log
yarn-error.log
2 changes: 2 additions & 0 deletions .trufflehog3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ exclude:
- message: Dependencies
paths:
- node_modules
- venv

- message: Tooling outputs
paths:
- .mypy_cache
- .pytest_cache
- .thx
- docs/dist
- package-lock.json
- yarn-error.log
- yarn.lock
34 changes: 12 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@ When writing an `SConstruct.py` configuration it is difficult to:

We can use `miniscons` to keep the `SConstruct.py` file short and get an interface like this:

```
builds:
build
```yml
builds: build
tests

targets:
start -> build
targets: start -> build
test -> tests

scripts:
clang-tidy
scripts: clang-tidy
cppclean

routines:
lint -> [clang-tidy, cppclean]
routines: lint -> [clang-tidy, cppclean]

flags:
--dump
flags: --dump
```
## Installation
Expand Down Expand Up @@ -143,26 +138,21 @@ scons --dump

We get our interface:

```
```yml
scons: Reading SConscript files ...

builds:
build
builds: build
tests

targets:
start -> build
targets: start -> build
test -> tests

scripts:
clang-tidy
scripts: clang-tidy
cppclean

routines:
lint -> [clang-tidy, cppclean]
routines: lint -> [clang-tidy, cppclean]

flags:
--dump
flags: --dump
```
## Discussion
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def build(app, build):
pattern = re.compile(r"src(?!\=)")

for file in [*tree("docs/dist", r"\.html"), "docs/dist/searchindex.js"]:
with open(file, "r") as stream:
with open(file, "r", encoding="utf8") as stream:
text = pattern.sub(package, stream.read())

with open(file, "w") as stream:
with open(file, "w", encoding="utf8") as stream:
stream.write(text)

for path in glob(f"*.md"):
Expand Down
46 changes: 25 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,34 @@ classifiers = [
]

requires-python = ">=3.8"
dependencies = ["emoji==1.7.0", "psutil==5.9.1", "SCons==4.3.0"]
dependencies = [
"emoji~=1.7.0",
"psutil~=5.9.0",
"SCons~=4.3.0",
"walkmate~=1.5.0",
]

[project.optional-dependencies]
all = [
"autoflake==1.4",
"black==22.3.0",
"build==1.2.1",
"bump2version==1.0.1",
"furo==2024.1.29",
"isort==5.10.1",
"matplotlib==3.8.4",
"mypy==0.961",
"myst-parser==2.0.0",
"pylint==2.17.0",
"pytest-cov==5.0.0",
"pytest==7.1.2",
"sphinx-autoapi==3.0.0",
"Sphinx==7.2.6",
"sphinxext-opengraph==0.9.1",
"thx==0.5.1",
"trufflehog3==3.0.7",
"twine==5.0.0",
"types-emoji==2.1.0.3",
"walkmate==1.5.0",
"autoflake~=1.4",
"black~=22.3.0",
"build~=1.2.0",
"bump2version~=1.0.0",
"furo~=2024.1.0",
"isort~=5.10.0",
"matplotlib~=3.8.0",
"mypy~=0.9",
"myst-parser~=2.0.0",
"pylint~=2.17.0",
"pytest-cov~=5.0.0",
"pytest~=7.1.0",
"sphinx-autoapi~=3.0.0",
"Sphinx~=7.2.0",
"sphinxext-opengraph~=0.9.0",
"thx~=0.5.0",
"trufflehog3~=3.0.0",
"twine~=5.0.0",
"types-emoji~=2.1.0",
]

[project.license]
Expand Down
3 changes: 1 addition & 2 deletions src/flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ class Flag:
def __repr__(self) -> str:
return self.name

# pylint: disable=W0613
def register(self, env: Environment) -> None:
def register(self, _: Environment) -> None:
AddOption(self.name, action="store_true")

0 comments on commit f5ccdb6

Please sign in to comment.