Skip to content

Commit 5624632

Browse files
committed
add package for nixos-anywhere
1 parent 7eec3d4 commit 5624632

File tree

4 files changed

+200
-81
lines changed

4 files changed

+200
-81
lines changed

pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "nixos-anywhere-pxe"
7+
description = "Install NixOS with PXE"
8+
dynamic = ["version"]
9+
scripts = { nixos-anywhere-pxe = "nixos_anywhere_pxe:main"}
10+
11+
[tool.pytest.ini_options]
12+
addopts = "--cov . --cov-report term --cov-fail-under=100 --no-cov-on-fail"
13+
14+
[tool.mypy]
15+
python_version = "3.10"
16+
warn_redundant_casts = true
17+
disallow_untyped_calls = true
18+
disallow_untyped_defs = true
19+
no_implicit_optional = true
20+
21+
[[tool.mypy.overrides]]
22+
module = "setuptools.*"
23+
ignore_missing_imports = true
24+
25+
[[tool.mypy.overrides]]
26+
module = "pytest.*"
27+
ignore_missing_imports = true
28+
29+
[tool.ruff]
30+
line-length = 88
31+
32+
select = ["E", "F", "I"]
33+
ignore = [ "E501" ]
34+
35+
[tool.black]
36+
line-length = 88
37+
target-version = ['py310']
38+
include = '\.pyi?$'
39+
exclude = '''
40+
/(
41+
\.git
42+
| \.hg
43+
| \.mypy_cache
44+
| \.tox
45+
| \.venv
46+
| _build
47+
| buck-out
48+
| build
49+
| dist
50+
# The following are specific to Black, you probably don't want those.
51+
| blib2to3
52+
| tests/data
53+
| profiling
54+
)/
55+
'''

src/flake-module.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
perSystem = { config, pkgs, ... }: {
33
packages = {
44
nixos-anywhere = pkgs.callPackage ./. { };
5+
nixos-anywhere-pxe = pkgs.callPackage ./nixos_anywhere_pxe { };
56
default = config.packages.nixos-anywhere;
67
};
78
devShells.default = config.packages.nixos-anywhere.devShell;

0 commit comments

Comments
 (0)